ports/84407: Update port: sysutils/asapm to 3.1
KATO Tsuguru
tkato432 at yahoo.com
Sun Jul 31 18:10:24 UTC 2005
>Number: 84407
>Category: ports
>Synopsis: Update port: sysutils/asapm to 3.1
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 31 18:10:18 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 4.11-RELEASE-p11 i386
>Organization:
>Environment:
>Description:
- Update to versoin 3.1
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/sysutils/asapm/Makefile sysutils/asapm/Makefile
--- /usr/ports/sysutils/asapm/Makefile Wed Jun 1 13:57:00 2005
+++ sysutils/asapm/Makefile Wed Jul 27 23:11:11 2005
@@ -6,7 +6,7 @@
#
PORTNAME= asapm
-PORTVERSION= 3.0
+PORTVERSION= 3.1
CATEGORIES= sysutils
MASTER_SITES= http://www.tigr.net/afterstep/download/asapm/
diff -urN /usr/ports/sysutils/asapm/distinfo sysutils/asapm/distinfo
--- /usr/ports/sysutils/asapm/distinfo Wed Jun 1 13:57:00 2005
+++ sysutils/asapm/distinfo Wed Jul 27 23:12:34 2005
@@ -1,2 +1,2 @@
-MD5 (asapm-3.0.tar.gz) = 417b2432d1989ed503d1117e4464bd22
-SIZE (asapm-3.0.tar.gz) = 61354
+MD5 (asapm-3.1.tar.gz) = 95141103fb2cf54e3477a5d39ed09106
+SIZE (asapm-3.1.tar.gz) = 63207
diff -urN /usr/ports/sysutils/asapm/files/patch-apm_read.c sysutils/asapm/files/patch-apm_read.c
--- /usr/ports/sysutils/asapm/files/patch-apm_read.c Wed Jun 1 02:37:12 2005
+++ sysutils/asapm/files/patch-apm_read.c Wed Jul 27 23:15:43 2005
@@ -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;
}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list