forked from pool/traceroute
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
This commit is contained in:
commit
c97166874c
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
traceroute-2.0.19.tar.gz
Normal file
3
traceroute-2.0.19.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:082be58ec3e6fe9717a52160150e2f6d52fa90f8ecb82abf3b363c8150b0607e
|
||||||
|
size 69614
|
97
traceroute-autotools.patch
Normal file
97
traceroute-autotools.patch
Normal file
@ -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 <clif.h>
|
||||||
|
-#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;
|
8
traceroute.changes
Normal file
8
traceroute.changes
Normal file
@ -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.
|
||||||
|
|
54
traceroute.spec
Normal file
54
traceroute.spec
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user