mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
f5098b9c93
- Bump PORTREVISION - Use SF macro while I am here PR: ports/125336 Submitted by: Olli Hauer <ohauer gmx.de> Approved by: Denis Shaposhnikov <dsh wizard.volgograd.ru> (maintainer)
68 lines
1.9 KiB
Makefile
68 lines
1.9 KiB
Makefile
# New ports collection makefile for: nagiosgraph
|
|
# Date created: Wed May 3 17:26:19 MSD 2006
|
|
# Whom: Denis Shaposhnikov <dsh@vlink.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= nagiosgraph
|
|
PORTVERSION= 0.9.0
|
|
PORTREVISION= 3
|
|
CATEGORIES= net-mgmt
|
|
MASTER_SITES= SF
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= dsh@wizard.volgograd.ru
|
|
COMMENT= Generate rrdtool\'s graphs by performance data from nagios plugins
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/nagios:${PORTSDIR}/net-mgmt/nagios \
|
|
${SITE_PERL}/${PERL_ARCH}/RRDs.pm:${PORTSDIR}/databases/rrdtool
|
|
|
|
USE_PERL5_RUN= yes
|
|
NO_BUILD= yes
|
|
|
|
PORTDOCS= CHANGELOG INSTALL README README.map
|
|
|
|
PLIST_SUB= NAGIOSWWWDIR=${NAGIOSWWWDIR}
|
|
|
|
NAGIOSWWWDIR?= www/nagios
|
|
|
|
post-patch:
|
|
.for i in insert.pl testcolor.cgi testentry.pl
|
|
${REINPLACE_CMD} -e 's!/usr/bin/perl!${PERL}!g' -e 's!/usr/local!${PREFIX}!g' \
|
|
-e 's!nagiosgraph\.conf!nagios/nagiosgraph/nagiosgraph.conf!g' ${WRKSRC}/$i
|
|
.endfor
|
|
.for i in show.cgi
|
|
${REINPLACE_CMD} -e 's!/usr/bin/perl!${PERL}!g' -e 's!/usr/local!${PREFIX}!g' \
|
|
-e 's!nagiosgraph/nagiosgraph\.conf!nagios/nagiosgraph/nagiosgraph.conf!g' ${WRKSRC}/$i
|
|
.endfor
|
|
|
|
do-install:
|
|
${MKDIR} ${PREFIX}/etc/nagios/nagiosgraph
|
|
.for i in map nagiosgraph.conf
|
|
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/etc/nagios/nagiosgraph/${i}.example
|
|
.endfor
|
|
|
|
${MKDIR} ${PREFIX}/libexec/${PORTNAME}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/insert.pl ${PREFIX}/libexec/${PORTNAME}
|
|
|
|
${MKDIR} ${PREFIX}/${NAGIOSWWWDIR}/cgi-bin/nagiosgraph
|
|
.for i in show.cgi testcolor.cgi
|
|
${INSTALL_SCRIPT} ${WRKSRC}/$i ${PREFIX}/${NAGIOSWWWDIR}/cgi-bin/nagiosgraph
|
|
.endfor
|
|
|
|
${MKDIR} ${PREFIX}/${NAGIOSWWWDIR}/stylesheets
|
|
${INSTALL_DATA} ${WRKSRC}/nagiosgraph.css ${PREFIX}/${NAGIOSWWWDIR}/stylesheets
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/testentry.pl ${EXAMPLESDIR}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
. for i in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
. endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|