Date: Fri, 16 Apr 2004 23:22:25 +0200 (CEST) From: Krzysztof Stryjek <wtp+netsaint@bsdguru.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/65644: update Makefile of netsaint port Message-ID: <20040416212225.28B78263B6@kryptos.mud.pl> Resent-Message-ID: <200404162130.i3GLUELV042972@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 65644 >Category: ports >Synopsis: update Makefile of netsaint port >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Apr 16 14:30:14 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Krzysztof Stryjek >Release: FreeBSD 4.9-STABLE i386 >Organization: private >Environment: System: FreeBSD kryptos.mud.pl 4.9-STABLE FreeBSD 4.9-STABLE #3: Tue Feb 24 16:33:39 CET 2004 toor@kryptos.mud.pl:/usr/obj/usr/src/sys/POOH i386 >Description: Netsaint is a network monitor. It has possibilities to save many it's own data in database like mySQL or PostgreSQL. When WITH_POSTGRES is chosen (this option was added on my suggestion) there are some problems with compiling netsaint. >How-To-Repeat: cd $PORTS/net-mgmt/netsaint && make WITH_POSTGRES=1 >Fix: Just apply this patch: ------------------------------- cut here ----------------------------------- --- Makefile.orig Tue Feb 24 04:10:09 2004 +++ Makefile Fri Apr 16 14:40:54 2004 @@ -23,6 +23,7 @@ USE_PERL5= yes USE_GETOPT_LONG= yes +USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-command-user=netsaint \ --with-command-grp=www \ @@ -47,13 +48,16 @@ .if defined(WITH_POSTGRES) POSTGRESQL_PORT?= databases/postgresql7 LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT} -CONFIGURE_ARGS+=--with-pgsql-lib=${LOCALBASE}/pgsql \ - --with-pgsql-inc=${LOCALBASE}/pgsql \ - --with-pgsql-xdata +CONFIGURE_ARGS+=--with-pgsql-xdata .endif pre-fetch: @${SH} ${SCRIPTDIR}/checkps + +post-patch: +.if defined(WITH_POSTGRES) + @${REINPLACE_CMD} -e 's,pgsql/,,' ${WRKSRC}/xdata/x[cers]ddb.c +.endif pre-install: @PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL ------------------------------- cut here ----------------------------------- Greetings from Poland. Krzysztof Stryjek <wtp (at) bsdguru.org> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040416212225.28B78263B6>