--- 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. + --- dhcping-1.2.orig/debian/changelog +++ dhcping-1.2/debian/changelog @@ -0,0 +1,64 @@ +dhcping (1.2-4.1) unstable; urgency=low + + * Non-maintainer upload. + * Update config.{guess,sub} to support new architectures (Closes: #533687) + + -- Chen Baozi Tue, 03 Jun 2014 11:04:13 +0800 + +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 (closes: Bug#367154) + + -- Joey Schulze 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 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 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 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 Sat, 8 Dec 2001 15:17:18 +0100 + +dhcping (1.1-1) unstable; urgency=low + + * Initial version + + -- Martin Schulze Sun, 18 Nov 2001 20:10:19 +0100 --- dhcping-1.2.orig/debian/control +++ dhcping-1.2/debian/control @@ -0,0 +1,13 @@ +Source: dhcping +Section: admin +Priority: optional +Maintainer: Martin Schulze +Build-Depends: autotools-dev +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/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 or as +<:pserver:anonymous@cvs.infodrom.org/var/cvs/debian/dhcping/>. + +This package was put together by Martin Schulze , +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/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/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/rules +++ dhcping-1.2/debian/rules @@ -0,0 +1,105 @@ +#! /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: + cp -f /usr/share/misc/config.{sub,guess} . + 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/dhcping.8 +++ dhcping-1.2/dhcping.8 @@ -93,7 +93,7 @@ .nr % 0 .rr F .\} -.TH dhcping 8 "Januari 27, 2002" "Januari 27, 2002" "General Commands Manual" +.TH dhcping 8 "January 27, 2002" "January 27, 2002" "General Commands Manual" .UC .if n .hy 0 .if n .na @@ -204,6 +204,8 @@ Options are: .Ip "\fB\-v\fR" 5 Verbose, print some information. +.Ip "\fB\-V\fR" 5 +Very verbose, print a lot of information. .Ip "\fB\-i\fR" 5 Use \s-1DHCPINFORM\s0 packets. .Ip "\fB\-r\fR" 5 @@ -220,7 +222,7 @@ Send the \s-1DHCP\s0 packet to this \s-1IP\s0 address. .Ip "\fB\-h\fR \fIclient-hardware-address\fR" 5 Use this hardware-address in the \s-1DHCP\s0 request. It can be up to -sixteen octets seperated by colons (i.e. 01:02:03:04) +sixteen octets separated by colons (i.e. 01:02:03:04) .Ip "\fB\-g\fR \fIgateway-\s-1IP\s0\-address\fR" 5 Use this \s-1IP\s0 address for the gateway \s-1IP\s0 address in the \s-1DHCP\s0 packet. This option is currently broken. @@ -257,7 +259,7 @@ .PP If you see \*(L"DHCPINFORM from 192.168.1.1 via xl0: not authoritative for subnet 192.168.1.0\*(R", you should add the authoritative statement -to the subnet, See dhcpd.\fIconf\fR\|(5) for details. +to the subnet, See \fBdhcpd.conf\fR\|(5) for details. .PP When running in very verbose mode, \fBdhcping\fR tries to dump all data of the send and received DHCP packets. It will first dump the @@ -276,8 +278,8 @@ daemon does not write leases with a fixed IP address in the dhcpd.leases file. .PP -DHCPINFORM packets can only be used on subnets the server is authori- -tative for. If the monitoring script runs on a subnet the server +DHCPINFORM packets can only be used on subnets the server is authoritative +for. If the monitoring script runs on a subnet the server isn't authoritative for, it should use the DHCPREQUEST packets. I also experienced some problems with ISC DHCPD v2 servers, but that is also in the README of it. @@ -290,7 +292,7 @@ .SH "AUTHOR" Edwin Groothuis, edwin@mavetju.org (http://www.mavetju.org) .SH "SEE ALSO" -\fIdhcpd\fR\|(8), \fIdhclient\fR\|(8), dhcpd.\fIconf\fR\|(5), \fIdhcpdump\fR\|(8) +\fBdhcpd\fR\|(8), \fBdhclient\fR\|(8), \fBdhcpd.conf\fR\|(5), \fBdhcpdump\fR\|(8) .rn }` '' .IX Title "dhcping 8" --- dhcping-1.2.orig/dhcping.c +++ dhcping-1.2/dhcping.c @@ -70,7 +70,7 @@ int maxwait=3; void doargs(int argc,char **argv) { - char ch; + int ch; inform=request=verbose=VERBOSE=quiet=0; ci=gi=server="0.0.0.0";