Better FLAVORS
This commit is contained in:
@ -74,19 +74,16 @@ GROUPS= ${NAGIOSGROUP}
|
||||
OPTIONS_DEFINE= EMBEDDED_PERL NANOSLEEP EVENT_BROKER UNHANDLED_HACK
|
||||
OPTIONS_RADIO= PLUGINS
|
||||
OPTIONS_RADIO_PLUGINS= MONPLUGINS NAGPLUGINS
|
||||
OPTIONS_DEFAULT= NAGPLUGINS
|
||||
#OPTIONS_DEFAULT= NAGPLUGINS
|
||||
EMBEDDED_PERL_DESC= Enable embedded Perl [requires Perl 5.8.0+]
|
||||
NANOSLEEP_DESC= Use nanosleep in event timing
|
||||
EVENT_BROKER_DESC= Enable event broker functionality
|
||||
UNHANDLED_HACK_DESC= Display passive checks in unhandled queries
|
||||
|
||||
.if ${FLAVOR} == monpluging
|
||||
.if ${FLAVOR} == monplugins
|
||||
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
|
||||
|
||||
OPTIONS_SUB=
|
||||
|
||||
@ -96,6 +93,14 @@ EMBEDDED_PERL_CONFIGURE_WITH= perlcache
|
||||
NANOSLEEP_CONFIGURE_ENABLE= nanosleep
|
||||
EVENT_BROKER_CONFIGURE_ENABLE= event-broker
|
||||
|
||||
.if ${FLAVOR} == monplugins
|
||||
OPTIONS_DEFAULT+= MONPLUGINS
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR} == default
|
||||
OPTIONS_DEFAULT+= NAGPLUGINS
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user