summaryrefslogtreecommitdiff
path: root/net/mrtg
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-06-15 17:12:13 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-06-15 17:12:13 +0000
commit3b5e5a59bcf65af2a783ffa364a8494e0cfb2d22 (patch)
treeaf724440d919dc3817d00fc21a87c23763e7f37e /net/mrtg
parent708eae5f4d4904d95ee1820ec5df5b4d146558e8 (diff)
downloadpkgsrc-3b5e5a59bcf65af2a783ffa364a8494e0cfb2d22.tar.gz
Honour PKG_SYSCONFDIR in net/mrtg, and sync MESSAGE properly.
Bump PKGREVISION to 1.
Diffstat (limited to 'net/mrtg')
-rw-r--r--net/mrtg/MESSAGE5
-rw-r--r--net/mrtg/Makefile15
-rw-r--r--net/mrtg/PLIST6
3 files changed, 15 insertions, 11 deletions
diff --git a/net/mrtg/MESSAGE b/net/mrtg/MESSAGE
index 69864300b6d..daf7fafddb5 100644
--- a/net/mrtg/MESSAGE
+++ b/net/mrtg/MESSAGE
@@ -1,5 +1,5 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.4 2002/12/22 17:50:44 cjep Exp $
+$NetBSD: MESSAGE,v 1.5 2004/06/15 17:12:13 xtraeme Exp $
The Multi Router Traffic Grapher is now installed. Do note that two
programs have changed names to more readily reflect their MRTG-specific
@@ -11,7 +11,4 @@ function; make sure to prefix them with "mrtg":
The documentation can be found at ${PREFIX}/share/doc/mrtg/index.html;
there is a .txt version there as well.
-A sample config file collecting various datas from a NetBSD machine can
-be found in ${PREFIX}/etc/mrtg/.
-
===========================================================================
diff --git a/net/mrtg/Makefile b/net/mrtg/Makefile
index 6094b418874..45c0d292239 100644
--- a/net/mrtg/Makefile
+++ b/net/mrtg/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.49 2004/05/08 07:37:40 snj Exp $
+# $NetBSD: Makefile,v 1.50 2004/06/15 17:12:13 xtraeme Exp $
DISTNAME= mrtg-2.10.13
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub/ \
ftp://ftp.sunet.se/pub/network/monitoring/mrtg/ \
@@ -27,10 +28,12 @@ HOMEPAGE= http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html
COMMENT= The Multi-Router Traffic Grapher
USE_BUILDLINK3= YES
+USE_X11= YES
USE_PERL5= YES
PERL5_REQD+= 5.6.1
-USE_X11= YES
GNU_CONFIGURE= YES
+USE_PKGINSTALL= YES
+
BUILD_DEFS+= USE_INET6
.include "../../mk/bsd.prefs.mk"
@@ -42,6 +45,10 @@ CONFIGURE_ARGS+= --with-png-lib=${LOCALBASE}/lib
CONFIGURE_ARGS+= --with-png-inc=${LOCALBASE}/include
.endif
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+
+CONF_FILES= ${EGDIR}/mrtg.conf ${PKG_SYSCONFDIR}/mrtg.conf
+
post-build:
${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/mrtg.conf.example \
>${WRKDIR}/mrtg.conf.example
@@ -53,7 +60,7 @@ post-build:
>${WRKDIR}/envstat2mrtg
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/etc/mrtg
+ ${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/mrtg
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mrtg
for FILE in ${WRKSRC}/doc/*; do \
@@ -69,7 +76,7 @@ do-install:
for FILE in ${WRKSRC}/images/*.png; do \
${INSTALL_DATA} $$FILE ${PREFIX}/share/mrtg; \
done
- ${INSTALL_DATA} ${WRKDIR}/mrtg.conf.example ${PREFIX}/etc/mrtg
+ ${INSTALL_DATA} ${WRKDIR}/mrtg.conf.example ${EGDIR}/mrtg.conf
for FILE in netstat2mrtg sys2mrtg envstat2mrtg; do \
${INSTALL_SCRIPT} ${WRKDIR}/$$FILE ${PREFIX}/libexec; \
done
diff --git a/net/mrtg/PLIST b/net/mrtg/PLIST
index 1257ac07269..9f1929576f6 100644
--- a/net/mrtg/PLIST
+++ b/net/mrtg/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2004/02/15 07:34:03 martti Exp $
+@comment $NetBSD: PLIST,v 1.6 2004/06/15 17:12:13 xtraeme Exp $
${PERL5_SITELIB}/BER.pm
${PERL5_SITELIB}/MRTG_lib.pm
${PERL5_SITELIB}/SNMP_Session.pm
@@ -7,7 +7,6 @@ ${PERL5_SITELIB}/locales_mrtg.pm
bin/mrtg
bin/mrtgcfgmaker
bin/mrtgindexmaker
-etc/mrtg/mrtg.conf.example
libexec/envstat2mrtg
libexec/netstat2mrtg
libexec/rateup
@@ -94,10 +93,11 @@ share/doc/mrtg/mrtglib.1
share/doc/mrtg/mrtglib.html
share/doc/mrtg/mrtglib.pod
share/doc/mrtg/mrtglib.txt
+share/examples/mrtg/mrtg.conf
share/mrtg/mrtg-l.png
share/mrtg/mrtg-m.png
share/mrtg/mrtg-r.png
share/mrtg/mrtg-ti.png
-@dirrm etc/mrtg
@dirrm share/doc/mrtg
+@dirrm share/examples/mrtg
@dirrm share/mrtg