debian/0000755000000000000000000000000011736025451007172 5ustar debian/rules0000755000000000000000000000231111736025451010247 0ustar #!/usr/bin/make -f # debian/rules for arping by Lenart Janos. # Written from scratch. # Re-written by Giuseppe Iuculano ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_FLAGS += -s endif export DEB_BUILD_HARDENING=1 configure: configure-stamp configure-stamp: cp -f /usr/share/misc/config.sub config.sub cp -f /usr/share/misc/config.guess config.guess dh_auto_configure dh_testdir touch configure-stamp build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: configure-stamp $(MAKE) DESTDIR=$(CURDIR)/debian/arping touch $@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp [ ! -f Makefile ] || $(MAKE) distclean rm -f config.status config.sub config.guess config.log dh_clean install: build dh_testdir dh_testroot dh_prep 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 debian/watch0000644000000000000000000000014211736025451010220 0ustar version=3 opts=dversionmangle=s/~// \ http://www.habets.pp.se/synscan/files/arping-(.*)\.tar\.gz debian/README.Debian0000644000000000000000000000167311736025451011242 0ustar 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. debian/docs0000644000000000000000000000000711736025451010042 0ustar README debian/changelog0000644000000000000000000002034411736025451011047 0ustar arping (2.11-1) unstable; urgency=low * [8b5403e] Imported Upstream version 2.11 * [2331064] Removed patches applied upstream * [c8843de] use build-arch and build-indep * [214c6ca] Bump to standards-version 3.9.3, no changes needed * [fe03b17] Use hardening-wrapper -- Giuseppe Iuculano Sun, 01 Apr 2012 12:16:23 +0200 arping (2.09-2) unstable; urgency=low * [084a112] Fix a FTBFS on kfreebsd. (Closes: #577002) - thanks to Petr Salinger -- Giuseppe Iuculano Fri, 09 Apr 2010 17:47:14 +0200 arping (2.09-1) unstable; urgency=low * [ae34a1a] Switch to quilt * [6fefc48] Updated my email address * [a4d6a0d] Bump debhelper * [1280d1e] Bump to Standards-Version 3.8.4 * [ee5d7be] Updated watch file * [3f22b39] Imported Upstream version 2.09 * [2cab0a0] Switch to dpkg-source 3.0 (quilt) format * [44915d7] Added autotools-dev in BUild-depends and copy config.sub/guess at build time * [cd3e6d3] Remove config.guess and config.sub at build time * [183451b] arping-scan-net.sh is now in extra/ * [f432d2a] removed 01_fix_makefile.patch * [951cfa4] Added ${misc:Depends} in Depends and removed quilt * [eb272a9] dh-clean-k-is-deprecated, use dh_prep * [c45d3b6] Refreshed 02_fix_manpage.patch * [ba77b60] Added VCS control fields -- Giuseppe Iuculano Sun, 04 Apr 2010 11:36:04 +0200 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 debian/control0000644000000000000000000000141211736025451010573 0ustar Source: arping Section: net Priority: optional Maintainer: Giuseppe Iuculano Build-Depends: debhelper (>= 7), libnet1-dev, libpcap-dev, autotools-dev, hardening-wrapper Standards-Version: 3.9.3 Homepage: http://www.habets.pp.se/synscan/programs.php?prog=arping Vcs-git: git://git.debian.org/users/iuculano/arping.git Vcs-Browser: http://git.debian.org/?p=users/iuculano/arping.git Package: arping Architecture: any Depends: ${shlibs:Depends}, ${misc: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. debian/compat0000644000000000000000000000000211736025451010370 0ustar 7 debian/examples0000644000000000000000000000010311736025451010725 0ustar extra/arping-scan-net.sh debian/arping.default debian/arping.if-up debian/patches/0000755000000000000000000000000011736025451010621 5ustar debian/patches/series0000644000000000000000000000000011736025451012024 0ustar debian/arping.default0000644000000000000000000000054511736025451012024 0ustar # 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 debian/copyright0000644000000000000000000000260411736025451011127 0ustar 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'. debian/source/0000755000000000000000000000000011736025451010472 5ustar debian/source/format0000644000000000000000000000001411736025451011700 0ustar 3.0 (quilt) debian/arping.if-up0000644000000000000000000000114211736025451011412 0ustar #!/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 ]