- 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:
Sergey Matveychuk 2006-04-15 18:41:33 +00:00
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

View file

@ -7,7 +7,7 @@
PORTNAME= cacti
PORTVERSION= 0.8.6h
PORTREVISION= 41
PORTREVISION= 42
CATEGORIES= net www
MASTER_SITES= http://www.cacti.net/downloads/

View 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)/;

View 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

View file

@ -7,7 +7,7 @@
PORTNAME= cacti
PORTVERSION= 0.8.6h
PORTREVISION= 41
PORTREVISION= 42
CATEGORIES= net www
MASTER_SITES= http://www.cacti.net/downloads/

View 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)/;

View 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