aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/nagios-portaudit
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-06-05 03:13:31 +0800
committerbapt <bapt@FreeBSD.org>2013-06-05 03:13:31 +0800
commitd165698a45f50cf55e3d4a80d867422aff7e8f36 (patch)
treee119ba30dbd6f5f16dddad9f3bb362497319e8f3 /net-mgmt/nagios-portaudit
parent57b5f38140ed9dcac879857c8b5077cf5796ad29 (diff)
downloadfreebsd-ports-gnome-d165698a45f50cf55e3d4a80d867422aff7e8f36.tar.gz
freebsd-ports-gnome-d165698a45f50cf55e3d4a80d867422aff7e8f36.tar.zst
freebsd-ports-gnome-d165698a45f50cf55e3d4a80d867422aff7e8f36.zip
Convert to new options framework
Diffstat (limited to 'net-mgmt/nagios-portaudit')
-rw-r--r--net-mgmt/nagios-portaudit/Makefile24
1 files changed, 11 insertions, 13 deletions
diff --git a/net-mgmt/nagios-portaudit/Makefile b/net-mgmt/nagios-portaudit/Makefile
index c518ec04006c..d3535d156db9 100644
--- a/net-mgmt/nagios-portaudit/Makefile
+++ b/net-mgmt/nagios-portaudit/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: nagios-portaudit
-# Date created: 19 August 2008
-# Whom: rea-fbsd@codelabs.ru
-#
+# Created by: rea-fbsd@codelabs.ru
# $FreeBSD$
-#
PORTNAME= portaudit
PORTVERSION= 1.0
@@ -17,9 +13,11 @@ DISTNAME= check_portaudit-${PORTVERSION}
MAINTAINER= rea@FreeBSD.org
COMMENT= Nagios plug-in to get portaudit/portupgrade status
-OPTIONS= PORTAUDIT "Enable portaudit check" ON \
- PORTUPGRADE "Enable portupgrade check" ON \
- PORTUPGRADE_DEVEL "Use portupgrade-devel" OFF
+OPTIONS_DEFINE= PORTAUDIT PORTUPGRADE PORTUPGRADE_DEVEL
+OPTIONS_DEFAULT= PORTAUDIT PORTUPGRADE
+PORTAUDIT_DESC= Enable portaudit check
+PORTUPGRADE_DESC= Enable portupgrade check
+PORTUPGRADE_DEVEL_DESC= Use portupgrade-devel
USE_PERL5= yes
NO_WRKSUBDIR= yes
@@ -27,23 +25,23 @@ NO_BUILD= yes
.include <bsd.port.pre.mk>
-.if !defined(WITH_PORTUPGRADE) && !defined(WITH_PORTAUDIT) && !defined(WITH_PORTAUDIT_DEVEL)
+.if ! ${PORT_OPTIONS:MPORTUPGRADE} && ! ${PORT_OPTIONS:MPORTAUDIT} && ! ${PORT_OPTIONS:MPORTAUDIT_DEVEL}
IGNORE= unusable without portupgrade and portaudit
.endif
-.if defined(WITH_PORTUPGRADE) && defined(WITH_PORTUPGRADE_DEVEL)
+.if ${PORT_OPTIONS:MPORTUPGRADE} && ${PORT_OPTIONS:MPORTUPGRADE_DEVEL}
IGNORE= choose either portupgrade or portupgrade-devel, not both
.endif
-.if defined(WITH_PORTAUDIT)
+.if ${PORT_OPTIONS:MPORTAUDIT}
RUN_DEPENDS+= portaudit:${PORTSDIR}/ports-mgmt/portaudit
.endif
-.if defined(WITH_PORTUPGRADE)
+.if ${PORT_OPTIONS:MPORTUPGRADE}
RUN_DEPENDS+= portupgrade:${PORTSDIR}/ports-mgmt/portupgrade
.endif
-.if defined(WITH_PORTUPGRADE_DEVEL)
+.if ${PORT_OPTIONS:MPORTUPGRADE_DEVEL}
RUN_DEPENDS+= portupgrade:${PORTSDIR}/ports-mgmt/portupgrade-devel
.endif