22d4fbe5a7
without editing rc.d script. New knob nrpe2_pidfile is provided for this and it defaults to the old value of the PID file. - Bump PORTREVISION PR: 129386 Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> Approved by: maintainer
93 lines
2.1 KiB
Makefile
93 lines
2.1 KiB
Makefile
# New ports collection makefile for: nrpe
|
|
# Date created: 1 Aug 2002
|
|
# Whom: Paul Dlug<paul@nerdlabs.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= nrpe
|
|
DISTVERSION= 2.12
|
|
PORTREVISION= 1
|
|
CATEGORIES= net-mgmt
|
|
MASTER_SITES= SF
|
|
MASTER_SITE_SUBDIR= nagios
|
|
|
|
MAINTAINER= jarrod@netleader.com.au
|
|
COMMENT= Nagios Remote Plugin Executor
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net-mgmt/nagios-plugins
|
|
|
|
LATEST_LINK= nrpe2
|
|
|
|
USE_PERL5_BUILD= yes
|
|
USE_RC_SUBR= nrpe2
|
|
|
|
CONFLICTS= nrpe-1.*
|
|
|
|
OPTIONS= SSL "Enable SSL support (disables plain-text server)" off \
|
|
ARGS "Enable command argument processing **Security Risk**" off
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
NAGIOSUSER?= nagios
|
|
NAGIOSGROUP?= nagios
|
|
NAGIOSDIR?= /var/spool/nagios
|
|
|
|
NAGIOSUID= 181
|
|
NAGIOSGID= ${NAGIOSUID}
|
|
|
|
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin \
|
|
--libexecdir=${PREFIX}/libexec/nagios \
|
|
--sysconfdir=${PREFIX}/etc \
|
|
--localstatedir=${NAGIOSDIR} \
|
|
--with-nrpe-user=${NAGIOSUSER} \
|
|
--with-nrpe-group=${NAGIOSGROUP}
|
|
|
|
PLIST_SUB= NAGIOSDIR=${NAGIOSDIR} \
|
|
NAGIOSUSER=${NAGIOSUSER} \
|
|
NAGIOSGROUP=${NAGIOSGROUP} \
|
|
NAGIOSUID=${NAGIOSUID} \
|
|
NAGIOSGID=${NAGIOSGID}
|
|
|
|
SUB_FILES= pkg-install \
|
|
pkg-deinstall \
|
|
pkg-message
|
|
|
|
SUB_LIST= PREFIX=${PREFIX} \
|
|
${PLIST_SUB}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_SSL)
|
|
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
|
|
CONFIGURE_ARGS+= --enable-ssl
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-ssl
|
|
.endif
|
|
|
|
.if defined(WITH_ARGS)
|
|
CONFIGURE_ARGS+= --enable-command-args
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-command-args
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's#/var/run/nrpe.pid#@localstatedir@/nrpe2.pid#g' \
|
|
-e 's#/usr/lib/nagios/plugins/#${LOCALBASE}/libexec/nagios/#g' \
|
|
-e 's#/usr/bin/sudo#${LOCALBASE}/bin/sudo#g' \
|
|
${WRKSRC}/sample-config/nrpe.cfg.in
|
|
|
|
pre-install:
|
|
@${SH} ${PKGINSTALL} ${DISTNAME} PRE-INSTALL
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/nrpe ${PREFIX}/sbin/nrpe2
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/check_nrpe ${PREFIX}/libexec/nagios/check_nrpe2
|
|
${INSTALL_DATA} ${WRKSRC}/sample-config/nrpe.cfg ${PREFIX}/etc/nrpe.cfg-sample
|
|
|
|
post-install:
|
|
@${SH} ${PKGINSTALL} ${DISTNAME} POST-INSTALL
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|