Date: Sat, 8 Feb 2003 23:36:35 +0100 (CET) From: Krzysztof Stryjek <wtp@kryptos.mud.pl> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/48102: add-ons for netsaint and nagios Message-ID: <20030208223635.49F98FFE8@kryptos.mud.pl>
next in thread | raw e-mail | index | archive | help
>Number: 48102 >Category: ports >Synopsis: add-ons for netsaint and nagios >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Feb 08 14:40:02 PST 2003 >Closed-Date: >Last-Modified: >Originator: Krzysztof Stryjek >Release: FreeBSD 4.7-STABLE i386 >Organization: >Environment: System: FreeBSD kryptos.mud.pl 4.7-STABLE FreeBSD 4.7-STABLE #0: Sun Dec 15 20:45:56 CET 2002 toor@kryptos.mud.pl:/usr/obj/usr/src/sys/POOH i386 >Description: Hello, telling the truth I am using only netsaint, but I think this will also work for nagios (especially, that conrigure --help for nagios looks the same as for netsaint. It is working for me with MySQL, unfortunatelly I have no possibilities to check it with POSTGRES (as postgres installs everything in /usr/local/pgsql). I made this patches after checking how it is done in snort ports. I hope you include this in Makefiles. Greetings -- /~\ The ASCII Krzysztof Stryjek \ / Ribbon Campaign wtp@NOSPAM.mud.pl X Against HTML http://mud.pl/~wtp/ / \ Email! GG: 3608113 ICQ: 124986907 >How-To-Repeat: Well, now there is only possible to manualy change Makefile >Fix: Path for netsaint: ********************************************************** --- Makefile Sun Dec 15 17:19:26 2002 +++ /tmp/Makefile.netsaint Fri Feb 7 11:56:32 2003 @@ -36,6 +36,21 @@ --sysconfdir=${PREFIX}/etc/netsaint \ --localstatedir=${PREFIX}/var/netsaint +.if defined(WITH_MYSQL) +LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client +CONFIGURE_ARGS+=--with-mysql-lib=${LOCALBASE}/lib/mysql \ + --with-mysql-inc=${LOCALBASE}/include/mysql \ + --with-mysql-xdata +.endif + +.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 +.endif + INSTALL_TARGET= all install config install-config install-daemoninit install-commandmode pre-fetch: patch for nagios: ********************************************************** --- Makefile Sat Jan 4 05:42:14 2003 +++ /tmp/Makefile.nagios Fri Feb 7 12:06:30 2003 @@ -36,6 +36,21 @@ --localstatedir=${PREFIX}/var/nagios \ --prefix=${PREFIX} +.if defined(WITH_MYSQL) +LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client +CONFIGURE_ARGS+=--with-mysql-lib=${LOCALBASE}/lib/mysql \ + --with-mysql-inc=${LOCALBASE}/include/mysql \ + --with-mysql-xdata +.endif + +.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 +.endif + INSTALL_TARGET= all install config install-config install-daemoninit install-commandmode pre-fetch: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030208223635.49F98FFE8>