summaryrefslogtreecommitdiff
path: root/net/mrtg/Makefile
diff options
context:
space:
mode:
authorbouyer <bouyer@pkgsrc.org>1999-05-18 14:16:53 +0000
committerbouyer <bouyer@pkgsrc.org>1999-05-18 14:16:53 +0000
commit147ae6dd80e19bbb1c246ab801b385d560877754 (patch)
treec750f54e0c3a2944a4c284b7990752e5f807b0a3 /net/mrtg/Makefile
parent27933be85cc0adfa2fd072e15ce4de74c771fe0c (diff)
downloadpkgsrc-147ae6dd80e19bbb1c246ab801b385d560877754.tar.gz
Add 2 perl scripts to collect datas on a NetBSD 1.4 system from netstat,
iostat, systat and a sample config file to use these. Also update the MESSAGE to stats there is a sample config file. Result can be seen at http://www.antioche.eu.org/mrtg/.
Diffstat (limited to 'net/mrtg/Makefile')
-rw-r--r--net/mrtg/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/net/mrtg/Makefile b/net/mrtg/Makefile
index 44de81ca7b4..e5cde9db5cf 100644
--- a/net/mrtg/Makefile
+++ b/net/mrtg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 1999/05/03 20:25:37 tv Exp $
+# $NetBSD: Makefile,v 1.6 1999/05/18 14:16:53 bouyer Exp $
# FreeBSD Id: Makefile,v 1.7 1997/12/16 19:42:17 vanilla Exp
#
@@ -15,6 +15,13 @@ USE_PERL5= YES
ALL_TARGET= rateup substitute
+post-build:
+ ${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/mrtg.conf.example \
+ >${WRKDIR}/mrtg.conf.example
+ ${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/netstat2mrtg \
+ >${WRKDIR}/netstat2mrtg
+ ${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/sys2mrtg \
+ >${WRKDIR}/sys2mrtg
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/etc/mrtg
${INSTALL_DATA_DIR} ${PREFIX}/share/mrtg
@@ -25,6 +32,10 @@ do-install:
for file in ${WRKSRC}/*.gif; do \
${INSTALL_DATA} $$file ${PREFIX}/share/mrtg/; \
done
+ ${INSTALL_DATA} ${WRKDIR}/mrtg.conf.example ${PREFIX}/etc/mrtg
+ for file in netstat2mrtg sys2mrtg; do \
+ ${INSTALL_SCRIPT} ${WRKDIR}/$$file ${PREFIX}/libexec/; \
+ done
${INSTALL_PROGRAM} ${WRKSRC}/rateup ${PREFIX}/libexec/
${INSTALL_SCRIPT} ${WRKSRC}/mrtg ${PREFIX}/bin/
${INSTALL_SCRIPT} ${WRKSRC}/BER.pm ${WRKSRC}/SNMP_Session.pm \