aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2009-01-20 00:01:34 +0800
committergarga <garga@FreeBSD.org>2009-01-20 00:01:34 +0800
commit295b80f500470ca10ebe9276adf4fe090ec66fbc (patch)
tree66b9132a32f3e5cab2ec8eb2757f327b9f943277 /devel
parent701b7682f76e2d67ef62a7cd2b86c973047e6623 (diff)
downloadfreebsd-ports-gnome-295b80f500470ca10ebe9276adf4fe090ec66fbc.tar.gz
freebsd-ports-gnome-295b80f500470ca10ebe9276adf4fe090ec66fbc.tar.zst
freebsd-ports-gnome-295b80f500470ca10ebe9276adf4fe090ec66fbc.zip
- Fix $boot_seconds set, previously it was recieving just a boolean return
instead the seconds. - Bump PORTREVISION PR: ports/130748 Submitted by: maintainer
Diffstat (limited to 'devel')
-rw-r--r--devel/p5-Unix-Uptime/Makefile1
-rw-r--r--devel/p5-Unix-Uptime/files/patch-lib__Unix__Uptime.pm12
2 files changed, 13 insertions, 0 deletions
diff --git a/devel/p5-Unix-Uptime/Makefile b/devel/p5-Unix-Uptime/Makefile
index 4617b02d5491..08c3a5da49be 100644
--- a/devel/p5-Unix-Uptime/Makefile
+++ b/devel/p5-Unix-Uptime/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Unix-Uptime
PORTVERSION= 0.1
+PORTREVISION= 1
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
diff --git a/devel/p5-Unix-Uptime/files/patch-lib__Unix__Uptime.pm b/devel/p5-Unix-Uptime/files/patch-lib__Unix__Uptime.pm
new file mode 100644
index 000000000000..01668b7ea495
--- /dev/null
+++ b/devel/p5-Unix-Uptime/files/patch-lib__Unix__Uptime.pm
@@ -0,0 +1,12 @@
+--- lib/Unix/Uptime.pm.orig 2009-01-19 13:22:27.000000000 -0200
++++ lib/Unix/Uptime.pm 2009-01-19 13:23:38.000000000 -0200
+@@ -62,7 +62,8 @@
+ my $class = shift;
+
+ my $boottime = `sysctl kern.boottime`;
+- my $boot_seconds = $boottime =~ /\s+sec\s+=\s+(\d+),/;
++ $boottime =~ /\s+sec\s+=\s+(\d+),/;
++ my $boot_seconds = $1;
+ my $time = time();
+ my $uptime = $time - $boot_seconds;
+ return $uptime;