ports/59029: new port: sysutils/nagios-statd

Jim Shewmaker jim at bluenotch.com
Fri Nov 7 06:00:36 UTC 2003


>Number:         59029
>Category:       ports
>Synopsis:       new port: sysutils/nagios-statd
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 06 22:00:34 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jim Shewmaker
>Release:        FreeBSD 4.9-RC i386
>Organization:
>Environment:
System: FreeBSD 4.9-RC FreeBSD 4.9-RC #0: Tue Oct 14 10:12:33 PDT 2003 jim at bluenotch.com:/usr/obj/usr/src/sys/DELL1650 i386


	
>Description:
	New port for use independantly or with nagios
>How-To-Repeat:
>Fix:

	

--- nagios-statd.sh begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	nagios-statd
#	nagios-statd/Makefile
#	nagios-statd/pkg-descr
#	nagios-statd/distinfo
#	nagios-statd/pkg-plist
#	nagios-statd/files
#	nagios-statd/files/nagios-statd.sh-dist
#	nagios-statd/files/patch-aa
#	nagios-statd/files/patch-ab
#
echo c - nagios-statd
mkdir -p nagios-statd > /dev/null 2>&1
echo x - nagios-statd/Makefile
sed 's/^X//' >nagios-statd/Makefile << 'END-of-nagios-statd/Makefile'
X# New ports collection makefile for:   nagios-statd
X# Date created:        6 November 2003
X# Whom:                jim
X#
X# $FreeBSD$
X#
X
XPORTNAME=      nagios-statd
XPORTVERSION=   3.08
XCATEGORIES=    sysutils
XMASTER_SITES=  http://www.twoevils.org/files/netsaint_statd/
X
XMAINTAINER=    jims at bluenotch.com
XCOMMENT=       Python daemon and client to check or serve remote host information (load, users, filesystem, processes, etc.).
X
XNO_CONFIGURE=   "There is no configure or makefile in the source"
XNO_BUILD= yes
XUSE_PYTHON=YES
X
XMAN1=		nagios-stat.1
XMAN8=		nagios-statd.8
X
X.include <bsd.port.pre.mk>
X
X.if ${PYTHON_REL} < 210
XRUN_DEPENDS=	python:${PORTSDIR}/lang/python
X.endif
X
Xdo-install:
X	@${INSTALL_SCRIPT} ${WRKSRC}/bin/nagios-stat ${PREFIX}/bin
X	@${INSTALL_SCRIPT} ${WRKSRC}/sbin/nagios-statd ${PREFIX}/sbin
X	@${INSTALL_SCRIPT} files/nagios-statd.sh-dist ${PREFIX}/etc/rc.d	
X	@${INSTALL_MAN} ${WRKSRC}/share/man1/nagios-stat.1 ${PREFIX}/man/man1
X	@${INSTALL_MAN} ${WRKSRC}/share/man8/nagios-statd.8 ${PREFIX}/man/man8
X
X
X.include <bsd.port.post.mk>
END-of-nagios-statd/Makefile
echo x - nagios-statd/pkg-descr
sed 's/^X//' >nagios-statd/pkg-descr << 'END-of-nagios-statd/pkg-descr'
XThis is my addon to the netsaint program. It is a Perl (version 2)/Python (version 3) daemon and scripts that plug-in to 
Xnagios(previously netsaint) and allow you to check remote host information (such as load, users, filesystems, etc.) 
XReleased under the BSD license.
X
XWWW: http://www.twoevils.org/html/files.php
X
X-Nick Reinking
END-of-nagios-statd/pkg-descr
echo x - nagios-statd/distinfo
sed 's/^X//' >nagios-statd/distinfo << 'END-of-nagios-statd/distinfo'
XMD5 (nagios-statd-3.08.tar.gz) = aed72779998fda375d69767cf32fc921
END-of-nagios-statd/distinfo
echo x - nagios-statd/pkg-plist
sed 's/^X//' >nagios-statd/pkg-plist << 'END-of-nagios-statd/pkg-plist'
Xbin/nagios-stat
Xsbin/nagios-statd
Xetc/rc.d/nagios-statd.sh-dist
END-of-nagios-statd/pkg-plist
echo c - nagios-statd/files
mkdir -p nagios-statd/files > /dev/null 2>&1
echo x - nagios-statd/files/nagios-statd.sh-dist
sed 's/^X//' >nagios-statd/files/nagios-statd.sh-dist << 'END-of-nagios-statd/files/nagios-statd.sh-dist'
X#!/bin/sh
Xcase "${1}" in
Xstart)
X        nagios-statd
X        echo -n " nagios-statd"
X        ;;
Xstop)
X        /usr/bin/killall nagios-statd
X        ;;
Xrestart)
X        $0 stop
X        $0 start
X        ;;
X*)
X        echo "Usage: $0 {start|stop|restart}"
X        ;;
Xesac
X
Xexit 0
END-of-nagios-statd/files/nagios-statd.sh-dist
echo x - nagios-statd/files/patch-aa
sed 's/^X//' >nagios-statd/files/patch-aa << 'END-of-nagios-statd/files/patch-aa'
X*** bin/nagios-stat.orig	Tue Nov  4 22:06:22 2003
X--- bin/nagios-stat	Tue Nov  4 22:06:29 2003
X***************
X*** 1,4 ****
X! #!/usr/bin/python
X  
X  import getopt, re, socket, sys
X  
X--- 1,4 ----
X! #!/usr/local/bin/python
X  
X  import getopt, re, socket, sys
X  
END-of-nagios-statd/files/patch-aa
echo x - nagios-statd/files/patch-ab
sed 's/^X//' >nagios-statd/files/patch-ab << 'END-of-nagios-statd/files/patch-ab'
X*** sbin/nagios-statd.orig	Tue Nov  4 22:07:24 2003
X--- sbin/nagios-statd	Tue Nov  4 22:07:30 2003
X***************
X*** 1,4 ****
X! #!/usr/bin/python
X  
X  import getopt, os, sys, signal, SocketServer
X  
X--- 1,4 ----
X! #!/usr/local/bin/python
X  
X  import getopt, os, sys, signal, SocketServer
X  
END-of-nagios-statd/files/patch-ab
exit
--- nagios-statd.sh ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:
 <[ non-critical | serious | critical ] (one line)>
 <[ sw-bug | doc-bug | change-request | update | maintainer-update ] (one line)>



More information about the freebsd-ports-bugs mailing list