Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Feb 2016 20:18:02 +0000 (UTC)
From:      Niclas Zeising <zeising@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r408091 - head/net-mgmt/nrpe
Message-ID:  <201602042018.u14KI2Ux008516@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zeising
Date: Thu Feb  4 20:18:02 2016
New Revision: 408091
URL: https://svnweb.freebsd.org/changeset/ports/408091

Log:
  Make it possible to depend on either net-mgmt/nagios-plugins or
  net-mgmt/monitoring-plugins.
  
  PR:		196325
  Submitted by:	Niels Kristensen

Modified:
  head/net-mgmt/nrpe/Makefile

Modified: head/net-mgmt/nrpe/Makefile
==============================================================================
--- head/net-mgmt/nrpe/Makefile	Thu Feb  4 20:05:11 2016	(r408090)
+++ head/net-mgmt/nrpe/Makefile	Thu Feb  4 20:18:02 2016	(r408091)
@@ -3,15 +3,13 @@
 
 PORTNAME=	nrpe
 DISTVERSION=	2.15
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	net-mgmt
 MASTER_SITES=	SF/nagios/${PORTNAME}-2.x/${PORTNAME}-${PORTVERSION}
 
 MAINTAINER=	zeising@FreeBSD.org
 COMMENT?=	Nagios Remote Plugin Executor
 
-RUN_DEPENDS=	${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net-mgmt/nagios-plugins
-
 CONFLICTS=	nrpe-ssl-2.*
 
 USES=		perl5
@@ -20,10 +18,14 @@ USE_RC_SUBR=	nrpe2
 GNU_CONFIGURE=	yes
 
 OPTIONS_DEFINE=	SSL ARGS
-OPTIONS_DEFAULT=ARGS
+OPTIONS_RADIO=	PLUGINS
+OPTIONS_RADIO_PLUGINS=	MONPLUGINS NAGPLUGINS
+OPTIONS_DEFAULT=ARGS NAGPLUGINS
 
 SSL_DESC=	Enable SSL support (disables plain-text server)
 ARGS_DESC=	Enable command argument processing
+NAGPLUGINS_DESC=Use net-mgmt/nagios-plugins
+MONPLUGINS_DESC=Use net-mgmt/monitoring-plugins
 
 SSL_USE=		OPENSSL=yes
 SSL_CONFIGURE_ON=	--enable-ssl --with-ssl=${OPENSSLDIR} \
@@ -35,6 +37,9 @@ SSL_CFLAGS=		-I${OPENSSLINC}
 ARGS_CONFIGURE_ON=	--enable-command-args
 ARGS_CONFIGURE_OFF=	--disable-command-args
 
+MONPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net-mgmt/monitoring-plugins
+NAGPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net-mgmt/nagios-plugins
+
 NAGIOSUSER?=	nagios
 NAGIOSGROUP?=	nagios
 USERS=		${NAGIOSUSER}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602042018.u14KI2Ux008516>