From 31f21910686f07acfeff839d41209a9746033d60 Mon Sep 17 00:00:00 2001 From: wiz Date: Mon, 26 Nov 2001 20:07:34 +0000 Subject: Add 'new' NetBSD-apm support, based on patch from Love in pkg/14554. Bump version to 1.4.2nb1. --- sysutils/xbattbar/Makefile | 4 ++-- sysutils/xbattbar/distinfo | 3 ++- sysutils/xbattbar/patches/patch-ab | 12 ++++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 sysutils/xbattbar/patches/patch-ab (limited to 'sysutils/xbattbar') diff --git a/sysutils/xbattbar/Makefile b/sysutils/xbattbar/Makefile index f584f621493..5747325db80 100644 --- a/sysutils/xbattbar/Makefile +++ b/sysutils/xbattbar/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.8 2001/08/22 17:38:59 jlam Exp $ +# $NetBSD: Makefile,v 1.9 2001/11/26 20:07:34 wiz Exp $ DISTNAME= ${PKGNAME:S/-/_/} -PKGNAME= xbattbar-1.4.2 +PKGNAME= xbattbar-1.4.2nb1 WRKSRC= ${WRKDIR}/${PKGNAME} CATEGORIES= sysutils x11 MASTER_SITES= http://infonet.aist-nara.ac.jp/member/suguru/ diff --git a/sysutils/xbattbar/distinfo b/sysutils/xbattbar/distinfo index 9624c6040ed..6f5e9b2942b 100644 --- a/sysutils/xbattbar/distinfo +++ b/sysutils/xbattbar/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.3 2001/06/18 10:57:03 jlam Exp $ +$NetBSD: distinfo,v 1.4 2001/11/26 20:07:34 wiz Exp $ SHA1 (xbattbar_1.4.2.tar.gz) = 14e9aafd62919e4a625d3f84df3b074b9eef8279 Size (xbattbar_1.4.2.tar.gz) = 14079 bytes SHA1 (patch-aa) = 3bd4b688ccaeebe766335245c1a8c5dde52768c2 +SHA1 (patch-ab) = 1552e04203d2ad229c603f05d6a69766de5353cf diff --git a/sysutils/xbattbar/patches/patch-ab b/sysutils/xbattbar/patches/patch-ab new file mode 100644 index 00000000000..2937fb2d890 --- /dev/null +++ b/sysutils/xbattbar/patches/patch-ab @@ -0,0 +1,12 @@ +$NetBSD: patch-ab,v 1.1 2001/11/26 20:07:35 wiz Exp $ + +--- xbattbar.c.orig Fri Feb 2 06:25:29 2001 ++++ xbattbar.c +@@ -594,6 +594,7 @@ + exit(1); + } + ++ memset(&info, 0, sizeof(info)); + if (ioctl(fd, APM_IOC_GETPOWER, &info) != 0) { + fprintf(stderr, "xbattbar: ioctl APM_IOC_GETPOWER failed\n"); + exit(1); -- cgit v1.2.3