--- wmifs-1.3b1.orig/debian/copyright
+++ wmifs-1.3b1/debian/copyright
@@ -0,0 +1,29 @@
+This package was debianized by Ben Gertzfield <che@debian.org> on
+Tue, 25 Aug 1998 13:37:07 -0700
+Jordi Mallach <jordi@debian.org> took over the packaging on
+Sun,  6 May 2001 13:50:04 +0200
+Romain Francoise <rfrancoise@debian.org> then took the package from
+Jordi's hands on Fri, 05 Dec 2003 20:05:51 +0100
+The package is now maintained by Martin A. Godisch <godisch@debian.org>.
+
+It was downloaded from http://web.cs.mun.ca/~gstarkes/wmaker/dockapps/net.html.
+
+Copyright (c) 1998-2004
+Martijn Pieterse <pieterse@xs4all.nl> and Antoine Nulle <warp@xs4all.nl>
+
+  This program is free software; you can redistribute it and/or modify it
+  under the terms of the GNU General Public License as published by the
+  Free Software Foundation; either version 2 of the License, or (at your
+  option) any later version.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+  See the GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License along
+  with this program; if not, write to the Free Software Foundation, Inc.,
+  51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in /usr/share/common-licenses/GPL.
--- wmifs-1.3b1.orig/debian/compat
+++ wmifs-1.3b1/debian/compat
@@ -0,0 +1 @@
+5
--- wmifs-1.3b1.orig/debian/postinst
+++ wmifs-1.3b1/debian/postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ] && [ -x "`which update-menus 2> /dev/null`" ]; then
+	update-menus
+fi
+
+exit 0
--- wmifs-1.3b1.orig/debian/control
+++ wmifs-1.3b1/debian/control
@@ -0,0 +1,20 @@
+Source: wmifs
+Section: x11
+Priority: optional
+Maintainer: Martin A. Godisch <godisch@debian.org>
+Build-Depends: libx11-dev, libxext-dev, libxpm-dev
+Standards-Version: 3.8.3
+
+Package: wmifs
+Architecture: any
+Depends: ${shlibs:Depends}
+Recommends: wmaker
+Conflicts: wmppp.app (<= 1.1-1)
+Replaces: wmppp.app (<= 1.1-1)
+Description: WindowMaker dock app for monitoring network traffic
+ wmifs is a dockable applet for X11 that can monitor all your network
+ interfaces. It's designed for WindowMaker's Dock and AfterStep's Wharf,
+ but it's not dependent on these window managers and should work with any
+ other.
+ .
+ WMiFS stands for "Window Maker InterFace Statistics".
--- wmifs-1.3b1.orig/debian/menu
+++ wmifs-1.3b1/debian/menu
@@ -0,0 +1 @@
+?package(wmifs):needs="x11" section="Applications/Network/Monitoring" title="WMifs" command="/usr/bin/wmifs"
--- wmifs-1.3b1.orig/debian/wmifs.1
+++ wmifs-1.3b1/debian/wmifs.1
@@ -0,0 +1,73 @@
+.\" Hey, Emacs!  This is an -*- nroff -*- source file.
+.\" wmifs is copyright 1999-2003 by Jordi Mallach <jordi@debian.org>
+.\"          copyright 2003-2004 by Romain Francoise <rfrancoise@debian.org>
+.\" 
+.\" This is free documentation, see the latest version of the GNU
+.\" General Public License for copying conditions. There is NO warranty.
+
+
+.TH WMIFS 1 "December 26, 2001" "wmifs"
+       
+.SH NAME
+wmifs \- a dockable network traffic monitor
+.SH SYNOPSIS
+.B wmifs
+[-d <display name>] [-i <interface name>] [-l] [-w] [-h] [-v]
+
+.SH DESCRIPTION
+WMiFS is a dockable applet for X11 that can monitor all your network
+interfaces. It's designed for WindowMaker's Dock and AfterStep's Wharf,
+but it's not dependant on these window managers and should work with
+any other.
+It can display the net load using a standard bar graph or using a waveform
+mode. It also displays the state of the interface with a group of leds.
+Clicking on the interface name will cycle to the next interface in the
+system. Users can define commands to be executed when the different mouse
+buttons are pressed on the main window.
+
+.SH OPTIONS
+.TP
+.B \-h
+Show summary of options.
+.TP
+.B \-v
+Show version of the program.
+.TP
+.B \-d <display name>
+Use an alternate X display.
+.TP
+.B \-i <interface name>
+Interface that should come up initially when executing wmifs.  If you
+use "auto" as interface name, the first active ("up") interface will be
+used.
+.TP
+.B \-I <interval>   
+Sampling interval, in seconds (default: 0.05).
+.TP
+.B \-l
+Starts wmifs in lock mode. Useful if combined with \-i, if you want to
+monitor a, for example, ppp device which isn't up when wmifs is started.
+It won't switch to the next available interface.
+.TP
+.B \-s <interval>
+Scrolling interval, in seconds (default: 5)
+.TP
+.B \-w
+Use the waveform graph instead of the classic one.
+
+.SH FILES
+.TP
+.I /etc/wmifsrc
+system wide wmifs configuration file.
+.TP
+.I ~/.wmifsrc
+peruser wmifs configuration file.
+
+.SH AUTHOR
+This manual page was written by Jordi Mallach <jordi@sindominio.net>
+for the Debian GNU/Linux system (but may be used by others).
+
+.SH SEE ALSO
+.PD 0
+.TP
+\fI/usr/share/doc/wmifs\fP
--- wmifs-1.3b1.orig/debian/changelog
+++ wmifs-1.3b1/debian/changelog
@@ -0,0 +1,213 @@
+wmifs (1.3b1-20) unstable; urgency=low
+
+  * Replaced stats_ptr and ifr__name which are not defined on all archs.
+  * Updated copyright file.
+  * Updated standards version.
+
+ -- Martin A. Godisch <godisch@debian.org>  Tue, 24 Nov 2009 21:49:25 +0100
+
+wmifs (1.3b1-19) unstable; urgency=low
+
+  * Fixed build-dependencies, closes: #486995.
+  * Updated standards version.
+
+ -- Martin A. Godisch <godisch@debian.org>  Mon, 23 Jun 2008 21:30:15 +0200
+
+wmifs (1.3b1-18) unstable; urgency=low
+
+  * New maintainer, closes: #439971.
+  * Removed debhepler and cdbs build-dependency.
+  * Updated standards version.
+
+ -- Martin A. Godisch <godisch@debian.org>  Sun, 03 Feb 2008 17:15:18 +0100
+
+wmifs (1.3b1-17) unstable; urgency=low
+
+  * debian/control:
+    + Set maintainer to Debian QA group.
+    + Drop build-depends on obsolete xlibs-dev.
+    + Bump Standards-Version to 3.7.2, no changes needed.
+
+ -- Romain Francoise <rfrancoise@debian.org>  Tue, 28 Aug 2007 21:48:53 +0200
+
+wmifs (1.3b1-16) unstable; urgency=low
+
+  * debian/control:
+    + Build-Depend on libx11-dev | xlibs-dev, libxpm-dev | xlibs-dev.
+    + Build-Depend on debhelper (>= 5.0.0).
+    + Bump Standards-Version to 3.6.2.1, no changes needed.
+  * debian/compat: Switch to debhelper compatibility level 5.
+
+ -- Romain Francoise <rfrancoise@debian.org>  Sun,  8 Jan 2006 00:41:03 +0100
+
+wmifs (1.3b1-15) unstable; urgency=low
+
+  * wmifs/wmifs.c: patch from Tom Marshall <tommy@home.tig-grr.com>, adds
+    a special interface name "auto" for the -i option. "wmifs -i auto"
+    will automatically select the first up interface (closes: #204873).
+  * debian/wmifs.1: Document "-i auto" behavior.
+
+ -- Romain Francoise <rfrancoise@debian.org>  Sun, 29 Feb 2004 17:19:12 +0100
+
+wmifs (1.3b1-14) unstable; urgency=low
+
+  * wmifs/wmifs.c: patch from Peter Samuelson <peter@samba-tng.org> to
+    make sampling and scrolling intervals customizable, adds new options
+    -I and -s (closes: #226689).
+  * debian/wmifs.1: Add new options -I and -s.
+
+ -- Romain Francoise <rfrancoise@debian.org>  Thu,  8 Jan 2004 19:21:06 +0100
+
+wmifs (1.3b1-13) unstable; urgency=low
+
+  * The "Stepping up" release.
+  * New maintainer.
+  * debian/control:
+    + Update maintainer contact info.
+    + Add Recommends on wmaker.
+    + Add Build-Depends on cdbs.
+  * debian/copyright: Update maintainer information.
+
+ -- Romain Francoise <rfrancoise@debian.org>  Fri,  5 Dec 2003 20:17:25 +0100
+
+wmifs (1.3b1-12) unstable; urgency=low
+
+  * The "Why hasn't anyone taken over wmifs yet?" release.
+  * debian/changelog: recode as UTF-8.
+  * debian/control:
+    + build-depend on cdbs, bump debhelper to (>= 4.1.0).
+    + bump Standards-Version to 3.6.1.0.
+  * debian/compat: use debhelper 4.
+  * debian/rules: switch to cdbs.
+
+ -- Jordi Mallach <jordi@debian.org>  Tue, 25 Nov 2003 17:20:41 +0100
+
+wmifs (1.3b1-11) unstable; urgency=low
+
+  * debian/changelog: removed emacs stuff.
+  * debian/conffiles: removed; DH_COMPAT=3 adds it for us.
+  * debian/copyright: added upstream authors.
+  * debian/rules: removed dh_make cruft.
+  * debian/wmifs.1: documented Lock Mode.
+  * wmifs/wmifs.c: the long interface name patch made wmifs segfault with
+    some interfaces. Matyas Koszik <koszik@debijan.lonyay.edu.hu> spotted
+    problem and mhp provided a nice patch with Matyas' fix (closes: #126501).
+    This may fix #119181 too, but I can't check too well.
+
+ -- Jordi Mallach <jordi@debian.org>  Tue, 15 Jan 2002 20:56:47 +0100
+
+wmifs (1.3b1-10) unstable; urgency=low
+
+  * wmifs/wmifs.c: patch from Davi Leal <davileal@terra.es> which fixes
+    the display of long interface names. wmifs only has space to display
+    interface names which are 5 characters long at the most. Now it will
+    cut interface names so they fit well. For example, "dummy0" will be
+    displayed as "dumm0", or "vmnet10" as "vmn10" (closes: #103083).
+
+ -- Jordi Mallach <jordi@debian.org>  Fri, 31 Aug 2001 02:51:59 +0200
+
+wmifs (1.3b1-9) unstable; urgency=low
+
+  * debian/control: Standards-Version: 3.5.6.0 (no changes).
+  * wmifs/wmifs.c: uncomment the ioctl call which makes ppp stats work.
+    Thanks, Patrick (closes: #105361).
+
+ -- Jordi Mallach <jordi@debian.org>  Thu,  2 Aug 2001 02:55:50 +0200
+
+wmifs (1.3b1-8) unstable; urgency=low
+
+  * wmifs/wmifs.c: fixed a thinko in the previous patch. If you use
+    LockMode without providing an interface, ignore the lock. Thanks
+    again, Jorge.
+
+ -- Jordi Mallach <jordi@debian.org>  Fri, 24 Jun 2001 23:24:29 +0200
+
+wmifs (1.3b1-7) unstable; urgency=low
+
+  * debian/control: Standards-Version: 3.5.5.0.
+  * debian/wmifs.1: added a missing newline.
+  * wmifs/wmifs.c: added a new command line argument, -l, which starts
+    wmifs in "Lock Mode". With it, if you specify an interface with -i
+    but it's not up, wmifs won't try to fall back to another existing
+    interface. Thanks to Jorge García for the help. (closes: #26870)
+  * And finally wmifs is bugfree(tm) (or you haven't reported them :)
+
+ -- Jordi Mallach <jordi@debian.org>  Sat, 16 Jun 2001 20:11:58 +0200
+
+wmifs (1.3b1-6) unstable; urgency=low
+
+  * New Maintainer.
+  * debian/control:
+    + Standards-Version: 3.5.4.0
+    + Build-Depends against xlibs-dev, debhelper (>= 3.0.0) (closes: #92681)
+    + minor modifications to the description
+  * debian/rules:
+    + added DEB_BUILD_OPTIONS support
+    + cleaned up a bit, added the install target
+    + DH_COMPAT=3
+    + install binary in /usr/bin
+    + install the new manpage
+  * debian/README.Debian: removed.
+  * debian/copyright:
+    + new download URL
+    + changed copyright location
+  * debian/menu: it's back! (closes: #77005, thanks xtifr)
+  * debian/wmifs.1: wrote a manpage for wmifs. It's not funny, but
+    someone else wrote it while I was working on the NMU. Thanks for
+    the effort anyway, Evelyn (closes: #93478).
+  * wmifs/Makefile:
+    + fixed things so DEB_BUILD_OPTIONS work
+    + fixed clean rule (closes: #27458)
+  * wmbifs/wmifs.c:
+    + applied patch from Barak Pearlmutter <bap@cs.unm.edu> which fixes a
+      bad 'catching up' behaviour after suspends (closes: #40682, #83003)
+    + applied patch from Chris Hanson <cph@martigny.ai.mit.edu>, fixes
+      a segfault when there are many network interfaces in the system
+      (closes: #39922)
+    + fixed WMIFS_VERSION
+  * These were fixed in previous uploads, closes: #41746, #67983).
+
+ -- Jordi Mallach <jordi@debian.org>  Sun,  6 May 2001 13:50:04 +0200
+
+wmifs (1.3b1-5.1) unstable; urgency=low
+
+  * NMU by Branden Robinson <branden@debian.org>.
+  * Recompile against modern xpm4g package to get proper shared library
+    dependency and permit this package to be installed with forthcoming
+    XFree86 4.x packages, which include libXpm.
+  * debian/control: added Build-Depends
+
+ -- Branden Robinson <branden@debian.org>  Mon, 23 Oct 2000 14:45:48 -0500
+
+wmifs (1.3b1-5) unstable; urgency=low
+
+  * Remove annoying "heyho!" debugging printf that happened when one
+    does not have ppp. Fixes: #42297
+
+ -- Ben Gertzfield <che@debian.org>  Sun,  1 Aug 1999 13:51:50 -0700
+
+wmifs (1.3b1-4) unstable; urgency=low
+
+  * Patch from Stephen Pitts to bump static buffer size from 128 to 
+    #defined size (now 512).  Fixes: #41746.
+
+ -- Ben Gertzfield <che@debian.org>  Thu, 22 Jul 1999 07:22:39 -0700
+
+wmifs (1.3b1-3) unstable; urgency=low
+
+  * Bump MAX_STAT_DEVICES to 16. Closes: #37572
+
+ -- Ben Gertzfield <che@debian.org>  Sun,  4 Jul 1999 10:07:03 -0700
+
+wmifs (1.3b1-2) frozen unstable; urgency=low
+
+  * Make it so that a make clean does not cause debian/rules clean to
+    bomb out. Fixes bug #28502.
+
+ -- Ben Gertzfield <che@debian.org>  Sun, 25 Oct 1998 10:34:44 -0800
+
+wmifs (1.3b1-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Ben Gertzfield <che@debian.org>  Tue, 25 Aug 1998 13:36:10 -0700
--- wmifs-1.3b1.orig/debian/rules
+++ wmifs-1.3b1/debian/rules
@@ -0,0 +1,61 @@
+#!/usr/bin/make -f
+
+testdir  = test -f wmifs/wmifs.c && test -f debian/rules
+testroot = test x`whoami` = xroot
+
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+export CFLAGS
+
+clean:
+	$(testdir)
+	rm -f build debian/files debian/rejected debian/substvars
+	$(MAKE) -C wmifs clean
+	-cat `ls -r debian/patches/*.diff` /dev/null | patch -RENtp1 -r debian/rejected --no-backup-if-mismatch
+	rm -rf debian/tmp
+
+build:
+	$(testdir)
+	-cat debian/patches/*.diff | patch -Ntp1 -r debian/rejected --no-backup-if-mismatch
+	$(MAKE) -C wmifs
+	touch $@
+
+binary: binary-arch
+
+binary-indep:
+
+binary-arch: build
+	$(testdir)
+	$(testroot)
+	rm -rf debian/tmp
+
+	$(MAKE) -C wmifs install prefix=/usr DESTDIR=$(CURDIR)/debian/tmp
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	strip -R .comment -R .note debian/tmp/usr/bin/wmifs
+endif
+	install -D -p -m 0644 debian/wmifs.1 debian/tmp/usr/share/man/man1/wmifs.1
+	install -D -p -m 0644 debian/menu debian/tmp/usr/share/menu/wmifs
+	install -D -p -m 0644 debian/changelog debian/tmp/usr/share/doc/wmifs/changelog.Debian
+	install -D -p -m 0644 CHANGES debian/tmp/usr/share/doc/wmifs/changelog
+	install    -p -m 0644 BUGS HINTS README TODO debian/copyright debian/tmp/usr/share/doc/wmifs
+	install -d -p -m 0755 debian/tmp/DEBIAN
+	install    -p -m 0644 debian/control debian/tmp/DEBIAN
+	install    -p -m 0755 debian/postinst debian/postrm debian/tmp/DEBIAN
+	find debian/tmp/usr/share/man -type f ! -name '*.gz' -print0 | xargs -0 gzip -9n
+	find debian/tmp/usr/share/doc -type f \( -size +8 -o -name 'changelog*' \) \
+		! -name copyright ! -name '*.htm*' ! -name '*.gz' -print0 | xargs -0 gzip -9n
+	cd debian/tmp && find etc -type f | sed 's/^/\//' > DEBIAN/conffiles
+	cd debian/tmp && find usr -type f -print0 | xargs -0 md5sum > DEBIAN/md5sums
+	chmod 0644 debian/tmp/DEBIAN/md5sums
+
+	dpkg-shlibdeps debian/tmp/usr/bin/wmifs
+	dpkg-gencontrol -isp -pwmifs
+	chown -R root:root debian/tmp
+	chmod -R u+w,go=u-w debian/tmp
+	dpkg --build debian/tmp ..
+
+.PHONY: clean binary-indep binary-arch binary
--- wmifs-1.3b1.orig/debian/postrm
+++ wmifs-1.3b1/debian/postrm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if [ -x "`which update-menus 2> /dev/null`" ]; then
+	update-menus
+fi
+
+exit 0
