diff --git a/sysutils/xstatbar/Makefile b/sysutils/xstatbar/Makefile new file mode 100644 index 00000000000..98bb86b754c --- /dev/null +++ b/sysutils/xstatbar/Makefile @@ -0,0 +1,33 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2010/01/09 13:55:15 ajacoutot Exp $ + +COMMENT= simple system monitor bar + +DISTNAME= xstatbar-0.3 + +CATEGORIES= sysutils x11 + +HOMEPAGE= http://www.ryanflannery.net/hacking/xstatbar/ + +MAINTAINER= Antoine Jacoutot + +# ISC +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +WANTLIB += X11 Xau Xdmcp Xext Xrender c m + +MASTER_SITES= ${HOMEPAGE}files/ +EXTRACT_SUFX= .tgz + +WRKDIST= ${WRKDIR}/xstatbar + +ALL_TARGET= # empty + +NO_REGRESS= Yes + +pre-configure: + ${SUBST_CMD} ${WRKSRC}/Makefile + +.include diff --git a/sysutils/xstatbar/distinfo b/sysutils/xstatbar/distinfo new file mode 100644 index 00000000000..27b0233c6b2 --- /dev/null +++ b/sysutils/xstatbar/distinfo @@ -0,0 +1,5 @@ +MD5 (xstatbar-0.3.tgz) = PouIggV/ACWpoDys4+J91A== +RMD160 (xstatbar-0.3.tgz) = oOQPAysQNC6tCeQbC37DAwF2nJs= +SHA1 (xstatbar-0.3.tgz) = NxV+TtxNzXfAaAmO3/K6QfNC66M= +SHA256 (xstatbar-0.3.tgz) = F0qDJ7uWV4VvS8QC0T+x6JVkgkrFJ0RFis5gGLkQwfM= +SIZE (xstatbar-0.3.tgz) = 10301 diff --git a/sysutils/xstatbar/patches/patch-Makefile b/sysutils/xstatbar/patches/patch-Makefile new file mode 100644 index 00000000000..c6e51b92148 --- /dev/null +++ b/sysutils/xstatbar/patches/patch-Makefile @@ -0,0 +1,33 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2010/01/09 13:55:15 ajacoutot Exp $ +--- Makefile.orig Wed Jan 6 22:59:09 2010 ++++ Makefile Sat Jan 9 14:46:16 2010 +@@ -1,13 +1,13 @@ + + + # where to install stuff +-BINDIR=/usr/local/bin +-MANDIR=/usr/local/man/man1 ++BINDIR=${PREFIX}/bin ++MANDIR=${PREFIX}/man/man1 + + # build flags +-CC=/usr/bin/cc +-CFLAGS=-c -Wall -O2 -I/usr/X11R6/include +-LDFLAGS=-L/usr/X11R6/lib -lX11 -lXext -lXrender -lXau -lXdmcp -lm ++CC?=/usr/bin/cc ++CFLAGS+=-c -Wall -I${X11BASE}/include ++LDFLAGS+=-L${X11BASE}/lib -lX11 -lXext -lXrender -lXau -lXdmcp -lm + + OBJS=xstatbar.o stats.o + +@@ -19,8 +19,8 @@ xstatbar: $(OBJS) + + ### install xstatbar + install: xstatbar +- /usr/bin/install -c -m 0555 xstatbar $(BINDIR) +- /usr/bin/install -c -m 0444 xstatbar.1 $(MANDIR) ++ /usr/bin/install -c -m 0555 xstatbar $(DESTDIR)$(BINDIR) ++ /usr/bin/install -c -m 0444 xstatbar.1 $(DESTDIR)$(MANDIR) + + ### uninstall xstatbar + uninstall: diff --git a/sysutils/xstatbar/pkg/DESCR b/sysutils/xstatbar/pkg/DESCR new file mode 100755 index 00000000000..16b85f0137d --- /dev/null +++ b/sysutils/xstatbar/pkg/DESCR @@ -0,0 +1,4 @@ +xstatbar is a simple system monitor that shows various stats in an X +window that's immovable and not part of your tab-order. It was built to +go with tiling window managers like scrotwm and xmonad where you can +configure a small region of the screen as "off-limits" for windows. diff --git a/sysutils/xstatbar/pkg/PLIST b/sysutils/xstatbar/pkg/PLIST new file mode 100644 index 00000000000..7a3d8d59fc4 --- /dev/null +++ b/sysutils/xstatbar/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2010/01/09 13:55:15 ajacoutot Exp $ +@bin bin/xstatbar +@man man/man1/xstatbar.1