openbsd-ports/net/nagios/nrpe/Makefile
sthen 91faa22c52 Where a program with an rc script _requires_ a certain command line
parameter to daemonize, move the parameter from daemon to daemon_flags,
so that the user cannot inadvertently prevent it from daemonizing by
adjusting the flags.

Discussed with ajacoutot and schwarze, this method was suggested
by schwarze@ as a simpler alternative to my diff. ok aja@
2011-12-17 22:01:12 +00:00

51 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.16 2011/12/17 22:01:13 sthen Exp $
COMMENT= Nagios Remote Plugin Executor
# packaged from Icinga git repo.
DISTNAME= icinga-nrpe-2.12.20100914
REVISION= 1
PKGNAME= ${DISTNAME:S/icinga-//}
WRKDIST= ${WRKDIR}/icinga-nrpe
CATEGORIES= net
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
HOMEPAGE= http://www.nagios.org/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c crypto ssl wrap
MASTER_SITES= http://spacehopper.org/mirrors/
RUN_DEPENDS= net/nagios/plugins
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+=--enable-command-args \
--libexecdir=${LOCALBASE}/libexec/nagios \
--with-nrpe-user=_nrpe \
--with-nrpe-group=_nrpe \
--with-kerberos-inc=/usr/include/kerberosV/ \
ac_cv_lib_wrap_main=yes
pre-configure:
@${SUBST_CMD} ${WRKSRC}/src/nrpe.c
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/libexec/nagios
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nrpe
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/nrpe
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/nrpe
${INSTALL_DATA} ${WRKSRC}/SECURITY ${PREFIX}/share/doc/nrpe
${INSTALL_DATA} ${WRKSRC}/sample-config/nrpe.cfg ${PREFIX}/share/examples/nrpe
${INSTALL_PROGRAM} ${WRKSRC}/src/check_nrpe ${PREFIX}/libexec/nagios
${INSTALL_PROGRAM} ${WRKSRC}/src/nrpe ${PREFIX}/sbin
NO_REGRESS= Yes
.include <bsd.port.mk>