2007-01-16 00:17:50 +01:00
|
|
|
#
|
|
|
|
# spec file for package iputils (Version ss021109)
|
|
|
|
#
|
2010-01-12 09:24:31 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:17:50 +01:00
|
|
|
#
|
2008-09-05 02:54:56 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:17:50 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-09-05 02:54:56 +02:00
|
|
|
|
2007-01-16 00:17:50 +01:00
|
|
|
Name: iputils
|
2010-06-04 15:02:56 +02:00
|
|
|
BuildRequires: sysfsutils
|
2007-01-16 00:17:50 +01:00
|
|
|
Summary: IPv4and IPv6 Networking Utilities
|
|
|
|
Version: ss021109
|
2010-06-04 15:02:56 +02:00
|
|
|
Release: 295
|
2010-01-12 09:24:31 +01:00
|
|
|
License: BSD3c ; GPLv2+
|
2007-01-16 00:17:50 +01:00
|
|
|
Group: Productivity/Networking/Other
|
|
|
|
Provides: nkitb
|
|
|
|
Obsoletes: nkitb
|
2007-12-12 18:12:16 +01:00
|
|
|
Url: ftp://ftp.tux.org/people/alexey-kuznetsov/ip-routing
|
2007-01-16 00:17:50 +01:00
|
|
|
Source: iputils-%{version}-try.tar.bz2
|
2010-04-25 18:41:34 +02:00
|
|
|
Source1: iputils-ifenslave-1.1.0.tar.bz2
|
2007-01-16 00:17:50 +01:00
|
|
|
Patch: %name-%version.diff
|
|
|
|
Patch1: %name-%version-rdisc-server.patch
|
|
|
|
Patch2: %name-%version-sec-traceroute6-setuid-retvalcheck.diff
|
|
|
|
Patch3: %name-%version-sec-ping6-setuid-retvalcheck.diff
|
|
|
|
Patch4: %name-%version-sec-ping-setuid-retvalcheck.diff
|
|
|
|
Patch5: %name-%version-ping-R-option-doc.diff
|
|
|
|
Patch6: %name-headers.patch
|
|
|
|
Patch7: %name-%version-pingnamelookuponce.diff
|
|
|
|
Patch8: %name-ss021109-traceroute6-stdint.diff
|
|
|
|
Patch9: %name-ADDLIB.diff
|
|
|
|
Patch10: %name-ss021109-locallinksyntax.diff
|
|
|
|
Patch11: iputils-ss021109-ping6kernel261x.diff
|
|
|
|
Patch12: %name-ifenslave.patch
|
|
|
|
Patch13: %name-HZ.patch
|
|
|
|
Patch14: %name-%version-ping6_getaddrinfo.patch
|
|
|
|
Patch15: %name-%version-ping_common.dif
|
2007-03-06 19:08:15 +01:00
|
|
|
Patch16: %name-ss021109-traceroute6-ttab.diff
|
2007-12-12 18:12:16 +01:00
|
|
|
Patch17: %name-%version-open_max.diff
|
2008-09-05 02:54:56 +02:00
|
|
|
Patch18: %name-%version-ping-interrupt.diff
|
2010-07-13 17:06:03 +02:00
|
|
|
Patch19: %name-%version-ping-break.diff
|
2007-01-16 00:17:50 +01:00
|
|
|
Prefix: %_prefix
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains some small network tools for IPv4 and IPv6 like
|
|
|
|
rdisc, ping6, traceroute6, tracepath, and tracepath6.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
|
|
|
|
|
|
|
|
%prep
|
2010-04-25 18:41:34 +02:00
|
|
|
%setup -q -n %name -b1
|
2007-01-16 00:17:50 +01:00
|
|
|
%patch -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8
|
|
|
|
%patch9
|
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%patch12
|
|
|
|
%patch13
|
|
|
|
%patch14
|
|
|
|
%patch15
|
2007-03-06 19:08:15 +01:00
|
|
|
%patch16
|
2007-12-12 18:12:16 +01:00
|
|
|
%patch17 -p1
|
2008-09-05 02:54:56 +02:00
|
|
|
%patch18
|
2010-06-04 09:28:33 +02:00
|
|
|
%patch19
|
2007-01-16 00:17:50 +01:00
|
|
|
mkdir linux
|
|
|
|
touch linux/autoconf.h
|
|
|
|
|
|
|
|
%build
|
2010-01-12 09:24:31 +01:00
|
|
|
make %{?_smp_mflags} KERNEL_INCLUDE=$PWD DEFINES='%optflags -fpie' ADDLIB='-pie'
|
2007-01-16 00:17:50 +01:00
|
|
|
gcc $RPM_OPT_FLAGS -o ifenslave ifenslave.c
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%_sbindir
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/{bin,sbin}
|
|
|
|
install arping $RPM_BUILD_ROOT/sbin/
|
|
|
|
install ifenslave $RPM_BUILD_ROOT/sbin/
|
|
|
|
install clockdiff $RPM_BUILD_ROOT/sbin/
|
|
|
|
install rdisc $RPM_BUILD_ROOT/sbin/in.rdisc
|
|
|
|
install ping $RPM_BUILD_ROOT/bin
|
|
|
|
install ping6 $RPM_BUILD_ROOT/bin
|
|
|
|
install ipg $RPM_BUILD_ROOT/bin
|
|
|
|
install tracepath $RPM_BUILD_ROOT/sbin
|
|
|
|
install tracepath6 $RPM_BUILD_ROOT/sbin
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%_mandir/man8
|
|
|
|
install -m 644 doc/arping.8 $RPM_BUILD_ROOT%_mandir/man8/
|
|
|
|
install -m 644 doc/clockdiff.8 $RPM_BUILD_ROOT%_mandir/man8/
|
|
|
|
install -m 644 doc/tracepath.8 $RPM_BUILD_ROOT%_mandir/man8/
|
|
|
|
install -m 644 doc/ping.8 $RPM_BUILD_ROOT%_mandir/man8/
|
|
|
|
install -m 644 doc/ping.8 $RPM_BUILD_ROOT%_mandir/man8/ping6.8
|
|
|
|
install -m 644 doc/pg3.8 $RPM_BUILD_ROOT%_mandir/man8/
|
|
|
|
install -m 644 doc/rdisc.8 $RPM_BUILD_ROOT%_mandir/man8/
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc RELNOTES
|
|
|
|
/sbin/arping
|
|
|
|
/sbin/ifenslave
|
|
|
|
/sbin/clockdiff
|
|
|
|
%attr(4755,root,root) /bin/ping
|
|
|
|
%attr(4755,root,root) /bin/ping6
|
|
|
|
/bin/ipg
|
|
|
|
/sbin/tracepath
|
|
|
|
/sbin/tracepath6
|
|
|
|
/sbin/in.rdisc
|
|
|
|
%attr(644,root,root) %_mandir/man8/*
|
|
|
|
|
2007-03-06 19:08:15 +01:00
|
|
|
%changelog
|