diff options
author | tv <tv> | 1998-07-13 16:59:07 +0000 |
---|---|---|
committer | tv <tv> | 1998-07-13 16:59:07 +0000 |
commit | 62ae1052675e7ab44dd05c4960ce5e9c6f55812b (patch) | |
tree | e639f35d9cd57b6c813e4570ddc442ea8e2b0bb1 /net/mrtg | |
parent | 4420b310c4e87024a00d3b6de811476bbbde1d5f (diff) | |
download | pkgsrc-62ae1052675e7ab44dd05c4960ce5e9c6f55812b.tar.gz |
Import of FreeBSD's Multi Router Traffic Grapher pkg, patches to follow.
Diffstat (limited to 'net/mrtg')
-rw-r--r-- | net/mrtg/Makefile | 42 | ||||
-rw-r--r-- | net/mrtg/files/md5 | 1 | ||||
-rw-r--r-- | net/mrtg/patches/patch-aa | 35 | ||||
-rw-r--r-- | net/mrtg/patches/patch-ab | 11 | ||||
-rw-r--r-- | net/mrtg/pkg/COMMENT | 1 | ||||
-rw-r--r-- | net/mrtg/pkg/DESCR | 11 | ||||
-rw-r--r-- | net/mrtg/pkg/PLIST | 24 |
7 files changed, 125 insertions, 0 deletions
diff --git a/net/mrtg/Makefile b/net/mrtg/Makefile new file mode 100644 index 00000000000..a70f5d6f87c --- /dev/null +++ b/net/mrtg/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: MRTG +# Version required: 2.5.1 +# Date created: April 18th 1997 +# Whom: James FitzGibbon <jfitz@FreeBSD.org> +# +# $Id: Makefile,v 1.1.1.1 1998/07/13 16:59:07 tv Exp $ +# + +DISTNAME= mrtg-2.5.1 +CATEGORIES= net +MASTER_SITES= http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/pub/ + +MAINTAINER= jfitz@FreeBSD.ORG + +BUILD_DEPENDS= ${PREFIX}/lib/libgd.a:${PORTSDIR}/graphics/gd +RUN_DEPENDS= ${PREFIX}/lib/perl5/site_perl/PV.pm:${PORTSDIR}/devel/p5-PV + +USE_PERL5= YES + +ALL_TARGET= rateup substitute + +do-install: + ${MKDIR} -p -m 755 ${PREFIX}/etc/mrtg + ${MKDIR} -p -m 755 ${PREFIX}/lib/perl5/site_perl + ${MKDIR} -p -m 755 ${PREFIX}/share/mrtg + ${MKDIR} -p -m 755 ${PREFIX}/share/doc/mrtg + for file in readme.html readme.txt mibhelp.txt INSTALL COPYING COPYRIGHT Changes Contributors Todo; do \ + ${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/share/doc/mrtg/; \ + done + for file in ${WRKSRC}/*.gif; do \ + ${INSTALL_DATA} $$file ${PREFIX}/share/mrtg/; \ + done + for file in SNMP_Session.pm BER.pm; do \ + ${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/lib/perl5/site_perl/; \ + done + ${INSTALL_PROGRAM} ${WRKSRC}/rateup ${PREFIX}/bin/ + for file in mrtg cfgmaker convert indexmaker; do \ + ${INSTALL_SCRIPT} ${WRKSRC}/$$file ${PREFIX}/bin/; \ + done + ${INSTALL_DATA} ${WRKSRC}/mrtg.cfg-dist ${PREFIX}/etc/mrtg + +.include <bsd.port.mk> diff --git a/net/mrtg/files/md5 b/net/mrtg/files/md5 new file mode 100644 index 00000000000..418a2968054 --- /dev/null +++ b/net/mrtg/files/md5 @@ -0,0 +1 @@ +MD5 (mrtg-2.5.1.tar.gz) = 0add21fd0a743e459e26fdc93666be74 diff --git a/net/mrtg/patches/patch-aa b/net/mrtg/patches/patch-aa new file mode 100644 index 00000000000..52db1499814 --- /dev/null +++ b/net/mrtg/patches/patch-aa @@ -0,0 +1,35 @@ +--- Makefile.orig Sat Oct 25 20:00:59 1997 ++++ Makefile Sat Dec 6 09:33:47 1997 +@@ -5,17 +5,17 @@ + SHELL=/bin/sh + # GD_INCLUDE + # The path to the include files for the gd graphics library. +-#GD_INCLUDE=/usr/local/include/gd +-GD_INCLUDE=gd1.2 ++GD_INCLUDE=/usr/local/include/gd ++#GD_INCLUDE=gd1.2 + + # GD_LIB + # The path to the gd graphics library: libgd.a +-#GD_LIB=/usr/local/lib +-GD_LIB=gd1.2 ++GD_LIB=/usr/local/lib ++#GD_LIB=gd1.2 + + # Where is perl 5 on this machine +-# PERL=/usr/local/bin/perl +-PERL=/usr/local/gnu/bin/perl5 ++PERL=/usr/local/bin/perl ++#PERL=/usr/local/gnu/bin/perl5 + + + # CC +@@ -26,7 +26,7 @@ + # CFLAGS + # Enter '-g' to include debugging info, or '-O2' to optimize + # for gcc +-CFLAGS=-g -O -Wall ++CFLAGS+=-Wall + + # for sparcworks + #CFLAGS=-g diff --git a/net/mrtg/patches/patch-ab b/net/mrtg/patches/patch-ab new file mode 100644 index 00000000000..8831292ca28 --- /dev/null +++ b/net/mrtg/patches/patch-ab @@ -0,0 +1,11 @@ +--- mrtg.cfg-dist.orig Fri Oct 24 21:35:55 1997 ++++ mrtg.cfg-dist Sat Dec 6 09:34:48 1997 +@@ -21,7 +21,7 @@ + + # Where should the logfiles, and webpages be created? + +-# WorkDir: /usr/tardis/pub/www/stats/mrtg ++WorkDir: /usr/local/www/data/mrtg + + # -------------------------- + # Optional Global Parameters diff --git a/net/mrtg/pkg/COMMENT b/net/mrtg/pkg/COMMENT new file mode 100644 index 00000000000..7720201d06d --- /dev/null +++ b/net/mrtg/pkg/COMMENT @@ -0,0 +1 @@ +the multi-router traffic grapher diff --git a/net/mrtg/pkg/DESCR b/net/mrtg/pkg/DESCR new file mode 100644 index 00000000000..d11d385d2f5 --- /dev/null +++ b/net/mrtg/pkg/DESCR @@ -0,0 +1,11 @@ +The Multi Router Traffic Grapher (MRTG) is a tool to monitor the traffic +load on network-links. MRTG generates HTML pages containing GIF images which +provide a LIVE visual representation of this traffic. Check + +http://www.ee.ethz.ch/stats/mrtg/ + +for an example. MRTG is based on Perl and C and works under UNIX and Windows +NT. + +MRTG is being successfully used on many sites arrond the net. Check the +MRTG-Site-Map, which is at diff --git a/net/mrtg/pkg/PLIST b/net/mrtg/pkg/PLIST new file mode 100644 index 00000000000..e2563b5a78a --- /dev/null +++ b/net/mrtg/pkg/PLIST @@ -0,0 +1,24 @@ +bin/cfgmaker +bin/convert +bin/indexmaker +bin/mrtg +bin/rateup +etc/mrtg/mrtg.cfg-dist +lib/perl5/site_perl/BER.pm +lib/perl5/site_perl/SNMP_Session.pm +share/mrtg/mrtg-l.gif +share/mrtg/mrtg-m.gif +share/mrtg/mrtg-r.gif +share/mrtg/mrtg-ti.gif +share/doc/mrtg/COPYING +share/doc/mrtg/COPYRIGHT +share/doc/mrtg/INSTALL +share/doc/mrtg/Changes +share/doc/mrtg/Contributors +share/doc/mrtg/Todo +share/doc/mrtg/mibhelp.txt +share/doc/mrtg/readme.html +share/doc/mrtg/readme.txt +@dirrm etc/mrtg +@dirrm share/doc/mrtg +@dirrm share/mrtg |