--- arping-2.07~pre1.orig/debian/examples +++ arping-2.07~pre1/debian/examples @@ -0,0 +1 @@ +arping-scan-net.sh --- arping-2.07~pre1.orig/debian/compat +++ arping-2.07~pre1/debian/compat @@ -0,0 +1 @@ +5 --- arping-2.07~pre1.orig/debian/docs +++ arping-2.07~pre1/debian/docs @@ -0,0 +1 @@ +README --- arping-2.07~pre1.orig/debian/control +++ arping-2.07~pre1/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.07~pre1.orig/debian/README.Debian +++ arping-2.07~pre1/debian/README.Debian @@ -0,0 +1,12 @@ +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. + + -- Giuseppe Iuculano Sun, 22 Jun 2008 18:30:00 +0200. --- arping-2.07~pre1.orig/debian/rules +++ arping-2.07~pre1/debian/rules @@ -0,0 +1,62 @@ +#!/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 + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +endif +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.07~pre1.orig/debian/copyright +++ arping-2.07~pre1/debian/copyright @@ -0,0 +1,34 @@ +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 ftp://ftp.habets.pp.se/pub/synscan/ + +Upstream Author: Thomas Habets + +Copyright: Copyright © 2000-2003 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.07~pre1.orig/debian/changelog +++ arping-2.07~pre1/debian/changelog @@ -0,0 +1,160 @@ +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.07~pre1.orig/debian/watch +++ arping-2.07~pre1/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=dversionmangle=s/~// \ + ftp://ftp.habets.pp.se/pub/synscan/arping-(.*)\.tar\.gz --- arping-2.07~pre1.orig/debian/patches/01_fix_makefile.dpatch +++ arping-2.07~pre1/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.07~pre1.orig/debian/patches/00list +++ arping-2.07~pre1/debian/patches/00list @@ -0,0 +1,2 @@ +01_fix_makefile.dpatch +02_fix_manpage.dpatch --- arping-2.07~pre1.orig/debian/patches/02_fix_manpage.dpatch +++ arping-2.07~pre1/debian/patches/02_fix_manpage.dpatch @@ -0,0 +1,103 @@ +#! /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.07~/arping.8 arping-2.07/arping.8 +--- arping-2.07~/arping.8 2008-06-22 14:02:01.000000000 +0200 ++++ arping-2.07/arping.8 2008-06-22 16:21:57.000000000 +0200 +@@ -4,7 +4,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\&. +@@ -22,9 +22,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 +@@ -38,7 +38,7 @@ + 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\&. ++This is an alias for \-S 0\&.0\&.0\&.0\&. + .IP "-a" + Audible ping\&. + .IP "-A" +@@ -46,7 +46,7 @@ + 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)\&. ++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" +@@ -57,7 +57,7 @@ + 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\&. ++switch is not given, \-i overrides smartness\&. + .IP "-h" + Displays a help message and exits\&. + .IP "-i \fIinterface\fP" +@@ -67,25 +67,25 @@ + .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\&. ++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\&. ++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\&. ++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" + 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 ++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 ++$ 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\&. +@@ -99,8 +99,8 @@ + .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" + .PP