--- arping-2.08.orig/debian/examples +++ arping-2.08/debian/examples @@ -0,0 +1,3 @@ +arping-scan-net.sh +debian/arping.default +debian/arping.if-up --- arping-2.08.orig/debian/changelog +++ arping-2.08/debian/changelog @@ -0,0 +1,196 @@ +arping (2.08-1) unstable; urgency=low + + * New upstream release + * Re-patch new arping.8 for fixing manpage-has-errors-from-man and + hyphen-used-as-minus-sign lintian warnings + * debian/copyright: Updated copyright year and url where arping was + downloaded + + -- Giuseppe Iuculano Fri, 15 Aug 2008 22:44:52 +0200 + +arping (2.07~pre1-3) unstable; urgency=low + + * Removed if-up.d script, there is a similar script in ifupdown-extra. + Moved to examples/ (Closes: #492461) + + Removed lsb-base from Depends and come back to debhelper (>= 5) + + debian/control: removed dh_installinit and dh_installifupdown + + debian/arping.example: Added debian/arping.if-up and arping.if-up + + Updated Readme.Debian + + -- Giuseppe Iuculano Sun, 27 Jul 2008 03:30:59 +0200 + +arping (2.07~pre1-2) unstable; urgency=low + + * Added a patch (improved) that adds a network/ip-up.d script for using + arping to check for IP duplicates after bringing up the interface. Thanks + to Robert Millan (Closes: #431066) + * debian/rules: + + Removed CFLAGS settings, this is now done by dpkg-buildpackage + + Added dh_installinit and dh_installifupdown in binary-arch section + * debian/control: + + Added lsb-base (>= 3.0-10) to Depends (debian/arping.if-up needs it) + + Modified debhelper version in Build-Depends, debhelper (>= 5.0.44~), + dh_installinit is in debhelper (>= 5.0.44~) + + -- Giuseppe Iuculano Mon, 30 Jun 2008 16:45:28 +0200 + +arping (2.07~pre1-1) unstable; urgency=low + + * New upstream release. libnet is now initialized correctly, which fixes the + segmentation fault on imbecile user input. (Closes: #210992) + * New maintainer, thanks to LENART Janos for the prior work on arping + (Closes: #487334) + * Rewrite debian/rules, now handles nostrip build option (Closes: #436472) + * Added debhelper level (5) + * Switch to dpatch + + 01_fix_makefile.dpatch fixed some common path problems + + 02_fix_manpage.dpatch fixed lintian warning manpage-has-errors-from-man, + hyphen-used-as-minus-sign + * Added debian/examples debian/docs + * Added debhelper (>= 5) to Build-Depends + * Updated to standards version 3.8.0 + + Added Homepage control field + * Removed libpcap0.8-dev from Build-depends and added libpcap-dev + + -- Giuseppe Iuculano Sun, 22 Jun 2008 16:17:14 +0200 + +arping (2.05-2) unstable; urgency=low + + * QA upload. + * Restore LENART Janos as maintainer at his request. + * Conforms to Standards version 3.7.2. + + -- Matej Vela Sun, 23 Jul 2006 02:40:33 +0200 + +arping (2.05-1) unstable; urgency=low + + * New upstream release. + * Set Maintainer to Debian QA Group. + * Bump Standards-Version to 3.7.0. + * Add watch file. closes: #255861. + * Add copyright to copyright file. closes: #290058. + * Remove XSIism from rules file. + * Change build-dep from libpcap-dev to libpcap0.8-dev. + * Update FSF address in the copyright file. + + -- Clint Adams Thu, 27 Apr 2006 00:36:14 -0400 + +arping (2.01-3) unstable; urgency=medium + + * Setgid removed (on control-directory). (closes: Bug#234481) + * Bashism fixed. (closes: Bug#230342) + + -- Lenart Janos Sat, 13 Mar 2004 22:50:04 +0100 + +arping (2.01-2) unstable; urgency=medium + + * Fixed Build-Depends. (closes: Bug#220760) + + -- Lenart Janos Fri, 26 Dec 2003 11:37:16 +0100 + +arping (2.01-1) unstable; urgency=medium + + * New upstream release. Take care: minor changes! (closes: Bug#136311, + Bug#210992, + Bug#214259) + * Changed Depends: libnet0-dev to libnet1-dev. + * Joined, and carefully edited copyright file ;) + * Upgraded Standards-Version. + + -- Lenart Janos Sun, 2 Nov 2003 13:09:45 +0100 + +arping (1.05-1) unstable; urgency=low + + * New upstream release. + * Last NMU accepted. (closes: Bug#156191) + * Upgraded Standards-Version. + + -- Lenart Janos Tue, 5 Nov 2002 23:57:58 +0100 + +arping (1.04-1.1) unstable; urgency=low + + * Non maintainer upload + * Rebuilt with new libpcap to remove dependency on libpcap0, which I + got removed from unstable by accident. Sorry about this... + + -- Torsten Landschoff Sat, 10 Aug 2002 11:36:43 +0200 + +arping (1.04-1) unstable; urgency=low + + * New upstream release. + * Fixed Build-Depends. (closes: Bug#134857) + + -- Lenart Janos Fri, 22 Feb 2002 18:30:46 +0100 + +arping (1.02-2) unstable; urgency=low + + * Added include net/ethernet.h into arping.c so it may comile on the + s390 architecture. (closes: Bug#123663) + * Fixed debian/{post,pre}{inst,rem}. + + -- Lenart Janos Sat, 22 Dec 2001 15:46:37 +0100 + +arping (1.02-1) unstable; urgency=low + + * New upstream release. + * Binary moved into /usr/sbin - it's for root. (closes: Bug#122265) + * Completly repacked. Bye-bye debhelper. + + -- Lenart Janos Tue, 11 Dec 2001 17:32:45 +0100 + +arping (1.01-1) unstable; urgency=low + + * New upstream release. + * Now hopefully works on hppa. (closes: Bug#104929) + * Emacs-thingy removed from this changelog. + * The libnet0-dev dependency removed, becouse libcap-dev depends on it + anyway. + + -- Lenart Janos Sun, 21 Oct 2001 00:15:06 +0200 + +arping (1.00-2) unstable; urgency=low + + * The last Debian version was packaged as that was Debian-specific. + + -- Lenart Janos Wed, 8 Aug 2001 21:03:52 +0200 + +arping (1.00-1) unstable; urgency=low + + * New upstream release. + + -- Lenart Janos Sun, 8 Jul 2001 15:31:10 +0200 + +arping (0.98-1) unstable; urgency=low + + * New upstream release. + + -- Lenart Janos Thu, 21 Jun 2001 21:25:55 +0200 + +arping (0.97-1) unstable; urgency=low + + * New upstream release. + + -- Lenart Janos Fri, 15 Jun 2001 20:33:11 +0200 + +arping (0.96-3) unstable; urgency=medium + + * Added Conflicts: iputils-arping. (That arping is a fully different + solution for the same thing.) Thanks for cooperation: + Noah L. Meyerhans . (closes: Bug#99224) + + -- Lenart Janos Sun, 3 Jun 2001 22:01:33 +0200 + +arping (0.96-2) unstable; urgency=medium + + * Errrr. Of course I forgot that my initial idea was to add a debconf + question about the setuid thingy, so I the Depends: and the + Build-Depends: was not removed against debconf. Fixed now. + * Added Build-Depends against lib{pcap,net}-dev. (closes: Bug#99268) + + -- Lenart Janos Tue, 29 May 2001 21:03:09 +0200 + +arping (0.96-1) unstable; urgency=low + + * Initial Release. (closes: Bug#98919) + + -- Lenart Janos Sun, 27 May 2001 16:46:46 +0200 --- arping-2.08.orig/debian/arping.if-up +++ arping-2.08/debian/arping.if-up @@ -0,0 +1,37 @@ +#!/bin/sh +set -e + +if [ "${IF_ADDRESS}" = "" ] ; then + exit 0 +fi + +. /lib/lsb/init-functions + +IPUP=0 +DOWN=0 + +if [ -f /etc/default/arping ] ; then + . /etc/default/arping +fi + +if [ $IPUP = 0 ]; then + exit 0 +fi + +log_action_begin_msg "Using arping to check duplicity of ${IF_ADDRESS}" + +if arping -c 1 -d -I ${IFACE} ${IF_ADDRESS} > /dev/null ; then + if [ $DOWN = 1 ]; then + ifconfig ${IFACE} down + msg="Bringing ${IFACE} down. " + fi + msg=${msg}"Another computer is already using ${IF_ADDRESS}" + status=1 +else + msg="No duplicates found" + status=0 +fi + +log_action_end_msg ${status} "${msg}" + +[ ${status} = 0 ] --- arping-2.08.orig/debian/docs +++ arping-2.08/debian/docs @@ -0,0 +1 @@ +README --- arping-2.08.orig/debian/README.Debian +++ arping-2.08/debian/README.Debian @@ -0,0 +1,24 @@ +arping for Debian +----------------- + +There are two different arping series from Thomas Habets: 1.xx and 2.xx. +The original source contains both versions, however this binary package +contains only the 2.xx series by this time. + +Root privileges are needed to run arping. It can be made permanently +setuid by using dpkg-statoverride, but beware it's a potential security +hole. + +In /usr/share/doc/arping/example you have also a network/ip-up.d script that uses arping to check +for IP duplicates after bringing up the interface. If the IP we're bringing +up is already taken, this brings the interface down. +If you want this check: + +cp /usr/share/doc/arping/example/arping.default /etc/default/arping +update-rc.d arping defaults +cp /usr/share/doc/arping/example/arping.if-up /etc/network/if-up.d/arping + +By default it is disabled, edit /etc/default/arping to enable this feature. + + + -- Giuseppe Iuculano Sun, 27 Jul 2008 18:30:00 +0200. --- arping-2.08.orig/debian/control +++ arping-2.08/debian/control @@ -0,0 +1,16 @@ +Source: arping +Section: net +Priority: optional +Maintainer: Giuseppe Iuculano +Build-Depends: debhelper (>= 5), libnet1-dev, libpcap-dev, dpatch +Standards-Version: 3.8.0 +Homepage: http://www.habets.pp.se/synscan/programs.php?prog=arping + +Package: arping +Architecture: any +Depends: ${shlibs:Depends} +Conflicts: iputils-arping, iputils-ping (<< 20001110-6) +Description: sends IP and/or ARP pings (to the MAC address) + The arping utility sends ARP and/or ICMP requests to the specified host + and displays the replies. The host may be specified by its hostname, + its IP address, or its MAC address. --- arping-2.08.orig/debian/copyright +++ arping-2.08/debian/copyright @@ -0,0 +1,35 @@ +This package was debianized by Lenart Janos on +Sun, 27 May 2001 16:46:46 +0200. +Re-debianized by Giuseppe Iuculano on +Sun, 22 Jun 2008 12:10:00 +0200. + +It was downloaded from: + http://www.habets.pp.se/synscan/programs.php?prog=arping + +Upstream Author: Thomas Habets + +Copyright: Copyright © 2000-2008 Thomas Habets + +License: + + 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'. + +The Debian packaging is © 2008, Giuseppe Iuculano and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- arping-2.08.orig/debian/arping.default +++ arping-2.08/debian/arping.default @@ -0,0 +1,8 @@ +# If you want arping to check for IP duplicates after bringing up the interface, +# set IPUP=1, otherwise set IPUP=0 +# 0 = do NOT check for IP duplicates; 1 = check for IP duplicates +IPUP=0 + +# If the IP we're bringing up is already taken, this brings the interface down. +# If you want arping brings the interface down set DOWN=1, otherwise set DOWN=0 +DOWN=0 --- arping-2.08.orig/debian/rules +++ arping-2.08/debian/rules @@ -0,0 +1,59 @@ +#!/usr/bin/make -f +# debian/rules for arping by Lenart Janos. +# Written from scratch. +# Re-written by Giuseppe Iuculano + +include /usr/share/dpatch/dpatch.make + +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_FLAGS += -s +endif + + + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + +build: patch-stamp build-stamp + +build-stamp: configure-stamp + $(MAKE) DESTDIR=$(CURDIR)/debian/arping arping2 + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + $(MAKE) clean + #rm -rf debian/tmp debian/files* debian/substvars + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/arping + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installchangelogs + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch + +.PHONY: build clean binary-indep binary-arch binary install configure --- arping-2.08.orig/debian/watch +++ arping-2.08/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=dversionmangle=s/~// \ + ftp://ftp.habets.pp.se/pub/synscan/arping-(.*)\.tar\.gz --- arping-2.08.orig/debian/compat +++ arping-2.08/debian/compat @@ -0,0 +1 @@ +5 --- arping-2.08.orig/debian/patches/01_fix_makefile.dpatch +++ arping-2.08/debian/patches/01_fix_makefile.dpatch @@ -0,0 +1,32 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_fix_makefile.dpatch by Giuseppe Iuculano +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: fixed some common path problems + +@DPATCH@ +diff -urNad arping-2.07~/Makefile arping-2.07/Makefile +--- arping-2.07~/Makefile 2008-06-22 14:02:01.000000000 +0200 ++++ arping-2.07/Makefile 2008-06-22 16:34:06.000000000 +0200 +@@ -23,8 +23,8 @@ + # explicit pcap include dir is for redhat which is fux0red + CFLAGS=-g -I/usr/local/include -L/usr/local/lib -DFINDIF=$(FINDIF) -DUSE_NETIF=$(USE_NETIF) -DOPENBSD=$(OPENBSD) -DLINUX=$(LINUX) -DSOLARIS=$(SOLARIS) -DFREEBSD=$(FREEBSD) -DMACOSX=$(MACOSX) -I/usr/include/pcap -L/opt/csw/lib -R/opt/csw/lib + +-CFLAGS2=-g -I/usr/local/include -I/usr/local/include/libnet-1.1 -I/usr/include/pcap -I/usr/local/include/libnet11 +-LDFLAGS2=-g -L/usr/local/lib -L/usr/local/lib/libnet-1.1 -L/opt/csw/lib -L/usr/local/lib/libnet11 ++CFLAGS2=-g -I/usr/include -I/usr/include/libnet-1.1 -I/usr/include/pcap -I/usr/include/libnet11 ++LDFLAGS2=-g -L/usr/lib -L/usr/lib/libnet-1.1 -L/usr/lib/libnet11 + + all: message arping2 + +@@ -86,8 +86,8 @@ + $(MAKE) USE_NETIF=0 SOLARIS=1 arping1-make + + install: +- install -c arping /usr/local/bin/arping +- install arping.8 /usr/local/man/man8/arping.8 ++ install -D arping $(DESTDIR)/usr/sbin/arping ++ install -D arping.8 $(DESTDIR)/usr/share/man/man8/arping.8 + + arping.o: arping.c + $(CC) -Wall $(CFLAGS) -c `libnet-config --defines` `libnet-config --cflags` arping.c --- arping-2.08.orig/debian/patches/02_fix_manpage.dpatch +++ arping-2.08/debian/patches/02_fix_manpage.dpatch @@ -0,0 +1,135 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_fix_manpage.dpatch by Giuseppe Iuculano +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: fixed lintian warning manpage-has-errors-from-man, hyphen-used-as-minus-sign + +@DPATCH@ +diff -urNad arping-2.08~/arping.8 arping-2.08/arping.8 +--- arping-2.08~/arping.8 2008-08-11 08:33:31.000000000 +0200 ++++ arping-2.08/arping.8 2008-08-15 22:34:31.000000000 +0200 +@@ -5,7 +5,7 @@ + arping \- sends arp and/or ip pings to a given host + .PP + .SH "SYNOPSIS" +-\fBarping\fP [-abhpqrRd0uv] [-S \fIhost/ip\fP] [-T \fIhost/ip\fP] [-s \fIMAC\fP] [-t \fIMAC\fP] [-c \fIcount\fP] [-i \fIinterface\fP] [ -w \fIus\fP ] <\fIhost\fP | -B> ++\fBarping\fP [\-abhpqrRd0uv] [\-S \fIhost/ip\fP] [\-T \fIhost/ip\fP] [\-s \fIMAC\fP] [\-t \fIMAC\fP] [\-c \fIcount\fP] [\-i \fIinterface\fP] [ \-w \fIus\fP ] <\fIhost\fP | \-B> + .PP + .SH "DESCRIPTION" + The \fIarping\fP utility sends \fBARP\fP and/or \fBICMP\fP requests to the specified \fIhost\fP and displays the replies\&. The \fIhost\fP may be specified by its \fBhostname\fP, its \fBIP\fP address, or its \fBMAC\fP address\&. +@@ -23,9 +23,9 @@ + On an idle system the roundtrip times will be pretty much accurate, but + with more load the timing gets less exact\&. + .PP +-To get more exact timing on a non-idle system, re-nice arping to -15 or so\&. ++To get more exact timing on a non-idle system, re\-nice arping to \-15 or so\&. + .PP +-# nice -n -15 arping foobar ++# nice \-n \-15 arping foobar + .PP + This is not just an issue with arping, it is with normal ping also + (at least it is on my system)\&. But it doesn\&'t show up as much with ping +@@ -39,71 +39,71 @@ + Use this option to ping with source IP address 0\&.0\&.0\&.0\&. Use this + when you haven\&'t configured your interface yet\&. + Note that this may get the MAC-ping unanswered\&. +-This is an alias for -S 0\&.0\&.0\&.0\&. +-.IP "-a" ++This is an alias for \-S 0\&.0\&.0\&.0\&. ++.IP "\-a" + Audible ping\&. +-.IP "-A" ++.IP "\-A" + Only count addresses matching requested address (This *WILL* + break most things you do\&. Only useful if you are arpinging many + hosts at once\&. See arping-scan-net\&.sh for an example)\&. +-.IP "-b" +-Like -0 but source broadcast source address (255\&.255\&.255\&.255)\&. ++.IP "\-b" ++Like \-0 but source broadcast source address (255\&.255\&.255\&.255)\&. + Note that this may get the arping unanswered since it\&'s not normal behavior + for a host\&. +-.IP "-B" ++.IP "\-B" + Use instead of host if you want to address 255\&.255\&.255\&.255\&. +-.IP "-c \fIcount\fP" ++.IP "\-c \fIcount\fP" + Only send \fIcount\fP requests\&. +-.IP "-d" ++.IP "\-d" + Find duplicate replies\&. + .IP "-F" + Don\&'t try to be smart about the interface name\&. (even if this +-switch is not given, -i overrides smartness\&. +-.IP "-h" ++switch is not given, \-i overrides smartness\&. ++.IP "\-h" + Displays a help message and exits\&. +-.IP "-i \fIinterface\fP" ++.IP "\-i \fIinterface\fP" + Use the specified interface\&. +-.IP "-q" ++.IP "\-q" + Does not display messages, except error messages\&. +-.IP "-r" ++.IP "\-r" + Raw output: only the MAC/IP address is displayed for each reply\&. +-.IP "-R" +-Raw output: Like -r but shows "the other one", can be combined with +--r\&. +-.IP "-s \fIMAC\fP" +-Set source MAC address\&. You may need to use -p with this\&. +-.IP "-S \fIIP\fP" +-Like -b and -0 but with set source address\&. ++.IP "\-R" ++Raw output: Like \-r but shows "the other one", can be combined with ++\-r\&. ++.IP "\-s \fIMAC\fP" ++Set source MAC address\&. You may need to use \-p with this\&. ++.IP "\-S \fIIP\fP" ++Like \-b and \-0 but with set source address\&. + Note that this may get the arping unanswered if the target does not have + routing to the IP\&. If you don\&'t own the IP you are using, you may need to turn +-on promiscious mode on the interface (with -p)\&. With this switch you can find ++on promiscious mode on the interface (with \-p)\&. With this switch you can find + out what IP-address a host has without taking an IP-address yourself\&. +-.IP "-t \fIMAC\fP" ++.IP "\-t \fIMAC\fP" + Set target MAC address to use when pinging IP address\&. +-.IP "-T \fIIP\fP" +-Use -T as target address when pinging MACs that won\&'t ++.IP "\-T \fIIP\fP" ++Use \-T as target address when pinging MACs that won\&'t + respond to a broadcast ping but perhaps to a directed broadcast\&. + .IP +-\fIExample\fP: To check the address of MAC-A, use knowledge of MAC-B and IP-B\&. ++\fIExample\fP: To check the address of MAC-A, use knowledge of MAC-B and IP-B\&. + .IP +-$ arping -S -s -p +-.IP "-p" ++$ arping \-S \-s \-p ++.IP "\-p" + Turn on promiscious mode on interface, use this if you don\&'t + "own" the MAC address you are using\&. +-.IP "-u" ++.IP "\-u" + Show index=received/sent instead of just index=received when + pinging MACs\&. +-.IP "-v" ++.IP "\-v" + Verbose output\&. Use twice for more messages\&. +-.IP "-w" ++.IP "\-w" + (arping 2\&.x only) Time to wait between pings, in microseconds\&. + + .PP + .SH "BUGS" + + .PP +-You have to use -B instead of arpinging 255\&.255\&.255\&.255, and -b +-instead of -S 255\&.255\&.255\&.255\&. This is libnets fault\&. ++You have to use \-B instead of arpinging 255\&.255\&.255\&.255, and \-b ++instead of \-S 255\&.255\&.255\&.255\&. This is libnets fault\&. + .PP + .SH "SEE ALSO" + --- arping-2.08.orig/debian/patches/00list +++ arping-2.08/debian/patches/00list @@ -0,0 +1,2 @@ +01_fix_makefile.dpatch +02_fix_manpage.dpatch