From 2137dac72556bf7a40bffde8ce7f7d798a7bf11e Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Mon, 7 Apr 2003 00:39:54 +0000 Subject: [PATCH] add-ons for netsaint and nagios Add mysql/pgsql support to net/nagios PR: ports/48102 Submitted by: Krzysztof Stryjek --- net-mgmt/nagios/Makefile | 15 +++++++++++++++ net-mgmt/nagios12/Makefile | 15 +++++++++++++++ net-mgmt/nagios2/Makefile | 15 +++++++++++++++ net/nagios/Makefile | 15 +++++++++++++++ 4 files changed, 60 insertions(+) diff --git a/net-mgmt/nagios/Makefile b/net-mgmt/nagios/Makefile index ff0dd52082e4..a22f55280c09 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 ff0dd52082e4..a22f55280c09 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 ff0dd52082e4..a22f55280c09 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: diff --git a/net/nagios/Makefile b/net/nagios/Makefile index ff0dd52082e4..a22f55280c09 100644 --- a/net/nagios/Makefile +++ b/net/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: