- Convert to new options framework

- Add missing dependency on perl
- Bump PORTREVISION due to added dependency

Approved by:	eadler, bapt (mentors, implicit)
This commit is contained in:
Bryan Drewery 2012-09-11 15:11:39 +00:00
parent 8a2c694e65
commit dfec6618b2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=304099

View file

@ -7,7 +7,7 @@
PORTNAME= ndoutils
PORTVERSION= 1.4b8
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= net-mgmt
MASTER_SITES= SF/nagios/${PORTNAME}-1.x/${PORTNAME}-${PORTVERSION}
@ -16,8 +16,11 @@ COMMENT= Keep Nagios perfdata in MySQL or Postgresql database
RUN_DEPENDS= ${LOCALBASE}/bin/nagios:${PORTSDIR}/net-mgmt/nagios
OPTIONS= MYSQL "MySQL Backend" on \
PGSQL "Postgresql Backend" off
OPTIONS_MULTI= BACKEND
OPTIONS_MULTI_BACKEND= MYSQL PGSQL
OPTIONS_DEFAULT= MYSQL
MYSQL_DESC= MySQL backend support
PGSQL_DESC= Postgresql backend support
MAKE_JOBS_UNSAFE= yes
@ -27,11 +30,13 @@ CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc/ndoutils
CFG_FILES= misccommands ndo2db ndomod
USE_PERL5= yes
USE_RC_SUBR= ndo2db
SUB_FILES= pkg-message
.include <bsd.port.options.mk>
.if !defined(WITHOUT_MYSQL)
.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL=yes
CONFIGURE_ARGS+= --enable-mysql \
--with-mysql-lib=${LOCALBASE}/lib/mysql \
@ -40,7 +45,7 @@ CONFIGURE_ARGS+= --enable-mysql \
CONFIGURE_ARGS+= --disable-mysql
.endif
.if defined(WITH_PGSQL)
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL=yes
CONFIGURE_ARGS+= --enable-pgsql \
--with-pgsql-lib=${LOCALBASE}/lib/pgsql \
@ -49,10 +54,6 @@ CONFIGURE_ARGS+= --enable-pgsql \
CONFIGURE_ARGS+= --disable-pgsql
.endif
.if defined(WITHOUT_MYSQL) && defined(WITHOUT_PGSQL)
IGNORE= you should define at least 1 of WITH_MYSQL or WITH_PGSQL, WITH_MYSQL=yes is the default
.endif
.if !defined(NOPORTDOCS)
PLIST_SUB+= PORTDOCS=""
.else