diff options
author | abs <abs@pkgsrc.org> | 2000-01-25 10:54:55 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2000-01-25 10:54:55 +0000 |
commit | 54084eb9c61dd5660afa8aaaea05a7f8241bb211 (patch) | |
tree | b8f3e966c78a7de0ffde9ecc0f072b49b81a2977 /net/wmpload | |
parent | 331a8020eb3130b4f71b7d722eabfa582a0e5f88 (diff) | |
download | pkgsrc-54084eb9c61dd5660afa8aaaea05a7f8241bb211.tar.gz |
Adding pkackage for wmpload-0.9.4
wmpload is a variation of pload, displaying ppp network device
usage in a 64x64 pixel square.
Wmpload was designed to be docked into the Window Maker dock but
can be used with any window manager.
Diffstat (limited to 'net/wmpload')
-rw-r--r-- | net/wmpload/Makefile | 16 | ||||
-rw-r--r-- | net/wmpload/files/md5 | 3 | ||||
-rw-r--r-- | net/wmpload/files/patch-sum | 4 | ||||
-rw-r--r-- | net/wmpload/patches/patch-aa | 36 | ||||
-rw-r--r-- | net/wmpload/patches/patch-ab | 33 | ||||
-rw-r--r-- | net/wmpload/pkg/COMMENT | 1 | ||||
-rw-r--r-- | net/wmpload/pkg/DESCR | 5 | ||||
-rw-r--r-- | net/wmpload/pkg/PLIST | 2 |
8 files changed, 100 insertions, 0 deletions
diff --git a/net/wmpload/Makefile b/net/wmpload/Makefile new file mode 100644 index 00000000000..a014ff0e35d --- /dev/null +++ b/net/wmpload/Makefile @@ -0,0 +1,16 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/01/25 10:54:55 abs Exp $ +# + +DISTNAME= wmpload-0.9.4 +CATEGORIES= net x11 +MASTER_SITES= http://www.engr.utk.edu/~mdsmith/pload/ + +MAINTAINER= abs@netbsd.org +HOMEPAGE= http://www.engr.utk.edu/~mdsmith/pload/ + +DEPENDS+= xpm-3.4k:../../graphics/xpm + +HAS_CONFIGURE= YES +USE_X11BASE= YES + +.include "../../mk/bsd.pkg.mk" diff --git a/net/wmpload/files/md5 b/net/wmpload/files/md5 new file mode 100644 index 00000000000..7854f49111c --- /dev/null +++ b/net/wmpload/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2000/01/25 10:54:55 abs Exp $ + +MD5 (wmpload-0.9.4.tar.gz) = c506c68d2d1689876fcfc3b662983a6c diff --git a/net/wmpload/files/patch-sum b/net/wmpload/files/patch-sum new file mode 100644 index 00000000000..15bf1ce8ae1 --- /dev/null +++ b/net/wmpload/files/patch-sum @@ -0,0 +1,4 @@ +$NetBSD: patch-sum,v 1.1.1.1 2000/01/25 10:54:55 abs Exp $ + +MD5 (patch-aa) = 1f36015184a62b3e244e477a35abf5cd +MD5 (patch-ab) = 1660f136fdce7ba5a6e84a6b2c708631 diff --git a/net/wmpload/patches/patch-aa b/net/wmpload/patches/patch-aa new file mode 100644 index 00000000000..e4ca31ddd0c --- /dev/null +++ b/net/wmpload/patches/patch-aa @@ -0,0 +1,36 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/01/25 10:54:55 abs Exp $ + +--- ioctl_stat.c Sat Dec 18 01:35:12 1999 ++++ /tmp/ioctl_stat.c Tue Jan 25 10:32:46 2000 +@@ -68,6 +68,9 @@ + + void ioctl_stat(if_data *ifd) + { ++#ifdef __NetBSD__ ++ struct ifreq ifr; ++#endif + struct ifpppstatsreq req; + + if (s < 0) getsocket(); +@@ -79,8 +82,20 @@ + req.stats_ptr = (caddr_t) &req.stats; + #endif + /* sprintf(req.ifr_name, ifd->device); */ +- strncpy(req.ifr_name, ifd->device, sizeof(req.ifr_name)); + ++#ifdef __NetBSD__ ++ snprintf(ifr.ifr_name, sizeof(req.ifr_name), ifd->device); ++ if (ioctl(s, SIOCGIFFLAGS, (caddr_t)&ifr) < 0 || ++ !(ifr.ifr_flags&IFF_UP)) ++ { ++ /* invalid interface, or interface down */ ++ ifd->in_bytes = 0UL; ++ ifd->out_bytes = 0UL; ++ return; ++ } ++#endif ++ ++ strncpy(req.ifr_name, ifd->device, sizeof(req.ifr_name)); + if (ioctl(s, SIOCGPPPSTATS, &req) != 0) + { + /* non-existant device? */ diff --git a/net/wmpload/patches/patch-ab b/net/wmpload/patches/patch-ab new file mode 100644 index 00000000000..6f338452738 --- /dev/null +++ b/net/wmpload/patches/patch-ab @@ -0,0 +1,33 @@ +$NetBSD: patch-ab,v 1.1.1.1 2000/01/25 10:54:55 abs Exp $ + +--- Imakefile Sat Dec 18 01:35:12 1999 ++++ Imakefile.orig Tue Jan 25 10:46:39 2000 +@@ -4,23 +4,22 @@ + XCOMM + + include osdefs.mk +- DEPLIBS = $(DEPXLIB) ++ DEPLIBS = $(DEPXLIB) + LOCAL_LIBRARIES = $(XPMLIB) $(XLIB) + SYS_LIBRARIES = MathLibrary + HEADERS = wmpload.h +- VER = 0.9.4 ++ VER = 0.9.4 + DEFINES = -DVERSION="\"$(VER)\"" $(OSDEFS) + +-ComplexProgramTarget(wmpload) ++ComplexProgramTargetNoMan(wmpload) + +-distclean: clean ++distclean: clean + $(RM) Makefile osdefs.mk core + +-tgz: ++tgz: + rm -rf wmpload-$(VER) + mkdir wmpload-$(VER) + cp `echo * | sed s,wmpload-$(VER),,` wmpload-$(VER) + cd wmpload-$(VER) && make distclean + tar cvf - wmpload-$(VER) | gzip -9 > wmpload-$(VER).tar.gz + rm -rf wmpload-$(VER) +- diff --git a/net/wmpload/pkg/COMMENT b/net/wmpload/pkg/COMMENT new file mode 100644 index 00000000000..ca6cfdff086 --- /dev/null +++ b/net/wmpload/pkg/COMMENT @@ -0,0 +1 @@ +PPP monitor for X11, totals and current in/out rates in 64x64 cube diff --git a/net/wmpload/pkg/DESCR b/net/wmpload/pkg/DESCR new file mode 100644 index 00000000000..e8512390f92 --- /dev/null +++ b/net/wmpload/pkg/DESCR @@ -0,0 +1,5 @@ +wmpload is a variation of pload, displaying ppp network device +usage in a 64x64 pixel square. + +Wmpload was designed to be docked into the Window Maker dock but +can be used with any window manager. diff --git a/net/wmpload/pkg/PLIST b/net/wmpload/pkg/PLIST new file mode 100644 index 00000000000..843ece41fcc --- /dev/null +++ b/net/wmpload/pkg/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/01/25 10:54:55 abs Exp $ +bin/wmpload |