- Fix df(1) output in query_unix_partitions.pl
- Fix path for ping in ping.pl - Rename a patch to a common scheme - Bump PORTREVISION Submitted by: Giraudet Olivier <giraudeo@altern.org>
This commit is contained in:
parent
5a40c8ac79
commit
2ed665eba1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=159642
8 changed files with 44 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= cacti
|
PORTNAME= cacti
|
||||||
PORTVERSION= 0.8.6h
|
PORTVERSION= 0.8.6h
|
||||||
PORTREVISION= 41
|
PORTREVISION= 42
|
||||||
CATEGORIES= net www
|
CATEGORIES= net www
|
||||||
MASTER_SITES= http://www.cacti.net/downloads/
|
MASTER_SITES= http://www.cacti.net/downloads/
|
||||||
|
|
||||||
|
|
10
net-mgmt/cacti/files/patch-scripts-ping.pl
Normal file
10
net-mgmt/cacti/files/patch-scripts-ping.pl
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
--- scripts/ping.pl.orig Sat Apr 15 22:26:44 2006
|
||||||
|
+++ scripts/ping.pl Sat Apr 15 22:27:16 2006
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
#!/usr/bin/perl
|
||||||
|
|
||||||
|
-open(PROCESS, "ping -c 1 $ARGV[0] | grep icmp_seq |");
|
||||||
|
+open(PROCESS, "/sbin/ping -c 1 $ARGV[0] | grep icmp_seq |");
|
||||||
|
$ping = <PROCESS>;
|
||||||
|
close(PROCESS);
|
||||||
|
$ping =~ m/(.*time=)(.*) (ms|usec)/;
|
11
net-mgmt/cacti/files/patch-scripts-query_unix_partitions.pl
Normal file
11
net-mgmt/cacti/files/patch-scripts-query_unix_partitions.pl
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- scripts/query_unix_partitions.pl.orig Sat Apr 15 22:25:55 2006
|
||||||
|
+++ scripts/query_unix_partitions.pl Sat Apr 15 22:26:14 2006
|
||||||
|
@@ -5,7 +5,7 @@
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
-open(DF, "/bin/df -P|");
|
||||||
|
+open(DF, "/bin/df -k|");
|
||||||
|
|
||||||
|
while (<DF>) {
|
||||||
|
#/dev/hda2 20157744 18553884 579860 97% /var
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= cacti
|
PORTNAME= cacti
|
||||||
PORTVERSION= 0.8.6h
|
PORTVERSION= 0.8.6h
|
||||||
PORTREVISION= 41
|
PORTREVISION= 42
|
||||||
CATEGORIES= net www
|
CATEGORIES= net www
|
||||||
MASTER_SITES= http://www.cacti.net/downloads/
|
MASTER_SITES= http://www.cacti.net/downloads/
|
||||||
|
|
||||||
|
|
10
net/cacti/files/patch-scripts-ping.pl
Normal file
10
net/cacti/files/patch-scripts-ping.pl
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
--- scripts/ping.pl.orig Sat Apr 15 22:26:44 2006
|
||||||
|
+++ scripts/ping.pl Sat Apr 15 22:27:16 2006
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
#!/usr/bin/perl
|
||||||
|
|
||||||
|
-open(PROCESS, "ping -c 1 $ARGV[0] | grep icmp_seq |");
|
||||||
|
+open(PROCESS, "/sbin/ping -c 1 $ARGV[0] | grep icmp_seq |");
|
||||||
|
$ping = <PROCESS>;
|
||||||
|
close(PROCESS);
|
||||||
|
$ping =~ m/(.*time=)(.*) (ms|usec)/;
|
11
net/cacti/files/patch-scripts-query_unix_partitions.pl
Normal file
11
net/cacti/files/patch-scripts-query_unix_partitions.pl
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- scripts/query_unix_partitions.pl.orig Sat Apr 15 22:25:55 2006
|
||||||
|
+++ scripts/query_unix_partitions.pl Sat Apr 15 22:26:14 2006
|
||||||
|
@@ -5,7 +5,7 @@
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
-open(DF, "/bin/df -P|");
|
||||||
|
+open(DF, "/bin/df -k|");
|
||||||
|
|
||||||
|
while (<DF>) {
|
||||||
|
#/dev/hda2 20157744 18553884 579860 97% /var
|
Loading…
Reference in a new issue