summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysutils/xbatt/Makefile3
-rw-r--r--sysutils/xbatt/distinfo4
-rw-r--r--sysutils/xbatt/patches/patch-ab14
3 files changed, 15 insertions, 6 deletions
diff --git a/sysutils/xbatt/Makefile b/sysutils/xbatt/Makefile
index feebd567656..4ea42dea91f 100644
--- a/sysutils/xbatt/Makefile
+++ b/sysutils/xbatt/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.7 2001/02/17 17:42:21 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2001/11/26 20:02:35 wiz Exp $
#
DISTNAME= xbatt-1.3pr1
+PKGNAME= xbatt-1.3.1nb1
WRKSRC= ${WRKDIR}/xbatt-1.3
CATEGORIES= sysutils x11
MASTER_SITES= http://www2.clave.gr.jp/~eto/xbatt/
diff --git a/sysutils/xbatt/distinfo b/sysutils/xbatt/distinfo
index 3d539ee3fc8..2912046f770 100644
--- a/sysutils/xbatt/distinfo
+++ b/sysutils/xbatt/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2001/04/19 11:29:11 agc Exp $
+$NetBSD: distinfo,v 1.3 2001/11/26 20:02:35 wiz Exp $
SHA1 (xbatt-1.3pr1.tar.gz) = dc6a8624c134d9e4262ea87640d3eda028973bcf
Size (xbatt-1.3pr1.tar.gz) = 14412 bytes
SHA1 (patch-aa) = b822b75668a3494a72b496d820b67720b732add4
-SHA1 (patch-ab) = 216fe440e6600c8de38171cc478ea029feb2ae19
+SHA1 (patch-ab) = 3f643fa06ce7e0bb2eeb9c3339a1640b94f13001
diff --git a/sysutils/xbatt/patches/patch-ab b/sysutils/xbatt/patches/patch-ab
index 650702df5ce..e20831e5729 100644
--- a/sysutils/xbatt/patches/patch-ab
+++ b/sysutils/xbatt/patches/patch-ab
@@ -1,7 +1,7 @@
-$NetBSD: patch-ab,v 1.1 1999/12/10 09:13:59 itohy Exp $
+$NetBSD: patch-ab,v 1.2 2001/11/26 20:02:36 wiz Exp $
---- xbatt.c.orig Fri Sep 18 21:03:05 1998
-+++ xbatt.c Fri Dec 10 07:48:25 1999
+--- xbatt.c.orig Fri Sep 18 14:03:05 1998
++++ xbatt.c
@@ -219,6 +219,7 @@
String fallback_resouces[] = {
"*width: 39",
@@ -10,3 +10,11 @@ $NetBSD: patch-ab,v 1.1 1999/12/10 09:13:59 itohy Exp $
};
main(
+@@ -494,6 +495,7 @@
+
+ #ifdef __NetBSD__
+ struct apm_power_info info;
++ memset(&info, 0, sizeof(info));
+ if( ioctl(apmfd, APM_IOC_GETPOWER, &info) == -1 ) {
+ fprintf(stderr, "xbatt: ioctl APM_IOC_GETPOWER failed\n");
+ exit(1);