commit c97166874cb2f2dbe819694d37f0c7cba092e1c60c6805b319f7b695c3ab47a3 Author: Cristian Rodríguez Date: Sun Jan 27 19:24:57 2013 +0000 Accepting request 150045 from home:elvigia OBS-URL: https://build.opensuse.org/request/show/150045 OBS-URL: https://build.opensuse.org/package/show/network:utilities/traceroute?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/traceroute-2.0.19.tar.gz b/traceroute-2.0.19.tar.gz new file mode 100644 index 0000000..5267fca --- /dev/null +++ b/traceroute-2.0.19.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:082be58ec3e6fe9717a52160150e2f6d52fa90f8ecb82abf3b363c8150b0607e +size 69614 diff --git a/traceroute-autotools.patch b/traceroute-autotools.patch new file mode 100644 index 0000000..eeccd09 --- /dev/null +++ b/traceroute-autotools.patch @@ -0,0 +1,97 @@ +--- /dev/null ++++ Makefile.am +@@ -0,0 +1 @@ ++SUBDIRS = libsupp traceroute +\ No newline at end of file +--- /dev/null ++++ configure.ac +@@ -0,0 +1,40 @@ ++# -*- Autoconf -*- ++# Process this file with autoconf to produce a configure script. ++ ++AC_PREREQ(2.60) ++AC_INIT([traceroute], ++ [2.0.19], ++ [traceroute-devel@lists.sourceforge.net], ++ [traceroute], ++ [http://traceroute.sourceforge.net/]) ++AC_CONFIG_SRCDIR([traceroute/traceroute.h]) ++AC_CONFIG_HEADERS([config.h]) ++AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects]) ++ ++# Checks for programs. ++AC_PROG_AWK ++AC_PROG_CC_STDC ++AC_USE_SYSTEM_EXTENSIONS ++AC_SYS_LARGEFILE ++AC_PROG_INSTALL ++AC_PROG_LN_S ++LT_INIT([disable-static pic-only]) ++ ++# Checks for libraries. ++ ++# Checks for header files. ++AC_CHECK_HEADERS([fcntl.h locale.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h]) ++ ++# Checks for typedefs, structures, and compiler characteristics. ++AC_TYPE_SIZE_T ++ ++# Checks for library functions. ++AC_FUNC_ALLOCA ++AC_FUNC_ERROR_AT_LINE ++AC_FUNC_MALLOC ++AC_FUNC_REALLOC ++AC_FUNC_STRTOD ++AC_CHECK_FUNCS([dup2 gettimeofday memset setlocale socket strcasecmp strchr strdup strrchr strstr strtol strtoul uname]) ++ ++AC_CONFIG_FILES([Makefile libsupp/Makefile traceroute/Makefile]) ++AC_OUTPUT +--- /dev/null ++++ libsupp/Makefile.am +@@ -0,0 +1,5 @@ ++AM_CPPFLAGS = -include $(top_builddir)/config.h ++ ++noinst_LTLIBRARIES = libsupp.la ++ ++libsupp_la_SOURCES = clif.c clif.h +--- /dev/null ++++ traceroute/Makefile.am +@@ -0,0 +1,18 @@ ++ ++ ++ ++AM_CPPFLAGS = -include $(top_builddir)/config.h ++ ++sbin_PROGRAMS = traceroute ++ ++man8_MANS = traceroute.8 ++ ++traceroute_CFLAGS = $(AM_CFLAGS) -fpie ++traceroute_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/libsupp ++traceroute_SOURCES = as_lookups.c extension.c mod-icmp.c mod-tcp.c \ ++ mod-udp.c poll.c time.c traceroute.c \ ++ csum.c flowlabel.h mod-tcpconn.c traceroute.h \ ++ mod-dccp.c mod-raw.c module.c random.c ++ ++traceroute_LDFLAGS = -pie ++traceroute_LDADD = $(top_builddir)/libsupp/libsupp.la +\ No newline at end of file +--- traceroute/traceroute.c.orig ++++ traceroute/traceroute.c +@@ -28,7 +28,6 @@ + #include "flowlabel.h" + + #include +-#include "version.h" + #include "traceroute.h" + + +@@ -72,7 +71,7 @@ + + + static char version_string[] = "Modern traceroute for Linux, " +- "version " _TEXT(VERSION) ", " __DATE__ ++ "version " _TEXT(VERSION) + "\nCopyright (c) 2008 Dmitry Butskoy, " + " License: GPL v2 or any later"; + static int debug = 0; diff --git a/traceroute.changes b/traceroute.changes new file mode 100644 index 0000000..f215577 --- /dev/null +++ b/traceroute.changes @@ -0,0 +1,8 @@ +------------------------------------------------------------------- +Sun Jan 27 19:20:20 UTC 2013 - crrodriguez@opensuse.org + +- Initial version. obsoletes the version found in package net-tools + +- This is the implementation used by the rest of the planet, not + the one found in SUSE but Fedora, RHEL, Debian, Mandriva, Gentoo, Ubuntu. + diff --git a/traceroute.spec b/traceroute.spec new file mode 100644 index 0000000..428a4d7 --- /dev/null +++ b/traceroute.spec @@ -0,0 +1,54 @@ +# +# spec file for package +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: traceroute +Version: 2.0.19 +Release: 0 +License: GPL-2.0+ +Summary: A new modern implementation of traceroute(8) utility for Linux systems +Url: http://traceroute.sourceforge.net/ +Group: Productivity/Networking/Other +Source: %{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Patch: traceroute-autotools.patch +BuildRequires: libtool +Provides: net-tools:%{_sbindir}/%{name} + +%description +Traceroute tracks the route packets taken from an IP network on their way to a given host. +It utilizes the IP protocol's time to live (TTL) field and attempts to elicit an ICMP TIME_EXCEEDED +response from each gateway along the path to the host. + +%prep +%setup -q +%patch + +%build +autoreconf -fiv +%configure +make %{?_smp_mflags} + +%install +%make_install + +%files +%defattr(-,root,root) +%doc ChangeLog README COPYING +%{_sbindir}/%{name} +%{_mandir}/man8/traceroute.8* + +%changelog