From tkato432@yahoo.com  Sun Jul 31 18:02:07 2005
Return-Path: <tkato432@yahoo.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 096A916A41F
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sun, 31 Jul 2005 18:02:07 +0000 (GMT)
	(envelope-from tkato432@yahoo.com)
Received: from hfep03.dion.ne.jp (hfep03.dion.ne.jp [203.181.105.69])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 70B9A43D49
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sun, 31 Jul 2005 18:02:06 +0000 (GMT)
	(envelope-from tkato432@yahoo.com)
Received: from localhost ([61.204.125.236]) by hfep03.dion.ne.jp with SMTP
          id <20050731180203476.CKZZ@hfep03.dion.ne.jp>
          for <FreeBSD-gnats-submit@FreeBSD.org>;
          Mon, 1 Aug 2005 03:02:03 +0900
Message-Id: <20050801030032.2fb47781.tkato432@yahoo.com>
Date: Mon, 1 Aug 2005 03:00:32 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: Update port: sysutils/asapm to 3.1

>Number:         84407
>Category:       ports
>Synopsis:       Update port: sysutils/asapm to 3.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 31 18:10:18 GMT 2005
>Closed-Date:    Mon Aug 01 13:37:45 GMT 2005
>Last-Modified:  Mon Aug  1 18:50:19 GMT 2005
>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:
State-Changed-From-To: open->feedback 
State-Changed-By: sem 
State-Changed-When: Mon Aug 1 12:53:01 GMT 2005 
State-Changed-Why:  
Wait for a feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84407 
State-Changed-From-To: feedback->closed 
State-Changed-By: sem 
State-Changed-When: Mon Aug 1 13:37:36 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84407 

From: Parv <parv@pair.com>
To: KATO Tsuguru <tkato432@yahoo.com>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/84407: Update port: sysutils/asapm to 3.1
Date: Mon, 1 Aug 2005 01:04:22 -0400

 in message <20050801030032.2fb47781.tkato432@yahoo.com>,
 wrote KATO Tsuguru thusly...
 >
 > >Number:         84407
 > >Category:       ports
 > >Synopsis:       Update port: sysutils/asapm to 3.1
 
 Thanks for the update.
 
   - Parv
 
 -- 
 
>Unformatted:
