--- traceroute-2.0.12.orig/debian/rules +++ traceroute-2.0.12/debian/rules @@ -0,0 +1,77 @@ +#!/usr/bin/make -f + +include /usr/share/quilt/quilt.make + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) + CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc LDFLAGS=-L../libsupp/ +else + CROSS= +endif + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + + [ ! -f Makefile ] || $(MAKE) distclean + + dh_clean + +build: build-stamp +build-stamp: patch + dh_testdir + + CFLAGS="$(CFLAGS)" $(MAKE) $(CROSS) + + touch build-stamp + +install: build + dh_testdir + dh_testroot + dh_prep + + install -D -m 0755 traceroute/traceroute debian/traceroute/usr/bin/traceroute.db + install -D -m 0644 traceroute/traceroute.8 debian/traceroute/usr/share/man/man8/traceroute.db.8 + + install -D -m 0644 libsupp/libsupp.a debian/traceroute/usr/lib/libsupp.a + install -D -m 0644 libsupp/clif.h debian/traceroute/usr/include/clif.h + + # Installing symlinks + install -d -m 0755 debian/traceroute/usr/share/man/man8 + + set -e; for ALTERNATIVE in tracert traceroute6; \ + do \ + ln -s traceroute.db debian/traceroute/usr/bin/$$ALTERNATIVE.db; \ + ln -s traceroute.db.8.gz debian/traceroute/usr/share/man/man8/$$ALTERNATIVE.db.8.gz; \ + done + + # Installing wrappers + set -e; for WRAPPER in lft tcptraceroute traceproto traceroute-nanog; \ + do \ + install -D -m 0755 wrappers/$$WRAPPER debian/traceroute/usr/bin/$$WRAPPER.db; \ + ln -s traceroute.db.8.gz debian/traceroute/usr/share/man/man8/$$WRAPPER.db.8.gz; \ + done + +binary: binary-arch + +binary-arch: install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_lintian + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: + +.PHONY: clean build install binary binary-arch binary-indep --- traceroute-2.0.12.orig/debian/compat +++ traceroute-2.0.12/debian/compat @@ -0,0 +1 @@ +7 --- traceroute-2.0.12.orig/debian/control +++ traceroute-2.0.12/debian/control @@ -0,0 +1,23 @@ +Source: traceroute +Section: net +Priority: important +Maintainer: Daniel Baumann +Build-Depends: debhelper (>= 7), quilt +Standards-Version: 3.8.1 +Homepage: http://traceroute.sourceforge.net/ +Vcs-Browser: http://git.debian.net/?p=debian/traceroute.git +Vcs-Git: git://git.debian.net/git/debian/traceroute.git + +Package: traceroute +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Traces the route taken by packets over an IPv4/IPv6 network + The traceroute utility displays the route used by IP packets on their way to a + specified network (or Internet) host. Traceroute displays the IP number and + host name (if possible) of the machines along the route taken by the packets. + Traceroute is used as a network debugging tool. If you're having network + connectivity problems, traceroute will show you where the trouble is coming + from along the route. + . + Install traceroute if you need a tool for diagnosing network connectivity + problems. --- traceroute-2.0.12.orig/debian/traceroute.linitian-overrides +++ traceroute-2.0.12/debian/traceroute.linitian-overrides @@ -0,0 +1,2 @@ +traceroute: command-with-path-in-maintainer-script postinst:8 /usr/bin/traceroute +traceroute: command-with-path-in-maintainer-script postinst:10 /usr/bin/traceroute --- traceroute-2.0.12.orig/debian/changelog +++ traceroute-2.0.12/debian/changelog @@ -0,0 +1,309 @@ +traceroute (2.0.12-2) unstable; urgency=low + + * Using patch-stamp rather than patch in rules file. + * Replacing obsolete dh_clean -k with dh_prep. + * Updating standards to 3.8.1. + * Removing old conflicts. + * Prefixing debhelper files with package name. + * Tidy rules file. + * Using quilt rather than dpatch. + * Adding patch from Mathieu Geli to fix typo in + option_list (Closes: #518535). + * Updating year in copyright. + + -- Daniel Baumann Mon, 6 Apr 2009 13:45:00 +0200 + +traceroute (2.0.12-1) unstable; urgency=low + + * Updating vcs fields in control file. + * Merging upstream version 2.0.12. + * Adding lintian overrides. + + -- Daniel Baumann Wed, 17 Sep 2008 22:38:00 +0200 + +traceroute (2.0.11-2) unstable; urgency=medium + + * Updating upstream URL. + * Updating to standards 3.8.0. + + -- Daniel Baumann Fri, 20 Jun 2008 18:34:00 +0200 + +traceroute (2.0.11-1) unstable; urgency=medium + + * Reordering rules file. + * Rediffing 02-path.dpatch. + * Rediffing 01-skipdirs.dpatch. + * Removing watch file. + * Rewriting copyright file in machine-interpretable format. + * Adding vcs fields in control file. + * Upgrading package to debhelper 7. + * Merging upstream version 2.0.11. + + -- Daniel Baumann Sat, 3 May 2008 09:26:00 +0200 + +traceroute (2.0.10-1) unstable; urgency=low + + * New upstream release. + + -- Daniel Baumann Mon, 21 Apr 2008 12:20:00 +0200 + +traceroute (2.0.9-4) unstable; urgency=low + + * Added versioned conflicts against tcptraceroute. + * Update standards version. + * Removed debian/TODO; all done. + + -- Daniel Baumann Sun, 23 Dec 2007 11:10:00 +0100 + +traceroute (2.0.9-3) unstable; urgency=low + + * Applying patch from Neil Williams to add cross build + support (Closes: #451851). + + -- Daniel Baumann Sun, 18 Nov 2007 22:58:00 +0100 + +traceroute (2.0.9-2) unstable; urgency=medium + + * Adding versioned conflict against traceroute-nanog (Closes: #446305). + + -- Daniel Baumann Thu, 11 Oct 2007 23:49:00 +0200 + +traceroute (2.0.9-1) unstable; urgency=low + + * New upstream release. + + -- Daniel Baumann Tue, 9 Oct 2007 11:20:00 +0200 + +traceroute (2.0.9~rc1-1) unstable; urgency=medium + + * New upstream release. + + -- Daniel Baumann Fri, 7 Sep 2007 23:36:00 +0200 + +traceroute (2.0.8-1) unstable; urgency=low + + * New upstream release. + + -- Daniel Baumann Tue, 4 Sep 2007 21:48:00 +0200 + +traceroute (2.0.8~rc2-1) unstable; urgency=low + + * New upstream release. + * Added forgotten symlinks for traceroute6 (Closes: #439782). + + -- Daniel Baumann Wed, 29 Aug 2007 07:49:00 +0200 + +traceroute (2.0.8~rc1-1) unstable; urgency=low + + * New upstream release. + + -- Daniel Baumann Sat, 25 Aug 2007 08:28:00 +0200 + +traceroute (2.0.7-4) unstable; urgency=low + + * Complying with policy (Closes: #436698, #437815). + + -- Daniel Baumann Tue, 15 Aug 2007 21:51:00 +0200 + +traceroute (2.0.7-3) unstable; urgency=low + + * Added conflicts/replaces to tcptraceroute (Closes: #436648). + * Added conflicts/replaces to iputils-tracepath (Closes: #436698). + + -- Daniel Baumann Wed, 8 Aug 2007 22:09:00 +0200 + +traceroute (2.0.7-2) unstable; urgency=low + + * Including tcptracroute wrapper script. + + -- Daniel Baumann Wed, 8 Aug 2007 02:05:00 +0200 + +traceroute (2.0.7-1) unstable; urgency=low + + * Replacing traceroute from BSD with traceroute from Dmitry K. Butskoy. + * Dropping obsolete alternatives. + + -- Daniel Baumann Wed, 8 Aug 2007 01:16:00 +0200 + +traceroute (1.4a12-21) unstable; urgency=low + + * New maintainer (Closes: #400088). + * Adjusted package to my own packaging style. + * Bumped policy version. + + -- Daniel Baumann Thu, 23 Nov 2006 21:37:00 +0100 + +traceroute (1.4a12-20) unstable; urgency=medium + + * Apply a patch to prevent bus errors on Sparc. (closes: #320120) + + -- Graham Wilson Tue, 30 Aug 2005 15:19:55 +0000 + +traceroute (1.4a12-19) unstable; urgency=low + + * Change from Michael Banck to work on Hurd. (closes: #288104) + * Change autogen.sh script to use latest autoconf. + * Update debhlper compat level to 4. + * Bump standards version. No changes. + + -- Graham Wilson Mon, 11 Jul 2005 00:00:33 +0000 + +traceroute (1.4a12-18) unstable; urgency=medium + + * Fix a size calculation error in findsaddr. (closes: #283591) + + -- Graham Wilson Wed, 01 Dec 2004 01:05:12 +0000 + +traceroute (1.4a12-17) experimental; urgency=low + + * Correctly set SO_DEBUG and SO_DONTROUTE socket options. + (closes: #278425) + + -- Graham Wilson Wed, 03 Nov 2004 03:20:17 +0000 + +traceroute (1.4a12-16) unstable; urgency=low + + * Don't set priority on the binary packge, and set the source package + priority to important. + * Add a watch file for uscan. + * Don't use a full stop in the short description. + + -- Graham Wilson Sun, 25 Jul 2004 18:38:16 +0000 + +traceroute (1.4a12-15) unstable; urgency=low + + * New mainainer. Thanks Herbert. + * Don't build auto* files while building. + + -- Graham Wilson Mon, 24 May 2004 05:12:34 +0000 + +traceroute (1.4a12-14) unstable; urgency=low + + * Fixed priority disparity. + * Removed suggestion of obsolete pchar package (closes: #231165). + * Restored reference to pathchar. + + -- Herbert Xu Sat, 20 Mar 2004 19:37:22 +1100 + +traceroute (1.4a12-13) unstable; urgency=low + + * Fixed rta_len setting. + * Removed build-stamp/install-stamp. + * Fixed UDP checksum when IP options are present (closes: #212663). + * findsaddr-linux: Check pid. + * findsaddr-linux: Handle EINTR for send. + + -- Herbert Xu Sat, 11 Oct 2003 21:44:53 +1000 + +traceroute (1.4a12-12) unstable; urgency=low + + * Use alternatives. + + -- Herbert Xu Sat, 11 Jan 2003 11:30:07 +1100 + +traceroute (1.4a12-11) unstable; urgency=low + + * Use config.* from autotools-dev instead of automake. + * Refer to pchar instead of pathchar (closes: #171727). + * Suggest the pchar package. + + -- Herbert Xu Sun, 5 Jan 2003 08:09:28 +1100 + +traceroute (1.4a12-10) unstable; urgency=low + + * Documented traceroute warning when rtnetlink fails. + * Fixed documentation about the base port (closes: #162484). + + -- Herbert Xu Mon, 21 Oct 2002 21:09:26 +1000 + +traceroute (1.4a12-9) unstable; urgency=low + + * Disable UDP checksum if findsaddr fails. + + -- Herbert Xu Sat, 23 Mar 2002 10:22:01 +1100 + +traceroute (1.4a12-8) unstable; urgency=low + + * Removed dependency on iproute. + + -- Herbert Xu Thu, 21 Mar 2002 21:42:28 +1100 + +traceroute (1.4a12-7) unstable; urgency=low + + * Use netlink directly (closes: #139303, #139124). + * Bind to device when -i is specified. + * Always bind IP address to help routing. + + -- Herbert Xu Thu, 21 Mar 2002 21:11:46 +1100 + +traceroute (1.4a12-6) unstable; urgency=low + + * Moved traceroute to /usr/bin. + * Removed USE_KERNEL_ROUTING_TABLE crap. + * Use ip ro get to get the source address (closes: #105502). + Patches to do this within traceroute are welcome. + + -- Herbert Xu Tue, 19 Mar 2002 22:11:27 +1100 + +traceroute (1.4a12-5) unstable; urgency=low + + * Restrict the -s option to the super-user. + * Updated documentation for the -s option (closes: #105362). + + -- Herbert Xu Mon, 16 Jul 2001 19:28:45 +1000 + +traceroute (1.4a12-4) unstable; urgency=low + + * Updated aclocal.m4 for autoconf 2.50 (closes: #98367). + + -- Herbert Xu Wed, 23 May 2001 18:48:59 +1000 + +traceroute (1.4a12-3) unstable; urgency=low + + * Drop privileges earlier. + * Applied "paranoia" patch from Richard Kettlewell (closes: #85619). + - eliminate unbounded sprintf calls + - eliminate unbounded sscanf calls + - strncpy final-null paranoia + * Set HAVE_RAW_OPTIONS (closes: #78475). + * Added missing option to usage (Neale Banks, closes: #88892). + + -- Herbert Xu Fri, 9 Mar 2001 22:24:11 +1100 + +traceroute (1.4a12-2) unstable; urgency=low + + * Made changes for dpkg-statoverride (closes: #83817). + + -- Herbert Xu Sun, 28 Jan 2001 21:49:35 +1100 + +traceroute (1.4a12-1) unstable; urgency=low + + * New upstream release (closes: #79920, #81395). + * Use struct sockaddr_stroage (closes: #79348). + + -- Herbert Xu Fri, 26 Jan 2001 20:57:21 +1100 + +traceroute (1.4a8-1) unstable; urgency=low + + * New upstream release. + + -- Herbert Xu Sat, 9 Dec 2000 14:18:00 +1100 + +traceroute (1.4a5-3) stable unstable; urgency=low + + * Fixed a bug where free(3) was called on non-malloced memory. + + -- Herbert Xu Thu, 24 Aug 2000 20:44:51 +1000 + +traceroute (1.4a5-2) frozen unstable; urgency=low + + * Use config.* from automake, needed for building traceroute on ARM + (closes: #61267). + + -- Herbert Xu Fri, 31 Mar 2000 07:50:33 +1000 + +traceroute (1.4a5-1) unstable; urgency=low + + * Initial release (closes: #34166). + + -- Herbert Xu Mon, 1 Nov 1999 15:11:06 +1100 --- traceroute-2.0.12.orig/debian/traceroute.postinst +++ traceroute-2.0.12/debian/traceroute.postinst @@ -0,0 +1,35 @@ +#!/bin/sh + +set -e + +case "${1}" in + configure) + update-alternatives --install \ + /usr/bin/traceroute traceroute /usr/bin/traceroute.db 100 \ + --slave /usr/sbin/traceroute traceroute.sbin \ + /usr/bin/traceroute.db \ + --slave /usr/share/man/man8/traceroute.8.gz traceroute.8.gz \ + /usr/share/man/man8/traceroute.db.8.gz + + for ALTERNATIVE in tracert traceroute6 lft tcptraceroute traceproto traceroute-nanog + do + update-alternatives --install \ + /usr/bin/${ALTERNATIVE} ${ALTERNATIVE} /usr/bin/${ALTERNATIVE}.db 100 \ + --slave /usr/share/man/man8/${ALTERNATIVE}.8.gz ${ALTERNATIVE}.8.gz \ + /usr/share/man/man8/${ALTERNATIVE}.db.8.gz + done + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- traceroute-2.0.12.orig/debian/traceroute.prerm +++ traceroute-2.0.12/debian/traceroute.prerm @@ -0,0 +1,27 @@ +#!/bin/sh + +set -e + +case "${1}" in + remove|upgrade|deconfigure) + update-alternatives --remove traceroute /usr/bin/traceroute.db + + for ALTERNATIVE in tracert traceroute6 lft tcptraceroute traceproto traceroute-nanog + do + update-alternatives --remove ${ALTERNATIVE} /usr/bin/${ALTERNATIVE}.db + done + ;; + + failed-upgrade) + + ;; + + *) + echo "prerm called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- traceroute-2.0.12.orig/debian/copyright +++ traceroute-2.0.12/debian/copyright @@ -0,0 +1,42 @@ +Author: Dmitry K. Butskoy +Download: http://traceroute.sourceforge.net/ + +Files: * +Copyright: (C) 2006-2008 Dmitry K. Butskoy +License: GPL-2+ + 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 Street, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. + +Files: debian/* +Copyright (C) 2007-2009 Daniel Baumann +License: GPL-2+ + 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 Street, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. --- traceroute-2.0.12.orig/debian/traceroute.docs +++ traceroute-2.0.12/debian/traceroute.docs @@ -0,0 +1,3 @@ +CREDITS +README +TODO --- traceroute-2.0.12.orig/debian/patches/03-typo.patch +++ traceroute-2.0.12/debian/patches/03-typo.patch @@ -0,0 +1,15 @@ +Author: Mathieu Geli +Description: Fixes typo in option_list (Closes: #518535). + +diff -Naurp traceroute.orig/traceroute/traceroute.c traceroute/traceroute/traceroute.c +--- traceroute.orig/traceroute/traceroute.c 2009-03-15 13:29:26.000000000 +0100 ++++ traceroute/traceroute/traceroute.c 2009-04-06 13:42:40.000000000 +0200 +@@ -428,7 +428,7 @@ static CLIF_option option_list[] = { + CLIF_set_flag, &dontfrag, 0, CLIF_ABBREV }, + { "f", "first", "first_ttl", "Start from the %s hop (instead from 1)", + CLIF_set_uint, &first_hop, 0, 0 }, +- { "g", "gateway", "gate", "Route packets throw the specified gateway " ++ { "g", "gateway", "gate", "Route packets through the specified gateway " + "(maximum " _TEXT(MAX_GATEWAYS_4) " for IPv4 and " + _TEXT(MAX_GATEWAYS_6) " for IPv6)", + add_gateway, 0, 0, CLIF_SEVERAL }, --- traceroute-2.0.12.orig/debian/patches/02-path.patch +++ traceroute-2.0.12/debian/patches/02-path.patch @@ -0,0 +1,44 @@ +Author: Daniel Baumann +Description: Adjust path. + +diff -Naurp traceroute.orig/wrappers/lft traceroute/wrappers/lft +--- traceroute.orig/wrappers/lft 2008-04-21 18:54:41.000000000 +0200 ++++ traceroute/wrappers/lft 2008-05-03 09:18:47.000000000 +0200 +@@ -113,5 +113,5 @@ opts="$opts -w $sec.${timeout#$sec}" + + opts="$method $opts" + +-exec traceroute $opts $host $length ++exec /usr/bin/traceroute.db $opts $host $length + +diff -Naurp traceroute.orig/wrappers/tcptraceroute traceroute/wrappers/tcptraceroute +--- traceroute.orig/wrappers/tcptraceroute 2008-04-21 18:54:46.000000000 +0200 ++++ traceroute/wrappers/tcptraceroute 2008-05-03 09:18:47.000000000 +0200 +@@ -68,5 +68,5 @@ shift + shift + } + +-exec traceroute $opts $host $length ++exec /usr/bin/traceroute.db $opts $host $length + +diff -Naurp traceroute.orig/wrappers/traceproto traceroute/wrappers/traceproto +--- traceroute.orig/wrappers/traceproto 2008-04-21 18:55:06.000000000 +0200 ++++ traceroute/wrappers/traceproto 2008-05-03 09:18:47.000000000 +0200 +@@ -122,6 +122,6 @@ opts="$opts -z $sendwait" + while [ "$cont" -gt 0 ] + do + cont=$(($cont - 1)) +- traceroute $opts $host $length ++ /usr/bin/traceroute.db $opts $host $length + done + +diff -Naurp traceroute.orig/wrappers/traceroute-nanog traceroute/wrappers/traceroute-nanog +--- traceroute.orig/wrappers/traceroute-nanog 2008-04-21 18:55:17.000000000 +0200 ++++ traceroute/wrappers/traceroute-nanog 2008-05-03 09:18:47.000000000 +0200 +@@ -71,5 +71,5 @@ done + + [ -z "$spray" ] && opts="$opts -N 1" + +-exec traceroute $opts $1 $2 ++exec /usr/bin/traceroute.db $opts $1 $2 + --- traceroute-2.0.12.orig/debian/patches/01-skipdirs.patch +++ traceroute-2.0.12/debian/patches/01-skipdirs.patch @@ -0,0 +1,15 @@ +Author: Daniel Baumann +Description: Exclude debian directory from subdirs. + +diff -Naurp traceroute.orig/Make.rules traceroute/Make.rules +--- traceroute.orig/Make.rules 2008-04-18 13:22:05.000000000 +0200 ++++ traceroute/Make.rules 2008-05-03 09:18:15.000000000 +0200 +@@ -72,7 +72,7 @@ DESTDIR = + + + # layout stuff +-SKIPDIRS = tmp% ++SKIPDIRS = tmp% debian + INCLUDEDIRS = include% + LIBDIRS = lib% + MODDIRS = mod% --- traceroute-2.0.12.orig/debian/patches/series +++ traceroute-2.0.12/debian/patches/series @@ -0,0 +1,3 @@ +01-skipdirs.patch +02-path.patch +03-typo.patch