Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 2003 20:20:42 -0800 (PST)
From:      Jim Shewmaker <jims@bluenotch.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/58948: new port: apan
Message-ID:  <200311050420.hA54Kgic087769@mail.trinetinternet.com>
Resent-Message-ID: <200311050420.hA54KIER023814@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         58948
>Category:       ports
>Synopsis:       new port: apan
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 04 20:20:17 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jim Shewmaker
>Release:        FreeBSD 4.9-RC i386
>Organization:
>Environment:
System: FreeBSD mail.trinetinternet.com 4.9-RC FreeBSD 4.9-RC #0: Tue Oct 14 10:12:33 PDT 2003 jim@mail.trinetinternet.com:/usr/obj/usr/src/sys/DELL1650 i386


>Description:
	New Port: apan
>How-To-Repeat:
>Fix:


--- apan-port 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:
#
#	apan/
#	apan/Makefile
#	apan/pkg-descr
#	apan/distinfo
#	apan/pkg-plist
#
echo c - apan/
mkdir -p apan/ > /dev/null 2>&1
echo x - apan/Makefile
sed 's/^X//' >apan/Makefile << 'END-of-apan/Makefile'
X# New ports collection makefile for:   nagios-statd
X# Date created:        6 October 2003
X# Whom:                jims
X#
X# $FreeBSD$
X#
X
XPORTNAME=      apan
XPORTVERSION=   0.2.1
XCATEGORIES=    sysutils
XMASTER_SITES=  http://easynews.dl.sourceforge.net/sourceforge/apan/
X
XMAINTAINER=    jims@bluenotch.com
XCOMMENT=       A tool for integrating Nagios with RRD-tool.
X
XNO_CONFIGURE=   "There is no configure or makefile in the source"
XNO_BUILD=	yes
XUSE_REINPLACE=	yes
X
XWRKSRC=      ${WRKDIR}/${PORTNAME}
X
XRUN_DEPENDS=	rrdtool:${PORTSDIR}/net/rrdtool \
X		nagios:${PORTSDIR}/net/rrdtool \
X		nagios-stat:${PORTSDIR}/net/nagios-stat \
X		bash:${PORTSDIR}/shells/bash2
Xpost-extract:											
X	@${REINPLACE_CMD} \
X        	-e 's|/nagios/bin/apan.sh|${PREFIX}/libexec/apan.sh|' \
X        	-e 's|/usr/local/nagios|${PREFIX}|' \
X        	-e 's|/${PORTNAME}{/|/etc/${PORTNAME}/|' \
X        	-e 's|/usr/local/bin/|${PREFIX}/bin/|' \
X        	-e 's|/bin/bash|${PREFIX}/bin/bash|' \
X        	-e 's|/bin/sh|${PREFIX}/bin/bash|' \
X        	-e 's|etc/nagios/${PORTNAME}|etc/${PORTNAME}|' \
X        	-e 's|.APANDIR/plugs|${PREFIX}/libexec/${PORTNAME}/plugs|' \
X        	-e 's|.NAGIOSDIR/${PORTNAME}|${PREFIX}/etc/${PORTNAME}|' \
X        	-e 's|.NAGIOSSDIR/libexec|${PREFIX}/libexec/nagios|' \
X        	-e 's|.NAGIOSSDIR/etc|${PREFIX}/etc/nagios|' \
X		-e 's|/usr/local/nagios|${PREFIX}/etc/nagios|' \
X		${WRKSRC}/*.*
X	@${REINPLACE_CMD} \
X        	-e 's|/nagios/bin/apan.sh|${PREFIX}/libexec/apan.sh|' \
X        	-e 's|/usr/local/nagios|${PREFIX}|' \
X        	-e 's|/apan/|/etc/apan/|' \
X        	-e 's|/bin/bash|${PREFIX}/bin/bash|' \
X        	-e 's|/bin/sh|${PREFIX}/bin/bash|' \
X        	-e 's|/usr/local/bin/|${PREFIX}/bin/|' \
X        	-e 's|.PLUGINSDIR/nagios-stat|${PREFIX}/bin/nagios-stat|' \
X		-e 's|/usr/local/nagios|${PREFIX}/etc/nagios|' \
X		${WRKSRC}/plugs/*
X	@${REINPLACE_CMD} \
X		-e 's|^. /usr/local/nagios/|#. /usr/local/nagios/|' \
X        	-e 's|/nagios/bin/apan.sh|${PREFIX}/libexec/apan.sh|' \
X        	-e 's|/usr/local/nagios|${PREFIX}|' \
X        	-e 's|/apan/|/etc/apan/|' \
X        	-e 's|/bin/bash|${PREFIX}/bin/bash|' \
X        	-e 's|/bin/sh|${PREFIX}/bin/bash|' \
X        	-e 's|/usr/local/bin/|${PREFIX}/bin/|' \
X        	-e 's|.PLUGINSDIR/nagios-stat|${PREFIX}/bin/nagios-stat|' \
X		-e 's|/usr/local/nagios|${PREFIX}/etc/nagios|' \
X		${WRKSRC}/libexec/*
X
Xdo-install:											
X	@${MKDIR} ${PREFIX}/libexec/${PORTNAME}							
X	@${MKDIR} ${PREFIX}/libexec/${PORTNAME}/plugs							
X	@${MKDIR} ${PREFIX}/etc/${PORTNAME}							
X	@${MKDIR} ${PREFIX}/etc/${PORTNAME}/rrd							
X	@${INSTALL_SCRIPT} ${WRKSRC}/apan.sh ${PREFIX}/bin
X	@${INSTALL_SCRIPT} ${WRKSRC}/apan.cgi ${PREFIX}/share/nagios/cgi-bin			
X	@${INSTALL_SCRIPT} ${WRKSRC}/generate.cgi ${PREFIX}/share/nagios/cgi-bin		
X	@${INSTALL_SCRIPT} ${WRKSRC}/libexec/* ${PREFIX}/libexec/nagios			
X	@${INSTALL_SCRIPT} ${WRKSRC}/plugs/* ${PREFIX}/libexec/${PORTNAME}/plugs			
X	@${INSTALL_DATA} ${WRKSRC}/apan.cfg ${PREFIX}/etc/${PORTNAME}/apan.cfg-sample		
X	@${INSTALL_DATA} ${WRKSRC}/apan.defs ${PREFIX}/etc/${PORTNAME}/apan.defs-sample		
X	@${INSTALL_DATA} ${WRKSRC}/graph.png ${PREFIX}/share/nagios/images/logos		
X
X.include <bsd.port.mk>
END-of-apan/Makefile
echo x - apan/pkg-descr
sed 's/^X//' >apan/pkg-descr << 'END-of-apan/pkg-descr'
XApan is a addon to Nagios that is used to collect results from Nagios plugins and store it in RRD-files. You can the use 
XApan to view graphs of the data in Nagios web-interface.
X
XWWW: http://apan.sourceforge.net
X
XFredrik Wänglund
X
END-of-apan/pkg-descr
echo x - apan/distinfo
sed 's/^X//' >apan/distinfo << 'END-of-apan/distinfo'
XMD5 (apan-0.2.1.tar.gz) = 2e0ffbddf6073cf5cc38efa501200dfa
END-of-apan/distinfo
echo x - apan/pkg-plist
sed 's/^X//' >apan/pkg-plist << 'END-of-apan/pkg-plist'
Xbin/apan.sh
Xetc/apan/apan.cfg-sample
Xetc/apan/apan.defs-sample
Xshare/nagios/cgi-bin/apan.cgi
Xshare/nagios/cgi-bin/generate.cgi
X
END-of-apan/pkg-plist
exit
--- apan-port ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311050420.hA54Kgic087769>