diff options
author | edwin <edwin@FreeBSD.org> | 2003-04-07 00:39:54 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-04-07 00:39:54 +0000 |
commit | e108b0045e5c453ac6f07235bb47e6c139464f74 (patch) | |
tree | 220596619ed53fcf3f8ccbd08e63c4587804096e /net-mgmt | |
parent | d41a59a5ee99862a8b3658bfc92fcfc31bbdaa3b (diff) | |
download | FreeBSD-ports-e108b0045e5c453ac6f07235bb47e6c139464f74.zip FreeBSD-ports-e108b0045e5c453ac6f07235bb47e6c139464f74.tar.gz |
add-ons for netsaint and nagios
Add mysql/pgsql support to net/nagios
PR: ports/48102
Submitted by: Krzysztof Stryjek <wtpooh@acn.waw.pl>
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/nagios/Makefile | 15 | ||||
-rw-r--r-- | net-mgmt/nagios12/Makefile | 15 | ||||
-rw-r--r-- | net-mgmt/nagios2/Makefile | 15 |
3 files changed, 45 insertions, 0 deletions
diff --git a/net-mgmt/nagios/Makefile b/net-mgmt/nagios/Makefile index ff0dd52..a22f552 100644 --- a/net-mgmt/nagios/Makefile +++ b/net-mgmt/nagios/Makefile @@ -37,6 +37,21 @@ CONFIGURE_ARGS= --with-command-user=nagios \ --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: diff --git a/net-mgmt/nagios12/Makefile b/net-mgmt/nagios12/Makefile index ff0dd52..a22f552 100644 --- a/net-mgmt/nagios12/Makefile +++ b/net-mgmt/nagios12/Makefile @@ -37,6 +37,21 @@ CONFIGURE_ARGS= --with-command-user=nagios \ --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: diff --git a/net-mgmt/nagios2/Makefile b/net-mgmt/nagios2/Makefile index ff0dd52..a22f552 100644 --- a/net-mgmt/nagios2/Makefile +++ b/net-mgmt/nagios2/Makefile @@ -37,6 +37,21 @@ CONFIGURE_ARGS= --with-command-user=nagios \ --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: |