Import xbattbar-1.4.2.

xbattbar is a battery monitor that displays a status bar on any edge
of the screen using apm(4).

From MAINTAINER Brynet; ok landry@.
This commit is contained in:
schwarze 2011-05-22 12:32:41 +00:00
parent 30ca46e876
commit 30c4021e2f
6 changed files with 73 additions and 0 deletions

View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/05/22 12:32:41 schwarze Exp $
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
HOMEPAGE = http://iplab.naist.jp/member/suguru/xbattbar.html
MASTER_SITES = http://iplab.naist.jp/member/suguru/
MAINTAINER = Brynet <brynet@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
CONFIGURE_STYLE = imake noman
NO_REGRESS = Yes
post-install:
${INSTALL_MAN} ${WRKSRC}/xbattbar.man ${PREFIX}/man/man1/xbattbar.1
.include <bsd.port.mk>

View File

@ -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

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-Imakefile,v 1.1.1.1 2011/05/22 12:32:41 schwarze Exp $
--- Imakefile.orig Fri Feb 2 00:25:28 2001
+++ Imakefile Wed May 18 15:00:23 2011
@@ -17,13 +17,10 @@ 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
OBJS = xbattbar.o
TARGET = xbattbar
-ComplexProgramTarget($(TARGET))
+ComplexProgramTargetNoMan($(TARGET))

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-xbattbar_c,v 1.1.1.1 2011/05/22 12:32:41 schwarze Exp $
--- 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>

View File

@ -0,0 +1,2 @@
xbattbar is a battery monitor that displays a status bar on any edge
of the screen using apm(4).

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/05/22 12:32:41 schwarze Exp $
@bin bin/xbattbar
@man man/man1/xbattbar.1