aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/nrpe2
diff options
context:
space:
mode:
authorOlli Hauer <ohauer@FreeBSD.org>2013-10-04 19:44:10 +0000
committerOlli Hauer <ohauer@FreeBSD.org>2013-10-04 19:44:10 +0000
commit0f0fe7b6fcba2d84a3d1d720b2718226d5798ac3 (patch)
tree1688ca6917afe1de8d9f7e5a9b786760fd2c5738 /net-mgmt/nrpe2
parent756402b2815a41a8265c09fee3710a22c8b024f3 (diff)
downloadports-0f0fe7b6fcba2d84a3d1d720b2718226d5798ac3.tar.gz
ports-0f0fe7b6fcba2d84a3d1d720b2718226d5798ac3.zip
Notes
Diffstat (limited to 'net-mgmt/nrpe2')
-rw-r--r--net-mgmt/nrpe2/Makefile94
-rw-r--r--net-mgmt/nrpe2/distinfo2
-rw-r--r--net-mgmt/nrpe2/files/nrpe2.in53
-rw-r--r--net-mgmt/nrpe2/files/patch-sample-config-nrpe.cfg.in14
-rw-r--r--net-mgmt/nrpe2/files/patch-src-nrpe.c28
-rw-r--r--net-mgmt/nrpe2/files/pkg-deinstall.in12
-rw-r--r--net-mgmt/nrpe2/files/pkg-install.in18
-rw-r--r--net-mgmt/nrpe2/files/pkg-message.in10
-rw-r--r--net-mgmt/nrpe2/pkg-descr14
-rw-r--r--net-mgmt/nrpe2/pkg-plist7
10 files changed, 0 insertions, 252 deletions
diff --git a/net-mgmt/nrpe2/Makefile b/net-mgmt/nrpe2/Makefile
deleted file mode 100644
index 1b92a8104fa2..000000000000
--- a/net-mgmt/nrpe2/Makefile
+++ /dev/null
@@ -1,94 +0,0 @@
-# Created by: Paul Dlug<paul@nerdlabs.com>
-# $FreeBSD$
-
-PORTNAME= nrpe
-DISTVERSION= 2.14
-CATEGORIES= net-mgmt
-MASTER_SITES= SF/nagios/${PORTNAME}-2.x/${PORTNAME}-${PORTVERSION}
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Nagios Remote Plugin Executor
-
-RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net-mgmt/nagios-plugins
-
-LATEST_LINK= nrpe2
-
-USES= perl5
-USE_PERL5= build
-USE_RC_SUBR= nrpe2
-
-CONFLICTS= nrpe-1.*
-
-OPTIONS_DEFINE= SSL ARGS
-SSL_DESC= Enable SSL support (disables plain-text server)
-ARGS_DESC= Enable command argument processing **Security Risk**
-
-GNU_CONFIGURE= yes
-
-NAGIOSUSER?= nagios
-NAGIOSGROUP?= nagios
-NAGIOSDIR?= /var/spool/nagios
-USERS= ${NAGIOSUSER}
-GROUPS= ${NAGIOSGROUP}
-
-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}
-
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
-
-.if ${PORT_OPTIONS:MSSL}
-.include "${PORTSDIR}/Mk/bsd.openssl.mk"
-CONFIGURE_ARGS+= --enable-ssl
-.else
-CONFIGURE_ARGS+= --disable-ssl
-.endif
-
-.if ${PORT_OPTIONS:MARGS}
-CONFIGURE_ARGS+= --enable-command-args
-.else
-CONFIGURE_ARGS+= --disable-command-args
-.endif
-
-post-patch:
- @${REINPLACE_CMD} -e 's#/var/run/nrpe.pid#/var/run/nrpe2/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
- ${MKDIR} ${NAGIOSDIR}
-
-post-install:
- @${SH} ${PKGINSTALL} ${DISTNAME} POST-INSTALL
- @[ -f ${PREFIX}/etc/nrpe.cfg ] || \
- ${CP} -p ${PREFIX}/etc/nrpe.cfg-sample ${PREFIX}/etc/nrpe.cfg
- @${CAT} ${PKGMESSAGE}
-
-.include <bsd.port.post.mk>
diff --git a/net-mgmt/nrpe2/distinfo b/net-mgmt/nrpe2/distinfo
deleted file mode 100644
index 55a4d9334c49..000000000000
--- a/net-mgmt/nrpe2/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (nrpe-2.14.tar.gz) = 808c7c4a82d0addf15449663e4712b5018c8bbd668e46723139f731f1ac44431
-SIZE (nrpe-2.14.tar.gz) = 421635
diff --git a/net-mgmt/nrpe2/files/nrpe2.in b/net-mgmt/nrpe2/files/nrpe2.in
deleted file mode 100644
index 69f10a7347e9..000000000000
--- a/net-mgmt/nrpe2/files/nrpe2.in
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-
-# $FreeBSD$
-#
-# PROVIDE: nrpe2
-# REQUIRE: LOGIN
-# KEYWORD: shutdown
-#
-# Add the following lines to /etc/rc.conf to enable nrpe2:
-# nrpe2_enable (bool): Set to "NO" by default.
-# Set it to "YES" to enable nrpe2.
-# nrpe2_flags (str): Not set by default.
-# nrpe2_configfile (str): Set to "%%PREFIX%%/etc/nrpe.cfg" by default.
-
-. /etc/rc.subr
-
-name=nrpe2
-rcvar=nrpe2_enable
-
-load_rc_config "${name}"
-
-: ${nrpe2_enable:=NO}
-: ${nrpe2_configfile:=%%PREFIX%%/etc/nrpe.cfg}
-
-required_files="${nrpe2_configfile}"
-
-command="%%PREFIX%%/sbin/nrpe2"
-command_args="-c ${nrpe2_configfile} -d"
-extra_commands=reload
-sig_reload=HUP
-
-start_precmd=nrpe2_prestart
-stop_precmd=find_pidfile
-
-find_pidfile()
-{
- [ -n "$nrpe2_pidfile" ] &&
- warn "No longer necessary to set nrpe2_pidfile in rc.conf[.local]"
-
- if get_pidfile_from_conf pid_file %%PREFIX%%/etc/nrpe.cfg; then
- pidfile="$_pidfile_from_conf"
- else
- pidfile='/var/run/nrpe2/nrpe2.pid'
- fi
-}
-
-nrpe2_prestart()
-{
- find_pidfile
- install -d -o ${nrpe_user:-nagios} ${pidfile%/*}
-}
-
-run_rc_command "$1"
diff --git a/net-mgmt/nrpe2/files/patch-sample-config-nrpe.cfg.in b/net-mgmt/nrpe2/files/patch-sample-config-nrpe.cfg.in
deleted file mode 100644
index 9d8893a9e039..000000000000
--- a/net-mgmt/nrpe2/files/patch-sample-config-nrpe.cfg.in
+++ /dev/null
@@ -1,14 +0,0 @@
---- sample-config/nrpe.cfg.in.orig 2007-11-24 04:01:23.000000000 +1030
-+++ sample-config/nrpe.cfg.in 2008-02-20 18:39:58.000000000 +1030
-@@ -198,7 +198,10 @@
-
- command[check_users]=@libexecdir@/check_users -w 5 -c 10
- command[check_load]=@libexecdir@/check_load -w 15,10,5 -c 30,25,20
--command[check_hda1]=@libexecdir@/check_disk -w 20% -c 10% -p /dev/hda1
-+command[check_root]=@libexecdir@/check_disk -w 20% -c 10% -p /
-+command[check_var]=@libexecdir@/check_disk -w 20% -c 10% -p /var
-+command[check_tmp]=@libexecdir@/check_disk -w 20% -c 10% -p /tmp
-+command[check_usr]=@libexecdir@/check_disk -w 20% -c 10% -p /usr
- command[check_zombie_procs]=@libexecdir@/check_procs -w 5 -c 10 -s Z
- command[check_total_procs]=@libexecdir@/check_procs -w 150 -c 200
-
diff --git a/net-mgmt/nrpe2/files/patch-src-nrpe.c b/net-mgmt/nrpe2/files/patch-src-nrpe.c
deleted file mode 100644
index c9afacbc76d1..000000000000
--- a/net-mgmt/nrpe2/files/patch-src-nrpe.c
+++ /dev/null
@@ -1,28 +0,0 @@
---- src/nrpe.c.orig 2013-07-10 21:18:24.000000000 +0000
-+++ src/nrpe.c 2013-07-10 21:20:25.000000000 +0000
-@@ -89,7 +89,9 @@
- int use_src=FALSE; /* Define parameter for SRC option */
-
-
-+#ifdef HAVE_SSL
- void complete_SSL_shutdown( SSL *);
-+#endif
-
-
- int main(int argc, char **argv){
-@@ -1673,6 +1675,7 @@
- return OK;
- }
-
-+#ifdef HAVE_SSL
- void complete_SSL_shutdown( SSL *ssl) {
-
- /*
-@@ -1693,6 +1696,7 @@
- if( SSL_shutdown( ssl)) break;
- }
- }
-+#endif
-
- /* bail if daemon is running as root */
- int check_privileges(void){
diff --git a/net-mgmt/nrpe2/files/pkg-deinstall.in b/net-mgmt/nrpe2/files/pkg-deinstall.in
deleted file mode 100644
index 0df5fea31431..000000000000
--- a/net-mgmt/nrpe2/files/pkg-deinstall.in
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-NAGIOSDIR=%%NAGIOSDIR%%
-
-if [ "$2" = "POST-DEINSTALL" ]; then
- if [ -e "${NAGIOSDIR}" ]; then
- echo "You should manually remove the \"${NAGIOSDIR}\" directory."
- fi
-fi
diff --git a/net-mgmt/nrpe2/files/pkg-install.in b/net-mgmt/nrpe2/files/pkg-install.in
deleted file mode 100644
index 006f7c666f59..000000000000
--- a/net-mgmt/nrpe2/files/pkg-install.in
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-NAGIOSDIR=%%NAGIOSDIR%%
-NAGIOSUSER=%%NAGIOSUSER%%
-NAGIOSGROUP=%%NAGIOSGROUP%%
-NAGIOSUID=%%NAGIOSUID%%
-NAGIOSGID=%%NAGIOSGID%%
-
-if [ "$2" = "POST-INSTALL" ]; then
- if [ ! -e "${NAGIOSDIR}" ]; then
- /bin/mkdir -p "${NAGIOSDIR}"
- /bin/chmod 775 "${NAGIOSDIR}"
- /usr/sbin/chown "${NAGIOSUSER}":"${NAGIOSGROUP}" "${NAGIOSDIR}"
- fi
-fi
diff --git a/net-mgmt/nrpe2/files/pkg-message.in b/net-mgmt/nrpe2/files/pkg-message.in
deleted file mode 100644
index 0bc9fc1e1435..000000000000
--- a/net-mgmt/nrpe2/files/pkg-message.in
+++ /dev/null
@@ -1,10 +0,0 @@
-**********************************************************************
-
- Enable NRPE in /etc/rc.conf with the following line:
-
- nrpe2_enable="YES"
-
- A sample configuration is available in %%PREFIX%%/etc/nrpe.cfg-sample.
- Copy to nrpe.cfg where required and edit to suit your needs.
-
-**********************************************************************
diff --git a/net-mgmt/nrpe2/pkg-descr b/net-mgmt/nrpe2/pkg-descr
deleted file mode 100644
index 1d6937a92950..000000000000
--- a/net-mgmt/nrpe2/pkg-descr
+++ /dev/null
@@ -1,14 +0,0 @@
-nrpe is used to execute Nagios plugins on remote hosts and report the results
-to the main Nagios server. From the Nagios homepage:
-
-Allows you to execute "local" plugins (like check_disk, check_procs, etc.) on
-remote hosts. The check_nrpe plugin is called from Nagios and actually makes
-the plugin requests to the remote host. Requires that nrpe be running on the
-remote host (either as a standalone daemon or as a service under inetd).
-
-nrpe2 is incompatible with nrpe version 1, if you are running this version
-see net-mgmt/nrpe. Both ports can be installed in parallel but share the same
-configuration file by default. This is easily changed in the nrpe startup
-file.
-
-WWW: http://www.nagios.org/
diff --git a/net-mgmt/nrpe2/pkg-plist b/net-mgmt/nrpe2/pkg-plist
deleted file mode 100644
index dbd317620084..000000000000
--- a/net-mgmt/nrpe2/pkg-plist
+++ /dev/null
@@ -1,7 +0,0 @@
-@unexec cmp -s %D/etc/nrpe.cfg-sample %D/etc/nrpe.cfg && rm %D/etc/nrpe.cfg || true
-etc/nrpe.cfg-sample
-@exec test -f %B/nrpe.cfg || cp -p %D/%F %B/nrpe.cfg
-libexec/nagios/check_nrpe2
-@dirrmtry libexec/nagios
-sbin/nrpe2
-@unexec rmdir %%NAGIOSDIR%% 2>/dev/null || true