aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/ifgraph
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/ifgraph')
-rw-r--r--net-mgmt/ifgraph/Makefile66
-rw-r--r--net-mgmt/ifgraph/distinfo2
-rw-r--r--net-mgmt/ifgraph/files/crontab.in3
-rw-r--r--net-mgmt/ifgraph/files/patch-find-if.pl28
-rw-r--r--net-mgmt/ifgraph/files/patch-ifgraph.conf17
-rw-r--r--net-mgmt/ifgraph/files/patch-ifgraph.pl57
-rw-r--r--net-mgmt/ifgraph/files/patch-makegraph.pl81
-rw-r--r--net-mgmt/ifgraph/files/pkg-deinstall.in19
-rw-r--r--net-mgmt/ifgraph/files/pkg-install.in23
-rw-r--r--net-mgmt/ifgraph/files/pkg-message.in32
-rw-r--r--net-mgmt/ifgraph/pkg-descr9
-rw-r--r--net-mgmt/ifgraph/pkg-plist44
12 files changed, 0 insertions, 381 deletions
diff --git a/net-mgmt/ifgraph/Makefile b/net-mgmt/ifgraph/Makefile
deleted file mode 100644
index 2fee5163ab41..000000000000
--- a/net-mgmt/ifgraph/Makefile
+++ /dev/null
@@ -1,66 +0,0 @@
-# Created by: Lars Thegler <lars@thegler.dk>
-# $FreeBSD$
-
-PORTNAME= ifgraph
-PORTVERSION= 0.4.10
-PORTREVISION= 4
-CATEGORIES= net-mgmt www
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20stable/${PORTVERSION}
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Simple grapher of SNMP data with RRD
-
-RUN_DEPENDS= rrdtool:${PORTSDIR}/databases/rrdtool \
- p5-Color-Rgb>0:${PORTSDIR}/graphics/p5-Color-Rgb \
- p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP
-BUILD_DEPENDS:= ${RUN_DEPENDS}
-
-USES= perl5
-NO_BUILD= yes
-
-PKGMESSAGE= ${WRKDIR}/pkg-message
-PKGINSTALL= ${WRKDIR}/pkg-install
-PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
-
-USERS= ifgraph
-GROUPS= ifgraph
-
-PLFILES= find-if.pl ifgraph.pl makegraph.pl
-DOCFILES= CHANGELOG INSTALACAO INSTALL TODO LICENSE.TXT MUDANCAS
-
-SUB_FILES= crontab pkg-deinstall pkg-install pkg-message
-SUB_LIST= USER=${USERS} PERL=${PERL}
-
-NO_STAGE= yes
-do-install:
-.for plfile in ${PLFILES}
- @ ${SED} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- ${WRKSRC}/${plfile} > ${WRKDIR}/${plfile}
- @ ${INSTALL_SCRIPT} ${WRKDIR}/${plfile} ${PREFIX}/bin
-.endfor
- @ ${SED} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- ${WRKSRC}/ifgraph.conf > ${WRKSRC}/ifgraph.conf.sample
- @ ${INSTALL_DATA} ${WRKSRC}/ifgraph.conf.sample ${PREFIX}/etc
- @ ${MKDIR} ${PREFIX}/ifgraph
- @ ${MKDIR} ${PREFIX}/ifgraph/htdocs
- @ ${MKDIR} ${PREFIX}/ifgraph/lib
- @ ${CP} ${WRKSRC}/lib/rgb.txt ${PREFIX}/ifgraph/lib
- @ ${CP} -Rp ${WRKSRC}/templates ${PREFIX}/ifgraph
- @ ${INSTALL_DATA} ${WRKDIR}/crontab ${PREFIX}/ifgraph/crontab
- @ ${CHOWN} -R ifgraph:ifgraph ${PREFIX}/ifgraph
- @ ${MKDIR} ${PREFIX}/var/ifgraph
- @ ${CHOWN} ifgraph:ifgraph ${PREFIX}/var/ifgraph
-.if !defined(NOPORTDOCS)
- @ ${MKDIR} ${DOCSDIR}
-.for docfile in ${DOCFILES}
- @ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
-.endfor
-.endif
-
-post-install:
- @ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
-.if !defined(BATCH)
- @ ${CAT} ${PKGMESSAGE}
-.endif
-
-.include <bsd.port.mk>
diff --git a/net-mgmt/ifgraph/distinfo b/net-mgmt/ifgraph/distinfo
deleted file mode 100644
index 4020a1e0371b..000000000000
--- a/net-mgmt/ifgraph/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (ifgraph-0.4.10.tar.gz) = 3cc8d2c92fc948713898ac8d2aec8d3d1a01fef0c67ca1f11605541c15792aed
-SIZE (ifgraph-0.4.10.tar.gz) = 158214
diff --git a/net-mgmt/ifgraph/files/crontab.in b/net-mgmt/ifgraph/files/crontab.in
deleted file mode 100644
index 6d856dd91303..000000000000
--- a/net-mgmt/ifgraph/files/crontab.in
+++ /dev/null
@@ -1,3 +0,0 @@
-# crontab file for ifGraph
-#*/5 * * * * %%PREFIX%%/bin/ifgraph.pl -c %%PREFIX%%/etc/ifgraph.conf > /dev/null
-#*/5 * * * * %%PREFIX%%/bin/makegraph.pl -c %%PREFIX%%/etc/ifgraph.conf > /dev/null
diff --git a/net-mgmt/ifgraph/files/patch-find-if.pl b/net-mgmt/ifgraph/files/patch-find-if.pl
deleted file mode 100644
index e7756643cb25..000000000000
--- a/net-mgmt/ifgraph/files/patch-find-if.pl
+++ /dev/null
@@ -1,28 +0,0 @@
---- ./find-if.pl.orig Sat Jan 3 23:44:21 2004
-+++ ./find-if.pl Mon Oct 9 13:49:17 2006
-@@ -1,4 +1,4 @@
--#!/usr/bin/perl -w
-+#!%%PERL%% -w
- #ifGraph 0.4.10 - Network Interface Data to RRD
- #Copyright (C) 2001-200333 Ricardo Sartori
- #
-@@ -19,10 +19,6 @@
- #Sugestoes e criticas (sem flames!!) mailto:sartori@lrv.ufsc.br
- #Visite: http://ifgraph.lrv.ufsc.br
-
--# Let's find out where we are
--use FindBin;
--# # Found, now we add it to the @INC
--use lib "$FindBin::Bin/lib";
- # # We are strict
- use strict;
- # # Get the command line options
-@@ -30,7 +26,7 @@
- getopts('adhims');
-
- # We just nedd the basic features here
--use Net::SNMP_365;
-+use Net::SNMP;
-
- use vars qw($response $response2 $response3 $response4 $response5 $response6 $response7 $response8 $response9
- $response10 $response11 $response12 $opt_d @ips $ip $mac $opt_a $opt_h $opt_m $opt_i $opt_s $if $desc $stat $ocin
diff --git a/net-mgmt/ifgraph/files/patch-ifgraph.conf b/net-mgmt/ifgraph/files/patch-ifgraph.conf
deleted file mode 100644
index 0050b81c2b90..000000000000
--- a/net-mgmt/ifgraph/files/patch-ifgraph.conf
+++ /dev/null
@@ -1,17 +0,0 @@
---- ifgraph.conf.orig Fri Aug 29 13:29:45 2003
-+++ ifgraph.conf Tue Feb 7 12:20:37 2006
-@@ -19,10 +19,10 @@
- # will not work as expected.
-
- [global]
--rrdtool = /usr/local/bin/rrdtool
--rrddir = /home/someuser/rrdfiles
--graphdir= /home/someuser/public_html/ifgraph-0.4.10
--template=/home/someuser/ifgraph-0.4.10/templates/en
-+rrdtool = %%PREFIX%%/bin/rrdtool
-+rrddir = %%PREFIX%%/var/ifgraph
-+graphdir = %%PREFIX%%/ifgraph/htdocs
-+template = %%PREFIX%%/ifgraph/templates/en
- imgformat=PNG
- # those are the default configurations, should be
- # overriden in each target
diff --git a/net-mgmt/ifgraph/files/patch-ifgraph.pl b/net-mgmt/ifgraph/files/patch-ifgraph.pl
deleted file mode 100644
index a933c610989d..000000000000
--- a/net-mgmt/ifgraph/files/patch-ifgraph.pl
+++ /dev/null
@@ -1,57 +0,0 @@
---- ./ifgraph.pl.orig Sat Jan 3 23:44:21 2004
-+++ ./ifgraph.pl Mon Oct 9 13:49:17 2006
-@@ -1,4 +1,4 @@
--#!/usr/bin/perl -w
-+#!%%PERL%% -w
- #ifGraph 0.4.10 - Network Interface Data to RRD
- #Copyright (C) 2001-2003 Ricardo Sartori
- #
-@@ -19,10 +19,6 @@
- #Sugestoes e criticas (sem flames!!) mailto:sartori@ifgraph.lrv.ufsc.br
- #Visite: http://ifgraph.lrv.ufsc.br
-
--# Let's find out where we are
--use FindBin;
--# Found, now we add it to the @INC
--use lib "$FindBin::Bin/lib";
- # We are strict
- use strict;
- # Get the command line options
-@@ -32,14 +28,7 @@
- getopt('cltF');
- getopts('dhT');
-
--# If the perl is older, we have to fetch the older Net::SNMP library
--if ($] < 5.006) {
-- &debug("Warning: Older perl version $], we will use Net::SNMP 3.65\n");
-- require Net::SNMP_365;
--} else {
-- &debug("Starting ifgraph 0.4.10 with perl $], Net::SNMP 4.3\n");
-- require Net::SNMP;
--}
-+use Net::SNMP;
-
- # SIGINT call
- $SIG{INT}=\&sigint;
-@@ -54,9 +43,9 @@
- if (defined($opt_c)) {
- $configfile=$opt_c;
- } else {
-- print("Warning: searching /usr/local/etc/, /etc and ./ for an ifgraph.conf file\n");
-- if (-r "/usr/local/etc/ifgraph.conf") {
-- $configfile="/usr/local/etc/ifgraph.conf";
-+ print("Warning: searching %%PREFIX%%/etc/, /etc and ./ for an ifgraph.conf file\n");
-+ if (-r "%%PREFIX%%/etc/ifgraph.conf") {
-+ $configfile="%%PREFIX%%/etc/ifgraph.conf";
- } elsif (-r "/etc/ifgraph.conf") { # used from the patch of Iain Lea <iain@bricbrac.de>
- $configfile="/etc/ifgraph.conf";
- } elsif (-r "./ifgraph.conf") {
-@@ -804,7 +793,7 @@
- # Setting targets defaults
- my(@default)=("name","1G","localhost","public",161,0,1,0,10,600,300,"RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797",0,"GAUGE");
- # Setting global defaults
-- @global[1,2,4]=("/usr/local/bin/rrdtool","/usr/local/rrdfiles/",1);
-+ @global[1,2,4]=("%%LOCALBASE%%/bin/rrdtool","%%LOCALBASE%%/rrdfiles/",1);
- my($accept_new_target)=1;
- my($index)=-1; # $index replaces $global[0] during the parsing
- open(CONF,"$configfile") || die("readconf() Fatal: Could not read config file $configfile ($!)\n");
diff --git a/net-mgmt/ifgraph/files/patch-makegraph.pl b/net-mgmt/ifgraph/files/patch-makegraph.pl
deleted file mode 100644
index bafadce6bc3f..000000000000
--- a/net-mgmt/ifgraph/files/patch-makegraph.pl
+++ /dev/null
@@ -1,81 +0,0 @@
---- ./makegraph.pl.orig Sat Jan 3 23:44:21 2004
-+++ ./makegraph.pl Mon Oct 9 13:49:55 2006
-@@ -1,4 +1,4 @@
--#!/usr/bin/perl -w
-+#!%%PERL%% -w
- #ifGraph 0.4.10 - Network Interface Data to RRD
- #Copyright (C) 2001-2003 Ricardo Sartori
- #
-@@ -19,8 +19,6 @@
- #Sugestoes e criticas (sem flames!!) mailto:sartori@ifgraph.lrv.ufsc.br
- #Visite: http://ifgraph.lrv.ufsc.br
-
--use FindBin;
--use lib "$FindBin::Bin/lib";
- use strict;
- use Getopt::Std;
- use Color::Rgb;
-@@ -31,14 +29,7 @@
- getopt('ctT');
- getopts('Bbgdh');
-
--# If the perl is older, we have to fetch the older Net::SNMP library
--if ($] < 5.006) {
-- &debug("Warning: Older perl version $], we will use Net::SNMP 3.65\n");
-- require Net::SNMP_365;
--} else {
-- &debug("Starting ifgraph 0.4.10 with perl $[, Net::SNMP 4.3\n");
-- require Net::SNMP;
--}
-+use Net::SNMP;
-
- # HELP
- if (defined($opt_h)) {
-@@ -48,16 +39,16 @@
-
- # Creating a color converter object
- &debug("main(): Creating a RGB converter object from Color::Rgb\n");
--$rgb_converter = new Color::Rgb(rgb_txt=>"$FindBin::Bin/lib/rgb.txt");
-+$rgb_converter = new Color::Rgb(rgb_txt=>"%%PREFIX%%/ifgraph/lib/rgb.txt");
- if ($rgb_converter) { &debug("main(): Ok RGB converter object created\n"); }
-
- # Defining the $configile variable
- if (defined($opt_c)) {
- $configfile=$opt_c;
- } else {
-- print("Warning: searching /usr/local/etc/, /etc and ./ for an ifgraph.conf file\n");
-- if (-r "/usr/local/etc/ifgraph.conf") {
-- $configfile="/usr/local/etc/ifgraph.conf";
-+ print("Warning: searching %%PREFIX%%/etc/, /etc and ./ for an ifgraph.conf file\n");
-+ if (-r "%%PREFIX%%/etc/ifgraph.conf") {
-+ $configfile="%%PREFIX%%/etc/ifgraph.conf";
- } elsif (-r "/etc/ifgraph.conf") { # used from the patch of Iain Lea <iain@bricbrac.de>
- $configfile="/etc/ifgraph.conf";
- } elsif (-r "./ifgraph.conf") {
-@@ -683,7 +674,7 @@
- &debug("criaGraficoBytes(): Colors are $color_back, $color_canvas, $color_shadea, $color_shadeb, $color_grid, $color_mgrid, $color_font, $color_frame, $color_arrow, $color_in, $color_out\ncriaGraficoBytes(): Options are $$targets[$targetindex][6]->[0] $$targets[$targetindex][6]->[1] $$targets[$targetindex][6]->[2] $$targets[$targetindex][6]->[3] $$targets[$targetindex][6]->[4] $$targets[$targetindex][6]->[5]\ncriaGraficoBytes(): Dimensions are $$targets[$targetindex][7]->[0] x $$targets[$targetindex][7]->[1]\n");
- my($start);
- while ($start=shift(@period)) {
-- print(RRDTOOL "graph $global->[3]/$targets->[$targetindex][0]$start.$opt_imgformat -a $$global[5] -b 1000 $opt_rigid -s $start -e -$targets->[$targetindex][19] $opt_legend $opt_nominor -w $dim_width -h $dim_height -c BACK$color_back -c CANVAS$color_canvas -c SHADEA$color_shadea -c SHADEB$color_shadeb -c GRID$color_grid -c MGRID$color_mgrid -c FONT$color_font -c FRAME$color_frame -c ARROW$color_arrow -v \" $$targets[$targetindex][9] \" -t \"$$targets[$targetindex][10]\" $opt_inout_def CDEF:deltain=totalin,errin,-,0,LT,0,totalin,errin,-,IF CDEF:in=deltain,0,LT,0,deltain,IF,$bwidth_in,GT,$bwidth_in,deltain,IF CDEF:deltaout=totalout,errout,-,0,LT,0,totalout,errout,-,IF CDEF:out=deltaout,0,LT,0,deltaout,IF,$bwidth_out,GT,$bwidth_out,deltaout,IF CDEF:kbin=in,1000,\/ CDEF:kbout=out,1000,\/ CDEF:percbin=in,100,*,$bwidth_in,\/ CDEF:percbout=out,100,*,$bwidth_out,\/ AREA:in$color_in:\"$$targets[$targetindex][11]->[0]\" LINE2:out$color_out:\"$$targets[$targetindex][11]->[1]\\l\" GPRINT:kbin:LAST:\'$$targets[$targetindex][11]->[0] - Now\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbin:LAST:\' (%.1lf%%)\' GPRINT:kbin:AVERAGE:\'Avg\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbin:AVERAGE:\' (%.1lf%%)\' GPRINT:kbin:MAX:\'Max\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbin:MAX:\' (%.1lf%%)\\l\' GPRINT:kbout:LAST:\'$$targets[$targetindex][11]->[1] - Now\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbout:LAST:\' (%.1lf%%)\' GPRINT:kbout:AVERAGE:\'Avg\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbout:AVERAGE:\' (%.1lf%%)\' GPRINT:kbout:MAX:\'Max\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbout:MAX:\' (%.1lf%%)\\l\' COMMENT:\'Max bytes for target $targets->[$targetindex][0]\: $bwidth_in - $bwidth_out bytes/sec\\l\' $opt_error\n")|| die("criaGraficoBytes() Fatal: Could not print to filehandle RRDTOOL: $!\n");
-+ print(RRDTOOL "graph $global->[3]/$targets->[$targetindex][0]$start.$opt_imgformat -a $$global[5] -b 1000 $opt_rigid -s $start -e -$targets->[$targetindex][19] $opt_legend $opt_nominor -w $dim_width -h $dim_height -c BACK$color_back -c CANVAS$color_canvas -c SHADEA$color_shadea -c SHADEB$color_shadeb -c GRID$color_grid -c MGRID$color_mgrid -c FONT$color_font -c FRAME$color_frame -c ARROW$color_arrow -v \" $$targets[$targetindex][9] \" -t \"$$targets[$targetindex][10]\" $opt_inout_def CDEF:deltain=totalin,errin,-,0,LT,0,totalin,errin,-,IF CDEF:in=deltain,0,LT,0,deltain,IF,$bwidth_in,GT,$bwidth_in,deltain,IF CDEF:deltaout=totalout,errout,-,0,LT,0,totalout,errout,-,IF CDEF:out=deltaout,0,LT,0,deltaout,IF,$bwidth_out,GT,$bwidth_out,deltaout,IF CDEF:kbin=in,1000,\/ CDEF:kbout=out,1000,\/ CDEF:percbin=in,100,*,$bwidth_in,\/ CDEF:percbout=out,100,*,$bwidth_out,\/ AREA:in$color_in:\"$$targets[$targetindex][11]->[0]\" LINE2:out$color_out:\"$$targets[$targetindex][11]->[1]\\l\" GPRINT:kbin:LAST:\'$$targets[$targetindex][11]->[0] - Now\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbin:LAST:\' (%.1lf%%)\' GPRINT:kbin:AVERAGE:\'Avg\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbin:AVERAGE:\' (%.1lf%%)\' GPRINT:kbin:MAX:\'Max\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbin:MAX:\' (%.1lf%%)\\l\' GPRINT:kbout:LAST:\'$$targets[$targetindex][11]->[1] - Now\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbout:LAST:\' (%.1lf%%)\' GPRINT:kbout:AVERAGE:\'Avg\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbout:AVERAGE:\' (%.1lf%%)\' GPRINT:kbout:MAX:\'Max\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbout:MAX:\' (%.1lf%%)\\l\' COMMENT:\'Max bytes for target $targets->[$targetindex][0]\\: $bwidth_in - $bwidth_out bytes/sec\\l\' $opt_error\n")|| die("criaGraficoBytes() Fatal: Could not print to filehandle RRDTOOL: $!\n");
- }
- }
-
-@@ -737,7 +728,7 @@
- &debug("criaGraficoBits(): Colors are $color_back, $color_canvas, $color_shadea, $color_shadeb, $color_grid, $color_mgrid, $color_font, $color_frame, $color_arrow, $color_in, $color_out\ncriaGraficoBits(): Options are $$targets[$targetindex][6]->[0] $$targets[$targetindex][6]->[1] $$targets[$targetindex][6]->[2] $$targets[$targetindex][6]->[3] $$targets[$targetindex][6]->[4] $$targets[$targetindex][6]->[5]\ncriaGraficoBits(): Dimensions are $$targets[$targetindex][7]->[0] x $$targets[$targetindex][7]->[1]\n");
- my($start);
- while ($start=shift(@period)) {
-- print(RRDTOOL "graph $global->[3]/$targets->[$targetindex][0]$start.$opt_imgformat -a $$global[5] -b 1000 $opt_rigid -s $start -e -$targets->[$targetindex][19] $opt_legend $opt_nominor -w $dim_width -h $dim_height -c BACK$color_back -c CANVAS$color_canvas -c SHADEA$color_shadea -c SHADEB$color_shadeb -c GRID$color_grid -c MGRID$color_mgrid -c FONT$color_font -c FRAME$color_frame -c ARROW$color_arrow -v \"$$targets[$targetindex][9]\" -t \"$$targets[$targetindex][10]\" $opt_inout_def CDEF:deltain=totalin,errin,-,0,LT,0,totalin,errin,-,IF CDEF:in=deltain,0,LT,0,deltain,IF,$bytes_bwidth_in,GT,$bytes_bwidth_in,deltain,IF CDEF:deltaout=totalout,errout,-,0,LT,0,totalout,errout,-,IF CDEF:out=deltaout,0,LT,0,deltaout,IF,$bytes_bwidth_out,GT,$bytes_bwidth_out,deltaout,IF CDEF:bitsin=in,8,* CDEF:bitsout=out,8,* CDEF:kbitsin=bitsin,1000,\/ CDEF:kbitsout=bitsout,1000,\/ CDEF:percbin=bitsin,100,*,$bwidth_in,\/ CDEF:percbout=bitsout,100,*,$bwidth_out,\/ CDEF:berrin=errin,8,\/ CDEF:berrout=errout,8,\/ AREA:bitsin$color_in:\"$$targets[$targetindex][11]->[0]\" LINE2:bitsout$color_out:\"$$targets[$targetindex][11]->[1]\\l\" GPRINT:kbitsin:LAST:\'$$targets[$targetindex][11]->[0] - Now\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbin:LAST:\' (%.1lf%%)\' GPRINT:kbitsin:AVERAGE:\'Avg\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbin:AVERAGE:\' (%.1lf%%)\' GPRINT:kbitsin:MAX:\'Max\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbin:MAX:\' (%.1lf%%)\\l\' GPRINT:kbitsout:LAST:\'$$targets[$targetindex][11]->[1] - Now\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbout:LAST:\' (%.1lf%%)\' GPRINT:kbitsout:AVERAGE:\'Avg\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbout:AVERAGE:\' (%.1lf%%)\' GPRINT:kbitsout:MAX:\'Max\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbout:MAX:\' (%.1lf%%)\\l\' COMMENT:\'Max bits for target $targets->[$targetindex][0]\: $bwidth_in - $bwidth_out bits/sec \\l\' $opt_error\n") || die("criaGraficoBits() Fatal: Could not print to filehandle RRDTOOL: $!\n");
-+ print(RRDTOOL "graph $global->[3]/$targets->[$targetindex][0]$start.$opt_imgformat -a $$global[5] -b 1000 $opt_rigid -s $start -e -$targets->[$targetindex][19] $opt_legend $opt_nominor -w $dim_width -h $dim_height -c BACK$color_back -c CANVAS$color_canvas -c SHADEA$color_shadea -c SHADEB$color_shadeb -c GRID$color_grid -c MGRID$color_mgrid -c FONT$color_font -c FRAME$color_frame -c ARROW$color_arrow -v \"$$targets[$targetindex][9]\" -t \"$$targets[$targetindex][10]\" $opt_inout_def CDEF:deltain=totalin,errin,-,0,LT,0,totalin,errin,-,IF CDEF:in=deltain,0,LT,0,deltain,IF,$bytes_bwidth_in,GT,$bytes_bwidth_in,deltain,IF CDEF:deltaout=totalout,errout,-,0,LT,0,totalout,errout,-,IF CDEF:out=deltaout,0,LT,0,deltaout,IF,$bytes_bwidth_out,GT,$bytes_bwidth_out,deltaout,IF CDEF:bitsin=in,8,* CDEF:bitsout=out,8,* CDEF:kbitsin=bitsin,1000,\/ CDEF:kbitsout=bitsout,1000,\/ CDEF:percbin=bitsin,100,*,$bwidth_in,\/ CDEF:percbout=bitsout,100,*,$bwidth_out,\/ CDEF:berrin=errin,8,\/ CDEF:berrout=errout,8,\/ AREA:bitsin$color_in:\"$$targets[$targetindex][11]->[0]\" LINE2:bitsout$color_out:\"$$targets[$targetindex][11]->[1]\\l\" GPRINT:kbitsin:LAST:\'$$targets[$targetindex][11]->[0] - Now\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbin:LAST:\' (%.1lf%%)\' GPRINT:kbitsin:AVERAGE:\'Avg\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbin:AVERAGE:\' (%.1lf%%)\' GPRINT:kbitsin:MAX:\'Max\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbin:MAX:\' (%.1lf%%)\\l\' GPRINT:kbitsout:LAST:\'$$targets[$targetindex][11]->[1] - Now\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbout:LAST:\' (%.1lf%%)\' GPRINT:kbitsout:AVERAGE:\'Avg\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbout:AVERAGE:\' (%.1lf%%)\' GPRINT:kbitsout:MAX:\'Max\\: %.$targets->[$targetindex][20]lf $$targets[$targetindex][13]\\g\' GPRINT:percbout:MAX:\' (%.1lf%%)\\l\' COMMENT:\'Max bits for target $targets->[$targetindex][0]\\: $bwidth_in - $bwidth_out bits/sec \\l\' $opt_error\n") || die("criaGraficoBits() Fatal: Could not print to filehandle RRDTOOL: $!\n");
- }
- }
-
-@@ -832,7 +823,7 @@
- # Setting targets defaults
- my(@default)=("name","1G","localhost","public",161,0,"","460x150","back#FFFFFF","","","","1000","",1,10,"-1day,-1week,-1month,-1year",0,"",600,2);
- # Setting global defaults
-- @global[1,2,3,4,5]=("/usr/local/bin/rrdtool","/usr/local/rrdfiles/","/usr/local/htdocs/","$FindBin::Bin/templates/en/","PNG");
-+ @global[1,2,3,4,5]=("%%LOCALBASE%%/bin/rrdtool","%%LOCALBASE%%/rrdfiles/","%%PERFIX%%/htdocs/","%%PREFIX%%/ifgraph/templates/en/","PNG");
- my($accept_new_target)=1;
- my($index)=-1; # target targetindex
- open(CONF,"$configfile") || die("readconf() Fatal: Could not read configuration file $configfile ($!)\n");
diff --git a/net-mgmt/ifgraph/files/pkg-deinstall.in b/net-mgmt/ifgraph/files/pkg-deinstall.in
deleted file mode 100644
index 6868a7f93bef..000000000000
--- a/net-mgmt/ifgraph/files/pkg-deinstall.in
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD: /tmp/pcvs/ports/net-mgmt/ifgraph/files/pkg-deinstall.in,v 1.2 2010-08-12 13:20:34 lth Exp $
-#
-
-PATH=/bin:/usr/bin:/usr/sbin
-
-case $2 in
-
-DEINSTALL)
- echo '---> Starting deinstall script:'
-
- echo '---> Zeroing crontab(5) file belonging to user "%%USER%%"'
- /usr/bin/crontab -u %%USER%% /dev/null
- echo ' (The crontab(5) will be deleted completely when user "%%USER%%" is removed.)'
-
- ;;
-
-esac
diff --git a/net-mgmt/ifgraph/files/pkg-install.in b/net-mgmt/ifgraph/files/pkg-install.in
deleted file mode 100644
index 56a52171ba89..000000000000
--- a/net-mgmt/ifgraph/files/pkg-install.in
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD: /tmp/pcvs/ports/net-mgmt/ifgraph/files/pkg-install.in,v 1.2 2010-08-12 13:20:34 lth Exp $
-#
-
-PATH=/bin:/usr/bin:/usr/sbin
-
-case $2 in
-POST-INSTALL)
- echo "---> Starting post-install script:"
-
- if [ -z "%%USER%%" -o \
- -z "%%PREFIX%%" ]; then
- echo "ERROR: A required pragma was empty"
- exit 1
- fi
-
- echo "---> Creating crontab(5) file for user \"%%USER%%\""
- crontab -u "%%USER%%" "%%PREFIX%%/ifgraph/crontab" || exit 1
-
- ;;
-
-esac
diff --git a/net-mgmt/ifgraph/files/pkg-message.in b/net-mgmt/ifgraph/files/pkg-message.in
deleted file mode 100644
index 043a08c75042..000000000000
--- a/net-mgmt/ifgraph/files/pkg-message.in
+++ /dev/null
@@ -1,32 +0,0 @@
-=================================================================
-
-ifGraph has now been installed in %%PREFIX%%/ifgraph/.
-
-NOTE: A sample configuration files has been placed at:
-
- %%PREFIX%%/etc/ifgraph.conf.sample
-
-You need to copy this to
-
- %%PREFIX%%/etc/ifgraph.conf
-
-and edit it to suit your requirements.
-
-A sample crontab(5) entry has been installed. You need to activate
-this to start measurements and graph generation. You can do this
-with
-
- crontab -u ifgraph -e
-
-Documentation is installed in
-
- %%DOCSDIR%%/
-
-To enable Apache web access, add the following to your
-%%PREFIX%%/etc/apache/httpd.conf:
-
- Alias /ifgraph/ %%PREFIX%%/ifgraph/htdocs/
-
-Enjoy!
-
-=================================================================
diff --git a/net-mgmt/ifgraph/pkg-descr b/net-mgmt/ifgraph/pkg-descr
deleted file mode 100644
index 8b563a861898..000000000000
--- a/net-mgmt/ifgraph/pkg-descr
+++ /dev/null
@@ -1,9 +0,0 @@
-ifGraph is a set of Perl scripts created to help network administrators
-to visualize network flow on a daily, weekly, monthly, and yearly basis.
-The graphics are created with RRDTool, and it shows bytes (in/out) and
-errors for each interface. It also shows the current/average/max use and
-the respective link/interface usage in percentages. The program also
-outputs HTML files to make the visualization of the PNG/GIF/GD images
-more friendly and easy.
-
-WWW: http://ifgraph.sourceforge.net/
diff --git a/net-mgmt/ifgraph/pkg-plist b/net-mgmt/ifgraph/pkg-plist
deleted file mode 100644
index 07e7b372076a..000000000000
--- a/net-mgmt/ifgraph/pkg-plist
+++ /dev/null
@@ -1,44 +0,0 @@
-@exec mkdir -p %D/ifgraph/htdocs
-@exec mkdir -p %D/var/ifgraph
-@exec chown ifgraph:ifgraph %D/var/ifgraph
-bin/find-if.pl
-bin/ifgraph.pl
-bin/makegraph.pl
-etc/ifgraph.conf.sample
-ifgraph/crontab
-ifgraph/lib/rgb.txt
-ifgraph/templates/en/if-data.html
-ifgraph/templates/en/if-header.html
-ifgraph/templates/en/if-trailer.html
-ifgraph/templates/en/main-data.html
-ifgraph/templates/en/main-header.html
-ifgraph/templates/en/main-trailer.html
-ifgraph/templates/es/if-data.html
-ifgraph/templates/es/if-header.html
-ifgraph/templates/es/if-trailer.html
-ifgraph/templates/es/main-data.html
-ifgraph/templates/es/main-header.html
-ifgraph/templates/es/main-trailer.html
-ifgraph/templates/ifgraph-logo.jpg
-ifgraph/templates/pt-br/if-data.html
-ifgraph/templates/pt-br/if-header.html
-ifgraph/templates/pt-br/if-trailer.html
-ifgraph/templates/pt-br/main-data.html
-ifgraph/templates/pt-br/main-header.html
-ifgraph/templates/pt-br/main-trailer.html
-@dirrm ifgraph/templates/en
-@dirrm ifgraph/templates/es
-@dirrm ifgraph/templates/pt-br
-@dirrm ifgraph/templates
-@dirrm ifgraph/htdocs
-@dirrm ifgraph/lib
-@dirrmtry ifgraph
-@dirrmtry var/ifgraph
-@dirrmtry var
-%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
-%%PORTDOCS%%%%DOCSDIR%%/INSTALACAO
-%%PORTDOCS%%%%DOCSDIR%%/INSTALL
-%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTDOCS%%%%DOCSDIR%%/LICENSE.TXT
-%%PORTDOCS%%%%DOCSDIR%%/MUDANCAS
-%%PORTDOCS%%@dirrm %%DOCSDIR%%