Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

4
sysutils/xbatt/DESCR Normal file
View File

@@ -0,0 +1,4 @@
xbatt is an X11 client which displays the battery status of your
notebook computer equipped with APM (Advanced Power Management)
BIOS. The status displayed consists of the remaining battery life,
the AC line status, and the charging status.

33
sysutils/xbatt/Makefile Normal file
View File

@@ -0,0 +1,33 @@
# $NetBSD: Makefile,v 1.28 2013/04/06 04:07:25 rodent Exp $
#
DISTNAME= xbatt-1.3pr1
PKGNAME= xbatt-1.3.1
PKGREVISION= 4
CATEGORIES= sysutils x11
MASTER_SITES= http://www.clave.gr.jp/~eto/xbatt/
MAINTAINER= hubertf@NetBSD.org
HOMEPAGE= http://www.clave.gr.jp/~eto/xbatt/ # Not really
COMMENT= Displays battery status of your notebook via APM
PKG_DESTDIR_SUPPORT= destdir
.if !exists(/usr/include/machine/apmvar.h)
PKG_FAIL_REASON+= "APM is not available for ${MACHINE_PLATFORM}"
.endif
WRKSRC= ${WRKDIR}/xbatt-1.3
USE_IMAKE= YES
BUILD_TARGET= xbatt
INSTALLATION_DIRS= lib/X11/app-defaults share/doc/xbatt
post-install:
${INSTALL_DATA} ${FILESDIR}/XBatt ${DESTDIR}${PREFIX}/lib/X11/app-defaults/XBatt
${INSTALL_MAN} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/xbatt
${INSTALL_MAN} ${WRKSRC}/README.jp ${DESTDIR}${PREFIX}/share/doc/xbatt
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXaw/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

5
sysutils/xbatt/PLIST Normal file
View File

@@ -0,0 +1,5 @@
@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:54:14 zuntum Exp $
bin/xbatt
lib/X11/app-defaults/XBatt
share/doc/xbatt/README
share/doc/xbatt/README.jp

7
sysutils/xbatt/distinfo Normal file
View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.5 2008/03/06 17:24:23 hubertf Exp $
SHA1 (xbatt-1.3pr1.tar.gz) = dc6a8624c134d9e4262ea87640d3eda028973bcf
RMD160 (xbatt-1.3pr1.tar.gz) = 1757aeee7cb25f3500a2bde62939e0ac6a714752
Size (xbatt-1.3pr1.tar.gz) = 14412 bytes
SHA1 (patch-aa) = b822b75668a3494a72b496d820b67720b732add4
SHA1 (patch-ab) = b34c33af521ad384b383fd7e8fb94a1f0be5b547

View File

@@ -0,0 +1,4 @@
# $NetBSD: XBatt,v 1.1.1.1 1999/10/31 21:16:08 hubertf Exp $
#
*width: 50
*height: 50

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-aa,v 1.2 2000/12/15 09:43:54 abs Exp $
--- Imakefile.orig Fri Sep 11 13:50:44 1998
+++ Imakefile
@@ -9,8 +9,11 @@
#ifdef FreeBSDArchitecture
INSTALLFLAGS=-c -g operator -m 2755
#endif
+#ifdef NetBSDArchitecture
+INSTALLFLAGS=-c -m 755
+#endif
#ifdef LinuxArchitecture
INSTALLFLAGS=-c -m 2755
#endif
-ComplexProgramTarget(xbatt)
+ComplexProgramTargetNoMan(xbatt)

View File

@@ -0,0 +1,29 @@
$NetBSD: patch-ab,v 1.3 2008/03/06 17:24:23 hubertf Exp $
--- xbatt.c.orig 1998-09-18 14:03:05.000000000 +0200
+++ xbatt.c
@@ -219,6 +219,7 @@ struct Digits digits[] = {
String fallback_resouces[] = {
"*width: 39",
"*height: 39",
+ NULL
};
main(
@@ -494,6 +495,7 @@ struct status getBatteryStatus()
#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);
@@ -686,7 +688,7 @@ void updateWindow(struct status s)
5, 5, 11, 7);
}
- if (s.remain == 100) {
+ if (s.remain >= 100) {
bm = XCreatePixmapFromBitmapData(XtDisplay(toplevel),
XtWindow(toplevel),
full_bits, full_width,