Flavors
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
PORTNAME= nrpe
|
||||
DISTVERSION= 4.1.1
|
||||
DISTVERSIONPREFIX= nrpe-
|
||||
DISTVERSION= 4.1.1
|
||||
CATEGORIES= net-mgmt
|
||||
|
||||
MAINTAINER= bofh@FreeBSD.org
|
||||
@ -10,6 +10,10 @@ WWW= https://www.nagios.org/
|
||||
LICENSE= GPLv2+
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE.md
|
||||
|
||||
FLAVORS= default monplugins
|
||||
FLAVOR?= ${FLAVORS:[1]}
|
||||
monplugins_PKGNAMESUFFIX= -monplugins
|
||||
|
||||
USES= perl5
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= NagiosEnterprises
|
||||
@ -45,8 +49,13 @@ MONPLUGINS_DESC=Use net-mgmt/monitoring-plugins
|
||||
NAGPLUGINS_DESC=Use net-mgmt/nagios-plugins
|
||||
|
||||
ARGS_CONFIGURE_ENABLE= command-args
|
||||
.if ${FLAVOR} == monpluging
|
||||
RUN_DEPENDS+= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/monitoring-plugins
|
||||
.else
|
||||
# Fallback to OPTIONS
|
||||
MONPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/monitoring-plugins
|
||||
NAGPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/nagios-plugins
|
||||
.endif
|
||||
SSL_USES= ssl
|
||||
SSL_CONFIGURE_ENABLE= ssl
|
||||
SSL_CONFIGURE_WITH= ssl=${OPENSSLBASE} ssl-inc=${OPENSSLINC} ssl-lib=${OPENSSLLIB}
|
||||
|
||||
Reference in New Issue
Block a user