diff --git a/net-mgmt/nrpe/Makefile b/net-mgmt/nrpe/Makefile --- a/net-mgmt/nrpe/Makefile +++ b/net-mgmt/nrpe/Makefile @@ -10,6 +10,10 @@ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/LICENSE.md +FLAVORS= default monplugins +FLAVOR?= ${FLAVORS:[1]} +monplugins_PKGNAMESUFFIX= -monplugins + USES= perl5 USE_GITHUB= yes GH_ACCOUNT= NagiosEnterprises @@ -36,7 +40,7 @@ NRPE_PIDDIR=${NRPE_PIDDIR} OPTIONS_DEFINE= SSL ARGS -OPTIONS_DEFAULT=NAGPLUGINS SSL +OPTIONS_DEFAULT=SSL OPTIONS_RADIO= PLUGINS OPTIONS_RADIO_PLUGINS= MONPLUGINS NAGPLUGINS @@ -57,6 +61,14 @@ NRPE_PIDDIR?= /var/run/nrpe +.if ${FLAVOR:U} == default +OPTIONS_DEFAULT+= NAGPLUGINS +.endif + +.if ${FLAVOR:U} == monplugins +OPTIONS_DEFAULT+= MONPLUGINS +.endif + post-patch: @${REINPLACE_CMD} -e 's|/var/run/nrpe.pid|${NRPE_PIDDIR}/nrpe.pid|g' \ -e 's|/usr/lib/nagios/plugins/|${LOCALBASE}/libexec/nagios/|g' \