aboutsummaryrefslogtreecommitdiff
path: root/sysutils/asapm
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2005-08-01 13:36:35 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2005-08-01 13:36:35 +0000
commit01eceb9313ca761550192b4b61b719e6db296b75 (patch)
tree002bbf814b730064df5347c78b7a066a23cd4534 /sysutils/asapm
parent24cc7f6069d7f485bf7ef4718e735b9901c96c26 (diff)
Notes
Diffstat (limited to 'sysutils/asapm')
-rw-r--r--sysutils/asapm/Makefile2
-rw-r--r--sysutils/asapm/distinfo4
-rw-r--r--sysutils/asapm/files/patch-apm_read.c16
3 files changed, 11 insertions, 11 deletions
diff --git a/sysutils/asapm/Makefile b/sysutils/asapm/Makefile
index b9818ea15cb9..21f2506dd55b 100644
--- a/sysutils/asapm/Makefile
+++ b/sysutils/asapm/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= asapm
-PORTVERSION= 3.0
+PORTVERSION= 3.1
CATEGORIES= sysutils
MASTER_SITES= http://www.tigr.net/afterstep/download/asapm/
diff --git a/sysutils/asapm/distinfo b/sysutils/asapm/distinfo
index 9c13c2354242..99caac93b404 100644
--- a/sysutils/asapm/distinfo
+++ b/sysutils/asapm/distinfo
@@ -1,2 +1,2 @@
-MD5 (asapm-3.0.tar.gz) = 417b2432d1989ed503d1117e4464bd22
-SIZE (asapm-3.0.tar.gz) = 61354
+MD5 (asapm-3.1.tar.gz) = fac44b1fd805d8f3c30d44c05f5ab9d3
+SIZE (asapm-3.1.tar.gz) = 63203
diff --git a/sysutils/asapm/files/patch-apm_read.c b/sysutils/asapm/files/patch-apm_read.c
index d89e2d64a0ee..46bd02a86bb7 100644
--- a/sysutils/asapm/files/patch-apm_read.c
+++ b/sysutils/asapm/files/patch-apm_read.c
@@ -1,16 +1,16 @@
---- apm_read.c.orig Tue May 17 06:49:13 2005
-+++ apm_read.c Sun May 29 20:38:24 2005
-@@ -301,6 +301,9 @@
+--- apm_read.c.orig Wed Jul 27 08:23:06 2005
++++ apm_read.c Wed Jul 27 23:15:33 2005
+@@ -413,6 +413,9 @@
unsigned int remaining_capacity = 0;
unsigned int present_rate = 0;
+ unsigned int percent;
+ unsigned int time_left;
+
- /* First check if there is an ACPI system */
- if ((fd = open("/proc/acpi/info", O_RDONLY)) == -1) {
- error_handle(1, "open_acpi_info_file");
-@@ -503,7 +506,7 @@
+ if ( ! acpi_available )
+ return -1;
+
+@@ -617,7 +620,7 @@
* Calculate the percentage and time to full charge
* or discharge based on the reported rate.
*/
@@ -19,7 +19,7 @@
last_full_capacity ?
(float)remaining_capacity / (float)last_full_capacity * 100
: 0;
-@@ -512,7 +515,6 @@
+@@ -626,7 +629,6 @@
++state.update;
}