pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/nagios-nrpe initial import of nagios-nrpe-2.5.1 in...
details: https://anonhg.NetBSD.org/pkgsrc/rev/cc8ca082fda9
branches: trunk
changeset: 513106:cc8ca082fda9
user: grant <grant%pkgsrc.org@localhost>
date: Sun May 21 10:28:40 2006 +0000
description:
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:
net/nagios-nrpe/DESCR | 6 ++++++
net/nagios-nrpe/Makefile | 41 +++++++++++++++++++++++++++++++++++++++++
net/nagios-nrpe/PLIST | 4 ++++
net/nagios-nrpe/distinfo | 5 +++++
net/nagios-nrpe/files/nrpe.sh | 19 +++++++++++++++++++
net/nagios-nrpe/options.mk | 18 ++++++++++++++++++
6 files changed, 93 insertions(+), 0 deletions(-)
diffs (117 lines):
diff -r 7ff3cd6016ee -r cc8ca082fda9 net/nagios-nrpe/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-nrpe/DESCR Sun May 21 10:28:40 2006 +0000
@@ -0,0 +1,6 @@
+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.
diff -r 7ff3cd6016ee -r cc8ca082fda9 net/nagios-nrpe/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-nrpe/Makefile Sun May 21 10:28:40 2006 +0000
@@ -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@localhost
+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"
diff -r 7ff3cd6016ee -r cc8ca082fda9 net/nagios-nrpe/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-nrpe/PLIST Sun May 21 10:28:40 2006 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/05/21 10:28:40 grant Exp $
+sbin/nrpe
+libexec/nagios/check_nrpe
+share/examples/nagios/nrpe.cfg
diff -r 7ff3cd6016ee -r cc8ca082fda9 net/nagios-nrpe/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-nrpe/distinfo Sun May 21 10:28:40 2006 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/05/21 10:28:40 grant Exp $
+
+SHA1 (nrpe-2.5.1.tar.gz) = 1beab9dc5fe77b722a12161b23b536ac5e28a6a4
+RMD160 (nrpe-2.5.1.tar.gz) = 757eb92cde878d8a0d3e483149d8969728ed7e03
+Size (nrpe-2.5.1.tar.gz) = 100382 bytes
diff -r 7ff3cd6016ee -r cc8ca082fda9 net/nagios-nrpe/files/nrpe.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-nrpe/files/nrpe.sh Sun May 21 10:28:40 2006 +0000
@@ -0,0 +1,19 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: nrpe.sh,v 1.1.1.1 2006/05/21 10:28:40 grant Exp $
+#
+# PROVIDE: nrpe
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="nrpe"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+config="@PKG_SYSCONFDIR@/${name}.cfg"
+pidfile="/var/run/${name}.pid"
+
+command_args="-c $config -d"
+
+load_rc_config $name
+run_rc_command "$1"
diff -r 7ff3cd6016ee -r cc8ca082fda9 net/nagios-nrpe/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-nrpe/options.mk Sun May 21 10:28:40 2006 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: options.mk,v 1.1.1.1 2006/05/21 10:28:40 grant Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.nagios-nrpe
+PKG_SUPPORTED_OPTIONS= ssl tcpwrappers
+PKG_SUGGESTED_OPTIONS= tcpwrappers
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mssl)
+CONFIGURE_ARGS+= --enable-ssl
+. include "../../security/openssl/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-ssl
+.endif
+
+.if !empty(PKG_OPTIONS:Mtcpwrappers)
+. include "../../security/tcp_wrappers/buildlink3.mk"
+.endif
Home |
Main Index |
Thread Index |
Old Index