Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Sep 1999 17:46:23 -0400 (EDT)
From:      Will Andrews <andrews@technologist.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/13809: new port: sysutils/wmbattery
Message-ID:  <199909182146.RAA57981@shadow.blackdawn.com>

next in thread | raw e-mail | index | archive | help

>Number:         13809
>Category:       ports
>Synopsis:       new port: sysutils/wmbattery
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 18 14:50:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Will Andrews
>Release:        FreeBSD 3.3-RC i386
>Organization:
none
>Environment:

FreeBSD shadow.blackdawn.com 3.3-RC FreeBSD 3.3-RC #0: Sun Sep  5 16:53:04 EDT 1999     root@shadow.blackdawn.com:/usr/src/sys/compile/SHADOW  i386

>Description:

This is a reincarnation of wmapm, with added functionality and a
cleaner interface.

Please note that while I have not tested this version on my laptop,
I tested an older version (1.1) with similar code, and it worked
perfectly. I am 100% certain this version will work under Window Maker
as well.

Feel free to test it out on a laptop, however, if you doubt that
my proofreading of the code is accurate.

>How-To-Repeat:

Use the shar included to import the wmbattery port.

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	wmbattery
#	wmbattery/pkg
#	wmbattery/pkg/PLIST
#	wmbattery/pkg/DESCR
#	wmbattery/pkg/COMMENT
#	wmbattery/files
#	wmbattery/files/md5
#	wmbattery/patches
#	wmbattery/patches/patch-aa
#	wmbattery/Makefile
#
echo c - wmbattery
mkdir -p wmbattery > /dev/null 2>&1
echo c - wmbattery/pkg
mkdir -p wmbattery/pkg > /dev/null 2>&1
echo x - wmbattery/pkg/PLIST
sed 's/^X//' >wmbattery/pkg/PLIST << 'END-of-wmbattery/pkg/PLIST'
Xshare/wmbattery/icons/face.xpm
Xshare/wmbattery/icons/battery_high.xpm
Xshare/wmbattery/icons/battery_low.xpm
Xshare/wmbattery/icons/battery_medium.xpm
Xshare/wmbattery/icons/battery_none.xpm
Xshare/wmbattery/icons/charging.xpm
Xshare/wmbattery/icons/dial_bright.xpm
Xshare/wmbattery/icons/dial_dim.xpm
Xshare/wmbattery/icons/nocharging.xpm
Xshare/wmbattery/icons/smallfont.xpm
Xshare/wmbattery/icons/unplugged.xpm
Xshare/wmbattery/icons/plugged.xpm
Xshare/wmbattery/icons/bigfont.xpm
Xshare/wmbattery/COPYING
Xshare/wmbattery/INSTALL
Xshare/wmbattery/README
Xshare/wmbattery/TODO
X@dirrm share/wmbattery/icons
X@dirrm share/wmbattery
Xbin/wmbattery
END-of-wmbattery/pkg/PLIST
echo x - wmbattery/pkg/DESCR
sed 's/^X//' >wmbattery/pkg/DESCR << 'END-of-wmbattery/pkg/DESCR'
Xwmbattery is a redone wmapm, it has some features that people may find
Xpleasing over wmapm:
X
X[quoted from wmbattery website:]
X o  Improved icon layout. I crammed the same information into less space while 
X    making the icon more elegant and visually pleasing (IMHO).
X p  Easier to drag onto dock. 
X o  Displays 100% when your battery is full (wmapm is limited to 99% maximum). 
X o  It consumes a little less memory. 
X o  Uses only 8 colors. 
X o  You can run in on a different display via -d (broken in wmapm).
X
XWWW: http://kitenet.net/programs/wmbattery/
XAuthor: Joey Hess <joey@kitenet.net>
X
X- Will <andrews@technologist.com>
END-of-wmbattery/pkg/DESCR
echo x - wmbattery/pkg/COMMENT
sed 's/^X//' >wmbattery/pkg/COMMENT << 'END-of-wmbattery/pkg/COMMENT'
XWindowMaker dockapp that displays info about your battery.
END-of-wmbattery/pkg/COMMENT
echo c - wmbattery/files
mkdir -p wmbattery/files > /dev/null 2>&1
echo x - wmbattery/files/md5
sed 's/^X//' >wmbattery/files/md5 << 'END-of-wmbattery/files/md5'
XMD5 (wmbattery.tar.gz) = e42cb129ac91d985e39744cd0a39db42
END-of-wmbattery/files/md5
echo c - wmbattery/patches
mkdir -p wmbattery/patches > /dev/null 2>&1
echo x - wmbattery/patches/patch-aa
sed 's/^X//' >wmbattery/patches/patch-aa << 'END-of-wmbattery/patches/patch-aa'
X--- Makefile	Sun Sep  5 13:54:35 1999
X+++ Makefile.new	Sat Sep 18 17:23:26 1999
X@@ -1,8 +1,9 @@
X-ICONDIR = /usr/X11R6/share/wmbattery
X-BINDIR  = /usr/X11R6/bin
X-MANDIR  = /usr/X11R6/man/man1
X-INCDIR  = -I/usr/X11R6/include
X-LIBDIR  = -L/usr/X11R6/lib
X+PREFIX	= /usr/X11R6
X+ICONDIR = $(PREFIX)/share/wmbattery/icons
X+BINDIR  = $(PREFIX)/bin
X+MANDIR  = $(PREFIX)/man/man1
X+INCDIR  = -I$(PREFIX)/include
X+LIBDIR  = -L$(PREFIX)/lib
X LIBS    = -lXpm -lXext
X CFLAGS  = $(INCDIR) -g -DICONDIR=\"$(ICONDIR)\" -O2 -Wall
X 
X@@ -13,10 +14,10 @@
X 	rm -f wmbattery
X 
X install: wmbattery
X-	install -c -d $(PREFIX)$(ICONDIR) $(PREFIX)$(BINDIR) $(PREFIX)$(MANDIR)
X-	install -c -s wmbattery $(PREFIX)$(BINDIR)
X-	install -c -m 644 wmbattery.1x $(PREFIX)$(MANDIR)/wmbattery.1
X-	install -c -m 644 *.xpm $(PREFIX)$(ICONDIR)
X+	install -c -d $(ICONDIR) $(BINDIR) $(MANDIR)
X+	$(INSTALL_PROGRAM) wmbattery $(BINDIR)
X+	$(INSTALL_MAN) wmbattery.1x $(MANDIR)/wmbattery.1
X+	$(INSTALL_DATA) *.xpm $(ICONDIR)
X 
X test: wmbattery
X 	./wmbattery
END-of-wmbattery/patches/patch-aa
echo x - wmbattery/Makefile
sed 's/^X//' >wmbattery/Makefile << 'END-of-wmbattery/Makefile'
X# New ports collection makefile for:	wmbattery
X# Version required:	1.9
X# Date created:		18 Sep 1999
X# Whom:			Will Andrews <andrews@technologist.com>
X#
X# $Id$
X#
X
XDISTNAME=	wmbattery
XPKGNAME=	${DISTNAME}-1.9
XCATEGORIES=	sysutils
XMASTER_SITES=	http://kitenet.net/programs/code/wmbattery/
X
XMAINTAINER=	andrews@technologist.com
X
XLIB_DEPENDS=	Xpm.4:${PORTSDIR}/graphics/xpm
X
XUSE_X_PREFIX=	yes
X
XUSE_GMAKE=	YES
XMAKE_ENV=	PREFIX="${PREFIX}" INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
X		INSTALL_DATA="${INSTALL_DATA}" INSTALL_MAN="${INSTALL_MAN}"
XALL_TARGET=	wmbattery
XMAN1=		wmbattery.1
X
X# install additional docs
X.if !defined(NOPORTDOCS)
Xpost-install:
X.for i in COPYING INSTALL README TODO
X	@${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/wmbattery
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-wmbattery/Makefile
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909182146.RAA57981>