Add Flavor
This commit is contained in:
@ -10,6 +10,10 @@ WWW= https://www.nagios.org/
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
FLAVORS= default monplugins
|
||||
FLAVOR?= ${FLAVOR:[1]}
|
||||
monplugins_PKGNAMESUFFIX= -monplugins
|
||||
|
||||
LIB_DEPENDS= libltdl.so:devel/libltdl \
|
||||
libgd.so:graphics/gd
|
||||
|
||||
@ -76,8 +80,13 @@ 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
|
||||
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=
|
||||
|
||||
|
||||
Reference in New Issue
Block a user