--- dhcping-1.2.orig/debian/rules
+++ dhcping-1.2/debian/rules
@@ -0,0 +1,104 @@
+#! /usr/bin/make -f
+
+#   Copyright 1994-99,2001   joey@infodrom.org (Martin Schulze)
+#
+#   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; version 2 dated June, 1991.
+#
+#   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., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
+#
+SHELL=/bin/bash
+
+# The name and version of the source
+#
+source = $(shell grep "^Source: " debian/control|head -1|sed 's/Source: \(.*\)/\1/g')
+package = $(shell grep "^Package: " debian/control|head -1|sed 's/Package: \(.*\)/\1/g')
+version = $(shell grep "^$(source) " debian/changelog|head -1 |sed 's/.*(\(.*\)\-[^\-]*).*/\1/g')
+revision = $(shell grep "^$(source) " debian/changelog|head -1 |sed 's/.*([^\-]*\-\(.*\)).*/\1/g')
+
+installbin = install -g root -o root -m 755
+installdoc = install -g root -o root -m 644
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+CFLAGS = -g -O2
+else
+CFLAGS = -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+STRIP = -s
+endif
+
+build:
+	test -f config.cache || ./configure
+	$(MAKE) CFLAGS="$(CFLAGS)"
+	touch stamp-build
+	cat debian/copyright LICENSE > copyright.txt
+
+clean: debclean
+	rm -f stamp-build
+	test ! -f Makefile || $(MAKE) distclean
+	rm -rf *~ copyright.txt
+
+debclean:
+# Cleans debian binary directories to allow binary creation
+	rm -rf debian/tmp
+	rm -f debian/{files,substvars}
+
+binary-indep:
+# Nothing to be done here
+
+binary-arch: debclean
+	test -f stamp-build || $(MAKE) -f debian/rules build
+	$(installbin) -d debian/tmp/DEBIAN
+	chown -R root.root debian/tmp
+	chmod -R g-ws debian/tmp
+	$(installbin) -d debian/tmp/usr/share/doc/$(package)
+	$(installdoc) debian/changelog debian/tmp/usr/share/doc/$(package)/changelog.Debian
+	#
+	$(installdoc) copyright.txt debian/tmp/usr/share/doc/$(package)/copyright
+	gzip -9f debian/tmp/usr/share/doc/$(package)/changelog.Debian
+	#
+	$(installbin) -d debian/tmp/usr/sbin
+	$(installbin) $(STRIP) dhcping debian/tmp/usr/sbin
+	#
+	$(installbin) -d debian/tmp/usr/share/man/man8
+	$(installdoc) dhcping.8 debian/tmp/usr/share/man/man8
+	gzip -9 debian/tmp/usr/share/man/man?/*
+	#
+	dpkg-shlibdeps debian/tmp/usr/sbin/dhcping
+	dpkg-gencontrol -isp
+	dpkg --build debian/tmp ..
+
+binary: binary-indep binary-arch
+
+source diff:
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b' or dsc; false
+
+dsc:
+	-test -d debian/tmp && $(MAKE) -f debian/rules clean
+	if [ ! -f ../$(source)_$(version).orig.tar.gz -a -f ../orig/$(source)_$(version).orig.tar.gz ]; \
+	then \
+	  ln -s orig/$(source)_$(version).orig.tar.gz ../$(source)_$(version).orig.tar.gz; \
+	  touch /tmp/stamp-$(source)-link; \
+	fi; \
+	cd .. && dpkg-source -b $(source)-$(version)
+	if [ -f /tmp/stamp-$(source)-link ]; then \
+	  rm ../$(source)_$(version).orig.tar.gz /tmp/stamp-$(source)-link; \
+	fi
+
+checkroot:
+	$(checkdir)
+	test root = "`whoami`"
+
+dist: binary dsc
+
+.PHONY: binary binary-arch binary-indep clean checkroot
+
--- dhcping-1.2.orig/debian/prerm
+++ dhcping-1.2/debian/prerm
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+pkg=dhcping
+
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/${pkg} ]; then
+   rm -f /usr/doc/${pkg}
+fi
+
--- dhcping-1.2.orig/debian/copyright
+++ dhcping-1.2/debian/copyright
@@ -0,0 +1,15 @@
+This is the Debian GNU prepackaged version of dhcping, an
+administrative tool for finding out if a DHCP server is still up and
+running.
+
+The source of the Debian package is managed through CVS.  It is publically
+available at <http://cvs.infodrom.org/dhcping/?cvsroot=debian> or as
+<:pserver:anonymous@cvs.infodrom.org/var/cvs/debian/dhcping/>.
+
+This package was put together by Martin Schulze <joey@debian.org>,
+from sources obtained from:
+
+ http://www.mavetju.org/download/dhcping-1.2.tar.gz
+
+dhcping has been released under the BSD license as quoted below.
+
--- dhcping-1.2.orig/debian/control
+++ dhcping-1.2/debian/control
@@ -0,0 +1,12 @@
+Source: dhcping
+Section: admin
+Priority: optional
+Maintainer: Martin Schulze <joey@debian.org>
+Standards-Version: 3.6.2
+
+Package: dhcping
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: DHCP Daemon Ping Program
+ This small tool provides an opportunity for a system administrator to
+ perform a DHCP request to find out if a DHCP server is still running.
--- dhcping-1.2.orig/debian/postinst
+++ dhcping-1.2/debian/postinst
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+set -e
+
+pkg=dhcping
+
+if [ "$1" = "configure" ]; then
+   if [ -d /usr/doc -a ! -e /usr/doc/${pkg} -a -d /usr/share/doc/${pkg} ]; then
+      ln -sf ../share/doc/${pkg} /usr/doc/${pkg}
+   fi
+fi
--- dhcping-1.2.orig/debian/changelog
+++ dhcping-1.2/debian/changelog
@@ -0,0 +1,57 @@
+dhcping (1.2-4) unstable; urgency=low
+
+  * Fixed typo in NMU-Disclaimer, thanks to Petter Reinholdtsen (See:
+    Bug#225895)
+  * Added support for nostrip (closes: Bug#436760)
+  * Added support for debug option
+  * Document -V as extremely verbose option (closes: Bug#364694)
+  * Compress changelog.Debian even if it's very small (closes: Bug#355687)
+  * Fixed typos by A Costa <agcosta@gis.net> (closes: Bug#367154)
+
+ -- Joey Schulze <joey@infodrom.org>  Sat, 28 Jun 2008 18:55:45 +0200
+
+dhcping (1.2-3) unstable; urgency=medium
+
+  * Applied patch by Henrik Stoerner to fix infinite loop when processing
+    commandline arguments (closes: Bug#327083)
+  * Updated config.guess and config.sub from autotools-dev 20060223.1 to
+    update architectures (closes: Bug#342404)
+  * Applied spelling patch by A Costa (closes: Bug#334476)
+  * Corrected boldface in the SEE ALSO section
+  * Disabled installation of postinst and prerm scripts
+  * Updated the Standards-Version
+
+ -- Martin Schulze <joey@infodrom.org>  Sat,  4 Mar 2006 22:35:30 +0100
+
+dhcping (1.2-2) unstable; urgency=medium
+
+  * Added a note about the packages' cvs directory
+  * Added special detection routine for big/little endianess on MIPS since
+    the line "byteorder : {big|little} endian" from /proc/cpuinfo was
+    removed as of Linux 2.4.20, resulting in the mipsel buildd being
+    unable to build this package. (closes: Bug#274504)
+  
+ -- Martin Schulze <joey@infodrom.org>  Sun,  7 Nov 2004 16:10:38 +0100
+
+dhcping (1.2-1) unstable; urgency=low
+
+  * Added a disclaimer for those people who plan to NMU this package
+  * New upstream version (132924)
+  * Added support for auto-configure script
+  * Corrected clean target
+  * Corrected bold/italics in manpage
+
+ -- Martin Schulze <joey@finlandia.infodrom.north.de>  Tue, 12 Feb 2002 10:13:17 +0100
+
+dhcping (1.1-2) unstable; urgency=low
+
+  * Whoops, forgot to add the postinst and prerm scripts
+  * Added -isp to dpkg-gencontrol
+
+ -- Martin Schulze <joey@finlandia.infodrom.north.de>  Sat,  8 Dec 2001 15:17:18 +0100
+
+dhcping (1.1-1) unstable; urgency=low
+
+  * Initial version
+
+ -- Martin Schulze <joey@finlandia.infodrom.north.de>  Sun, 18 Nov 2001 20:10:19 +0100
--- dhcping-1.2.orig/debian/NMU-Disclaimer
+++ dhcping-1.2/debian/NMU-Disclaimer
@@ -0,0 +1,45 @@
+Non Maintainer Upload of this Package
+-------------------------------------
+
+If you plan to work on an NMU for this package, read the following
+closely.  It can save you and me some grief.
+
+ 1. At first, contact the maintainer (i.e. send a mail to
+    joey@debian.org, do not cc or bounce a mail, send a plain mail,
+    not copied to any mailing list or the BTS) and ask about the
+    status of the bug you are considering to work on.
+
+ 2. In this mail include all information relevant for this problem,
+    i.e. include a description of the bug and not only its bug
+    number.
+
+ 3. If the maintainer is not able or willing to fix the problem or
+    does not respond within four days, continue with step 4.
+
+ 4. Work on the bug and prepare a patch.  Do not upload into the
+    Debian archive.
+
+ 5. Send the entire patch, together with enough explanations, to the
+    maintainer for reviewing and ask him for permission of an NMU
+    using this patch.
+
+ 6. IF AND ONLY IF the maintainer approves the patch (or doesn't
+    respond within four days), upload the NMU to the incoming
+    directory and send the patch to the BTS.  If the NMU is not
+    approved, go back to 4. or add the NMU to your homepage, but do
+    not upload it to the Debian archive.
+
+ 7. Properly sized and well-written patches sent to the BTS are always
+    appreciated, even if they are rejected later.  They demonstrate a
+    potential solution which could probably improved into a real
+    solution.
+
+ 8. NEVER change the way a package is maintained in an NMU, i.e. don't
+    remove dh_* stuff or switch to dh_* respectively.  This rule
+    applies to all NMU's, not only to an NMU for this package.
+
+These rules always apply.  They even apply if somebody declares NMUs
+as ok and reduces regular NMU rules to a delay of zero days.  Unless
+I'm on vacation or on a show I am reachable via mail, so there is
+hardly a reason not to contact me.
+
