Here is my port of xbattbar, pretty old, but visually nicer than xbatt. "xbattbar is a battery monitor that displays a status bar on any corner of the screen using apm(4)."
That's my shot at a DESCR.. comments? =\ -Bryan. diff -Nru /dev/null sysutils/xbattbar/Makefile --- /dev/null Thu Jan 1 00:00:00 1970 +++ sysutils/xbattbar/Makefile Tue May 17 17:16:40 2011 @@ -0,0 +1,29 @@ +# $OpenBSD$ + +ONLY_FOR_ARCHS = ${APM_ARCHS} + +COMMENT = show battery status as a simple bar in X11 + +DISTNAME = xbattbar_1.4.2 +PKGNAME = ${DISTNAME:S/_/-/} +WRKDIST = ${WRKDIR}/${PKGNAME} +CATEGORIES = sysutils x11 + +MASTER_SITES = http://iplab.naist.jp/member/suguru/ + +MAINTAINER = Brynet <bry...@gmail.com> + +# GPLv2+ +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM = Yes +PERMIT_DISTFILES_FTP = Yes + +WANTLIB = X11 Xau Xdmcp Xext c pthread-stubs xcb + +USE_GROFF = Yes +CONFIGURE_STYLE = imake + +NO_REGRESS = Yes + +.include <bsd.port.mk> diff -Nru /dev/null sysutils/xbattbar/distinfo --- /dev/null Thu Jan 1 00:00:00 1970 +++ sysutils/xbattbar/distinfo Tue May 17 17:14:52 2011 @@ -0,0 +1,5 @@ +MD5 (xbattbar_1.4.2.tar.gz) = mMA+tO1A9uvEj7C9G+YeBw== +RMD160 (xbattbar_1.4.2.tar.gz) = 8oonOhhloJGeMhRLu1sWs8A0AGE= +SHA1 (xbattbar_1.4.2.tar.gz) = FOmq/WKRnkpiXT+E3zsHS57vgnk= +SHA256 (xbattbar_1.4.2.tar.gz) = VaXtYJKCOY9V4BQeRz+fBDANGtMHCBDHxpMPbEWXC0o= +SIZE (xbattbar_1.4.2.tar.gz) = 14079 diff -Nru /dev/null sysutils/xbattbar/patches/patch-Imakefile --- /dev/null Thu Jan 1 00:00:00 1970 +++ sysutils/xbattbar/patches/patch-Imakefile Tue May 17 17:14:52 2011 @@ -0,0 +1,13 @@ +$OpenBSD$ +--- Imakefile.orig Tue May 17 12:36:40 2011 ++++ Imakefile Tue May 17 12:38:10 2011 +@@ -17,9 +17,6 @@ XCOMM License along with this program; if not, write t + XCOMM Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + XCOMM + +-BINDIR = /usr/local/bin +-MANDIR = /usr/local/man/cat1 +- + LOCAL_LIBRARIES = $(XLIB) + + SRCS = xbattbar.c diff -Nru /dev/null sysutils/xbattbar/patches/patch-xbattbar_c --- /dev/null Thu Jan 1 00:00:00 1970 +++ sysutils/xbattbar/patches/patch-xbattbar_c Tue May 17 17:14:52 2011 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- xbattbar.c.orig Tue May 17 12:29:19 2011 ++++ xbattbar.c Tue May 17 12:32:20 2011 +@@ -575,7 +575,7 @@ void battery_check(void) + + #endif /* __FreeBSD__ */ + +-#ifdef __NetBSD__ ++#if defined(__NetBSD__) || defined(__OpenBSD__) + + #include <machine/apmvar.h> + diff -Nru /dev/null sysutils/xbattbar/pkg/DESCR --- /dev/null Thu Jan 1 00:00:00 1970 +++ sysutils/xbattbar/pkg/DESCR Tue May 17 17:14:52 2011 @@ -0,0 +1,2 @@ +xbattbar is a battery monitor that displays a status bar on any corner +of the screen using apm(4). diff -Nru /dev/null sysutils/xbattbar/pkg/PLIST --- /dev/null Thu Jan 1 00:00:00 1970 +++ sysutils/xbattbar/pkg/PLIST Tue May 17 17:14:52 2011 @@ -0,0 +1,3 @@ +@comment $OpenBSD$ +@bin bin/xbattbar +@man man/cat1/xbattbar.0