ports/108322: [UPDATE] sysutils/xfce4-battery-plugin
Martin Wilke
miwi at FreeBSD.org
Wed Jan 24 22:20:31 UTC 2007
>Number: 108322
>Category: ports
>Synopsis: [UPDATE] sysutils/xfce4-battery-plugin
>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: Wed Jan 24 22:20:30 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Martin Wilke
>Release: FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD miwi.homeunix.org 7.0-CURRENT FreeBSD 7.0-CURRENT #201: Tue Jan 23 23:29:34 CET 2007
>Description:
- Fix Display the correct battery level
Found in xfce bugzilla:
http://bugzilla.xfce.org/show_bug.cgi?id=2814
Added file(s):
- files/patch-battery.c
Port maintainer (thorsten.greiner at web.de) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- xfce4-battery-plugin-0.5.0_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/sysutils/xfce4-battery-plugin/Makefile,v
retrieving revision 1.19
diff -u -u -r1.19 Makefile
--- Makefile 22 Jan 2007 16:45:07 -0000 1.19
+++ Makefile 24 Jan 2007 22:18:56 -0000
@@ -7,6 +7,7 @@
PORTNAME= xfce4-battery-plugin
PORTVERSION= 0.5.0
+PORTREVISION= 1
CATEGORIES= sysutils xfce
MASTER_SITES= http://goodies.xfce.org/releases/${PORTNAME}/
DIST_SUBDIR= xfce4
Index: files/patch-battery.c
===================================================================
RCS file: files/patch-battery.c
diff -N files/patch-battery.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-battery.c 24 Jan 2007 21:52:15 -0000
@@ -0,0 +1,31 @@
+--- panel-plugin/battery.c.orig Wed Jan 24 20:42:09 2007
++++ panel-plugin/battery.c Wed Jan 24 20:46:51 2007
+@@ -378,6 +378,7 @@
+ rate = last_rate;
+ }
+
++#ifdef __linux__
+ charge = (((float)ccapacity)/((float)lcapacity))*100;
+
+ if ( last_acline )
+@@ -389,6 +390,20 @@
+ time_remaining = 0;
+
+ last_acline = acline;
++
++#elif __FreeBSD__
++ charge = acpistate->percentage;
++
++ if ( last_acline )
++ time_remaining = acpistate->rtime;
++ else
++ time_remaining = acpistate->rtime;
++
++ if ( time_remaining < 0 )
++ time_remaining = 0;
++
++ last_acline = acline;
++#endif
+
+ }
+ #ifdef __linux__
--- xfce4-battery-plugin-0.5.0_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list