summaryrefslogtreecommitdiff
path: root/mail/wmbiff
diff options
context:
space:
mode:
authortron <tron>2001-05-29 05:45:40 +0000
committertron <tron>2001-05-29 05:45:40 +0000
commitb345708978885674ecd9abe38896cdd42806f882 (patch)
tree94ed2b547ba25e0201a48d29cd85bd7547124f4b /mail/wmbiff
parentcf8c6e80152763ad0a7ef2a6ff10b5fc1c996ab9 (diff)
downloadpkgsrc-b345708978885674ecd9abe38896cdd42806f882.tar.gz
Import new "wmbiff" package:
xbuffy like "mail-checker" for WindowMaker This package was contributed by Mario Kemper in PR pkg/12990.
Diffstat (limited to 'mail/wmbiff')
-rw-r--r--mail/wmbiff/Makefile17
-rw-r--r--mail/wmbiff/distinfo6
-rw-r--r--mail/wmbiff/patches/patch-aa62
-rw-r--r--mail/wmbiff/patches/patch-ab27
-rw-r--r--mail/wmbiff/pkg/DESCR2
-rw-r--r--mail/wmbiff/pkg/PLIST6
6 files changed, 120 insertions, 0 deletions
diff --git a/mail/wmbiff/Makefile b/mail/wmbiff/Makefile
new file mode 100644
index 00000000000..382dcbf1117
--- /dev/null
+++ b/mail/wmbiff/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/05/29 05:45:40 tron Exp $
+
+DISTNAME= wmbiff-0.3.0
+CATEGORIES= mail x11
+MASTER_SITES= $(MASTER_SITE_SOURCEFORGE:=wmbiff/)
+
+MAINTAINER= magick@zhadum.de
+COMMENT= xbuffy like "mail-checker" for WindowMaker
+
+DEPENDS+= windowmaker-*:../../wm/windowmaker
+
+USE_X11= YES
+USE_GMAKE= YES
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/wmbiff
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/wmbiff/distinfo b/mail/wmbiff/distinfo
new file mode 100644
index 00000000000..2ff323e048a
--- /dev/null
+++ b/mail/wmbiff/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/05/29 05:45:40 tron Exp $
+
+SHA1 (wmbiff-0.3.0.tar.gz) = b00189b76f5a3dca4557641b6329aa0f91f256a9
+Size (wmbiff-0.3.0.tar.gz) = 25963 bytes
+SHA1 (patch-aa) = 18dc6fc2b502022922927517e447d468d58bcf25
+SHA1 (patch-ab) = 1111b6cd9daff00c8365d33cbbd6bc3709336b72
diff --git a/mail/wmbiff/patches/patch-aa b/mail/wmbiff/patches/patch-aa
new file mode 100644
index 00000000000..703ec26dbd5
--- /dev/null
+++ b/mail/wmbiff/patches/patch-aa
@@ -0,0 +1,62 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/05/29 05:45:40 tron Exp $
+
+--- Makefile.orig Wed May 16 12:13:25 2001
++++ Makefile Tue May 29 07:33:03 2001
+@@ -1,12 +1,14 @@
+ WMBIFF_VERSION="0.3.0"
+ DESTDIR=
+-prefix=/usr/local
++prefix=${PREFIX}
+ bindir=${prefix}/bin
+-mandir=${prefix}/share/man
++mandir=${prefix}/man
++datadir=${prefix}/share/examples/wmbiff
++
+ CONF=/etc
+ LIBDIR = -L/usr/X11R6/lib
+ LIBS = -lXpm -lXext -lX11
+-CFLAGS = -O2 -Wall
++CFLAGS += -Wall -I${PREFIX}/include -I${X11BASE}/include
+ #CFLAGS = -g -Wall -pedantic
+
+ EXTRAFLAGS = -DWMBIFF_VERSION='$(WMBIFF_VERSION)'
+@@ -21,12 +23,6 @@
+ ../wmgeneral/list.o \
+ charutil.o
+
+-INSTALL = /usr/bin/install
+-INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755
+-INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
+-INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644
+-
+-
+ .c.o:
+ gcc $(CFLAGS) $(EXTRAFLAGS) -c $< -o $*.o
+
+@@ -36,7 +32,7 @@
+ ln -s wmbiff-master-led.xpm wmbiff-master.xpm
+
+ wmbiff: $(OBJS)
+- gcc $(CFLAGS) $(EXTRAFLAGS) -o wmbiff -lX11 -lnsl $^ $(LIBDIR) $(LIBS)
++ gcc $(CFLAGS) $(EXTRAFLAGS) -o wmbiff -lX11 $^ ${LDFLAGS} $(LIBDIR) $(LIBS)
+
+ clean:
+ for i in $(OBJS) ; do \
+@@ -45,12 +41,11 @@
+ rm -f wmbiff *~ tags core wmbiff-master.xpm
+
+ install: wmbiff
+- $(INSTALL_DIR) $(DESTDIR)$(bindir)
+- $(INSTALL_DIR) $(DESTDIR)$(mandir)/man1
+- $(INSTALL_DIR) $(DESTDIR)$(mandir)/man5
+- $(INSTALL_PROGRAM) wmbiff $(DESTDIR)$(bindir)
+- $(INSTALL_FILE) wmbiff.1 $(DESTDIR)$(mandir)/man1
+- $(INSTALL_FILE) wmbiffrc.5 $(DESTDIR)$(mandir)/man5
++ ${BSD_INSTALL_PROGRAM} wmbiff $(DESTDIR)$(bindir)
++ ${BSD_INSTALL_MAN} wmbiff.1 $(DESTDIR)$(mandir)/man1
++ ${BSD_INSTALL_MAN} wmbiffrc.5 $(DESTDIR)$(mandir)/man5
++ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)/$(datadir)
++ ${BSD_INSTALL_DATA} sample.wmbiffrc $(DESTDIR)$(datadir)/
+
+ # CODING STYLE AND INDENTATION [2001-Mar-12]:
+ #
diff --git a/mail/wmbiff/patches/patch-ab b/mail/wmbiff/patches/patch-ab
new file mode 100644
index 00000000000..fb8a67a15c3
--- /dev/null
+++ b/mail/wmbiff/patches/patch-ab
@@ -0,0 +1,27 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/05/29 05:45:40 tron Exp $
+
+--- wmbiff.c.orig Wed May 16 12:14:08 2001
++++ wmbiff.c Tue May 29 07:35:38 2001
+@@ -17,6 +17,10 @@
+ #include <X11/Xlib.h>
+ #include <X11/xpm.h>
+
++#ifdef __NetBSD__
++#include <paths.h>
++#endif
++
+ #include "../wmgeneral/wmgeneral.h"
+ #include "../wmgeneral/misc.h"
+
+@@ -76,7 +80,11 @@
+ if ((m = getenv("MAIL")) != NULL) {
+ strcpy(mbox[0].path, m);
+ } else if ((m = getenv("USER")) != NULL) {
++#ifdef _PATH_MAILDIR
++ strcpy(mbox[0].path, _PATH_MAILDIR "/");
++#else
+ strcpy(mbox[0].path, "/var/spool/mail/");
++#endif
+ strcat(mbox[0].path, m);
+ }
+
diff --git a/mail/wmbiff/pkg/DESCR b/mail/wmbiff/pkg/DESCR
new file mode 100644
index 00000000000..af969d194d2
--- /dev/null
+++ b/mail/wmbiff/pkg/DESCR
@@ -0,0 +1,2 @@
+wmBiff is a WindowMaker docking utility, that displays the number of
+total messages or unread mail messages in differrent mailboxes.
diff --git a/mail/wmbiff/pkg/PLIST b/mail/wmbiff/pkg/PLIST
new file mode 100644
index 00000000000..87fe3b37194
--- /dev/null
+++ b/mail/wmbiff/pkg/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/05/29 05:45:40 tron Exp $
+bin/wmbiff
+man/man1/wmbiff.1
+man/man5/wmbiffrc.5
+share/examples/wmbiff/sample.wmbiffrc
+@dirrm share/examples/wmbiff