summaryrefslogtreecommitdiff
path: root/net/nagios-nrpe/Makefile
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2006-05-21 10:28:40 +0000
committergrant <grant@pkgsrc.org>2006-05-21 10:28:40 +0000
commit10f8cbe556b6249e6d5df7463bddae5e1ee17b3f (patch)
tree12e835bd64f8423529b298cf153823d96cadb6e7 /net/nagios-nrpe/Makefile
parent693fef035f243954c44c4f250c888175153851fd (diff)
downloadpkgsrc-10f8cbe556b6249e6d5df7463bddae5e1ee17b3f.tar.gz
initial import of nagios-nrpe-2.5.1 into pkgsrc.
This Nagios addon is designed to provide a way for executing plugins on a remote host. The check_nrpe plugin runs on the Nagios host and is used to send plugin execution requests to the nrpe agent on the remote host. The nrpe agent will then run an appropriate plugins on the remote host and return the plugin output and return code to the check_nrpe plugin on the Nagios host.
Diffstat (limited to 'net/nagios-nrpe/Makefile')
-rw-r--r--net/nagios-nrpe/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/net/nagios-nrpe/Makefile b/net/nagios-nrpe/Makefile
new file mode 100644
index 00000000000..24779a9be87
--- /dev/null
+++ b/net/nagios-nrpe/Makefile
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/05/21 10:28:40 grant Exp $
+#
+
+DISTNAME= nrpe-2.5.1
+PKGNAME= nagios-${DISTNAME}
+CATEGORIES= net sysutils
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nagios/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://sourceforge.net/projects/nagios/
+COMMENT= Nagios remote program execution daemon
+
+GNU_CONFIGURE= yes
+USE_PKGINSTALL= yes
+
+PKG_SYSCONFSUBDIR= nagios
+CONFIGURE_ARGS+= --libexecdir=${PREFIX}/libexec/nagios
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
+
+NAGIOS_USER?= nagios
+NAGIOS_GROUP?= ${NAGIOS_USER}
+
+PKG_GROUPS+= ${NAGIOS_GROUP}
+PKG_USERS+= ${NAGIOS_USER}:${NAGIOS_GROUP}::Nagios\ Runtime\ User
+
+CONFIGURE_ARGS+= --with-nrpe-user=${NAGIOS_USER:Q}
+CONFIGURE_ARGS+= --with-nrpe-group=${NAGIOS_GROUP:Q}
+
+CONF_FILES+= ${PREFIX}/share/examples/nagios/nrpe.cfg ${PKG_SYSCONFDIR}/nrpe.cfg
+RCD_SCRIPTS+= nrpe
+
+.include "options.mk"
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/nrpe ${PREFIX}/sbin
+ ${INSTALL_DATA_DIR} ${PREFIX}/libexec/nagios
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/check_nrpe ${PREFIX}/libexec/nagios
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/nagios
+ ${INSTALL_DATA} ${WRKSRC}/sample-config/nrpe.cfg ${PREFIX}/share/examples/nagios
+
+.include "../../mk/bsd.pkg.mk"