diff options
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/nagios-statd/Makefile | 33 | ||||
-rw-r--r-- | sysutils/nagios-statd/distinfo | 1 | ||||
-rw-r--r-- | sysutils/nagios-statd/files/nagios-statd.sh.sample | 21 | ||||
-rw-r--r-- | sysutils/nagios-statd/pkg-descr | 9 | ||||
-rw-r--r-- | sysutils/nagios-statd/pkg-plist | 4 |
6 files changed, 69 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 02ea347692cc..725c515b7780 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -204,6 +204,7 @@ SUBDIR += msyslog SUBDIR += multitail SUBDIR += muse + SUBDIR += nagios-statd SUBDIR += nautilus-cd-burner SUBDIR += ndir SUBDIR += no-login diff --git a/sysutils/nagios-statd/Makefile b/sysutils/nagios-statd/Makefile new file mode 100644 index 000000000000..a9e760ffcd51 --- /dev/null +++ b/sysutils/nagios-statd/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: nagios-statd +# Date created: 2003-11-06 +# Whom: Jim Shewmaker +# +# $FreeBSD$ +# + +PORTNAME= nagios-statd +PORTVERSION= 3.09 +CATEGORIES= sysutils python +MASTER_SITES= http://www.twoevils.org/files/netsaint_statd/ + +MAINTAINER= jims@bluenotch.com +COMMENT= Daemon/client to check remote host information for Nagios + +USE_PYTHON= yes +USE_REINPLACE= yes + +MAN1= nagios-stat.1 +MAN8= nagios-statd.8 + +do-build: + ${REINPLACE_CMD} -e 's,/usr/bin/python,/usr/bin/env python,' \ + ${WRKSRC}/bin/* ${WRKSRC}/sbin/* + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/bin/nagios-stat ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/sbin/nagios-statd ${PREFIX}/sbin + ${INSTALL_SCRIPT} ${FILESDIR}/nagios-statd.sh.sample ${PREFIX}/etc/rc.d + ${INSTALL_MAN} ${WRKSRC}/share/man1/nagios-stat.1 ${PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/share/man8/nagios-statd.8 ${PREFIX}/man/man8 + +.include <bsd.port.mk> diff --git a/sysutils/nagios-statd/distinfo b/sysutils/nagios-statd/distinfo new file mode 100644 index 000000000000..fd95f212afdb --- /dev/null +++ b/sysutils/nagios-statd/distinfo @@ -0,0 +1 @@ +MD5 (nagios-statd-3.09.tar.gz) = 634a63a1fb8b33ac312f733bafa2e2d3 diff --git a/sysutils/nagios-statd/files/nagios-statd.sh.sample b/sysutils/nagios-statd/files/nagios-statd.sh.sample new file mode 100644 index 000000000000..1d0978a129f0 --- /dev/null +++ b/sysutils/nagios-statd/files/nagios-statd.sh.sample @@ -0,0 +1,21 @@ +#!/bin/sh +# $FreeBSD$ + +case "${1}" in +start) + nagios-statd + echo -n " nagios-statd" + ;; +stop) + /usr/bin/killall nagios-statd + ;; +restart) + $0 stop + $0 start + ;; +*) + echo "Usage: $0 {start|stop|restart}" + ;; +esac + +exit 0 diff --git a/sysutils/nagios-statd/pkg-descr b/sysutils/nagios-statd/pkg-descr new file mode 100644 index 000000000000..36fe97534e81 --- /dev/null +++ b/sysutils/nagios-statd/pkg-descr @@ -0,0 +1,9 @@ +Nagios-statd is an addon to the Nagios (formerly netsaint) program. +It is a Python daemon and scripts that plug-in to Nagios +and allow you to check remote host information +(such as load, users, filesystems, etc.) +Released under the BSD license. + +Author: Nick Reinking +WWW: http://www.twoevils.org/html/files.php + diff --git a/sysutils/nagios-statd/pkg-plist b/sysutils/nagios-statd/pkg-plist new file mode 100644 index 000000000000..2fb37af965e2 --- /dev/null +++ b/sysutils/nagios-statd/pkg-plist @@ -0,0 +1,4 @@ +@comment $FreeBSD$ +bin/nagios-stat +sbin/nagios-statd +etc/rc.d/nagios-statd.sh.sample |