mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
net-mgmt/nagios: Add monplugins flavor
Some users asked to add a flavor to permit to have nagios already packaged with monplugins. PR: 283977 Sponsored by: Klara, Inc. Approved by: 0mp (mentor) Approved by: joneum (maintainer) Differential Revision: https://reviews.freebsd.org/D48146
This commit is contained in:
parent
d5dd5e79d2
commit
0fb561611e
1 changed files with 12 additions and 1 deletions
|
@ -10,6 +10,10 @@ WWW= https://www.nagios.org/
|
|||
|
||||
LICENSE= GPLv2
|
||||
|
||||
FLAVORS= default monplugins
|
||||
FLAVOR?= ${FLAVORS:[1]}
|
||||
monplugins_PKGNAMESUFFIX= -monplugins
|
||||
|
||||
LIB_DEPENDS= libltdl.so:devel/libltdl \
|
||||
libgd.so:graphics/gd
|
||||
|
||||
|
@ -70,7 +74,6 @@ GROUPS= ${NAGIOSGROUP}
|
|||
OPTIONS_DEFINE= EMBEDDED_PERL NANOSLEEP EVENT_BROKER UNHANDLED_HACK
|
||||
OPTIONS_RADIO= PLUGINS
|
||||
OPTIONS_RADIO_PLUGINS= MONPLUGINS 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
|
||||
|
@ -87,6 +90,14 @@ EMBEDDED_PERL_CONFIGURE_WITH= perlcache
|
|||
NANOSLEEP_CONFIGURE_ENABLE= nanosleep
|
||||
EVENT_BROKER_CONFIGURE_ENABLE= event-broker
|
||||
|
||||
.if ${FLAVOR:U} == monplugins
|
||||
OPTIONS_DEFAULT+= MONPLUGINS
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR:U} == default
|
||||
OPTIONS_DEFAULT+= NAGPLUGINS
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue