2007-01-15 23:17:50 +00:00
|
|
|
#
|
2012-02-18 01:51:40 +00:00
|
|
|
# spec file for package iputils
|
2007-01-15 23:17:50 +00:00
|
|
|
#
|
2015-04-21 09:53:13 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:17:50 +00:00
|
|
|
#
|
2008-09-05 00:54:56 +00: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-15 23:17:50 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-09-05 00:54:56 +00:00
|
|
|
|
2007-01-15 23:17:50 +00:00
|
|
|
Name: iputils
|
2012-02-18 01:51:40 +00:00
|
|
|
BuildRequires: docbook_3
|
|
|
|
BuildRequires: iso_ent
|
2014-01-25 14:10:50 +00:00
|
|
|
BuildRequires: libcap-devel
|
2012-02-18 01:51:40 +00:00
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: opensp
|
|
|
|
BuildRequires: perl-SGMLS
|
2010-11-04 15:51:08 +00:00
|
|
|
Summary: IPv4 and IPv6 Networking Utilities
|
2013-03-02 12:47:47 +00:00
|
|
|
License: BSD-3-Clause and GPL-2.0+
|
2007-01-15 23:17:50 +00:00
|
|
|
Group: Productivity/Networking/Other
|
2014-01-25 14:10:50 +00:00
|
|
|
Version: s20121221
|
2012-02-18 01:51:40 +00:00
|
|
|
Release: 0
|
2010-07-14 12:07:32 +00:00
|
|
|
Url: http://www.skbuff.net/iputils
|
2010-11-04 15:51:08 +00:00
|
|
|
Source: http://www.skbuff.net/iputils/iputils-%{version}.tar.bz2
|
|
|
|
# XXX: from linux/Documentation/networking/ifenslave.c
|
|
|
|
Source1: ifenslave.c
|
|
|
|
Patch2: iputils-traceroute6-stdint.diff
|
|
|
|
Patch3: iputils-ifenslave.diff
|
2013-07-23 09:05:43 +00:00
|
|
|
Patch8: iputils-s20101006-sec-ping-unblock.diff
|
2013-07-23 09:17:26 +00:00
|
|
|
Patch9: iputils-s20101006-ping-interrupt.diff
|
2015-04-21 09:53:13 +00:00
|
|
|
# PATCH-FIX-UPSTREAM iputils-remove-bogus-check-required-for-2.4.9-kernels.patch tiwai@suse.de - boo#927831
|
|
|
|
Patch10: iputils-remove-bogus-check-required-for-2.4.9-kernels.patch
|
2007-01-15 23:17:50 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-11-04 15:51:08 +00:00
|
|
|
PreReq: permissions
|
2007-01-15 23:17:50 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains some small network tools for IPv4 and IPv6 like
|
|
|
|
rdisc, ping6, traceroute6, tracepath, and tracepath6.
|
|
|
|
|
|
|
|
%prep
|
2010-11-04 15:51:08 +00:00
|
|
|
%setup -q
|
|
|
|
cp -a %SOURCE1 .
|
2014-01-25 14:10:50 +00:00
|
|
|
%patch2 -p1
|
2010-07-14 12:07:32 +00:00
|
|
|
%patch3
|
2014-01-25 14:10:50 +00:00
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
2015-04-21 09:53:13 +00:00
|
|
|
%patch10 -p1
|
2007-01-15 23:17:50 +00:00
|
|
|
|
|
|
|
%build
|
2010-11-04 15:51:08 +00:00
|
|
|
make %{?_smp_mflags} KERNEL_INCLUDE=$PWD \
|
|
|
|
CCOPT='%optflags -fno-strict-aliasing -fpie -D_GNU_SOURCE' \
|
2013-03-08 21:11:00 +00:00
|
|
|
LDLIBS='-Wl,-z,relro,-z,now -pie -lcap -lresolv' \
|
2014-01-25 14:10:50 +00:00
|
|
|
CAPABILITIES=1 LDFLAG_GNUTLS='-lcrypto -lssl'
|
2007-01-15 23:17:50 +00:00
|
|
|
gcc $RPM_OPT_FLAGS -o ifenslave ifenslave.c
|
|
|
|
|
2010-07-14 12:07:32 +00:00
|
|
|
make man
|
|
|
|
|
2007-01-15 23:17:50 +00:00
|
|
|
%install
|
2012-02-18 01:51:40 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%_sbindir
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%_bindir
|
|
|
|
install arping $RPM_BUILD_ROOT/%{_sbindir}
|
|
|
|
install ifenslave $RPM_BUILD_ROOT/%{_sbindir}
|
|
|
|
install clockdiff $RPM_BUILD_ROOT/%{_sbindir}
|
|
|
|
install rdisc $RPM_BUILD_ROOT/%{_sbindir}/in.rdisc
|
|
|
|
install tracepath $RPM_BUILD_ROOT/%{_sbindir}
|
|
|
|
install tracepath6 $RPM_BUILD_ROOT/%{_sbindir}
|
|
|
|
install ping $RPM_BUILD_ROOT/%{_bindir}
|
|
|
|
install ping6 $RPM_BUILD_ROOT/%{_bindir}
|
|
|
|
install ipg $RPM_BUILD_ROOT/%{_bindir}
|
|
|
|
#UsrMerge
|
2007-01-15 23:17:50 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/{bin,sbin}
|
2012-02-18 01:51:40 +00:00
|
|
|
ln -sf %{_sbindir}/arping $RPM_BUILD_ROOT/sbin
|
|
|
|
ln -sf %{_sbindir}/ifenslave $RPM_BUILD_ROOT/sbin
|
|
|
|
ln -sf %{_sbindir}/clockdiff $RPM_BUILD_ROOT/sbin
|
|
|
|
ln -sf %{_sbindir}/in.rdisc $RPM_BUILD_ROOT/sbin
|
|
|
|
ln -sf %{_sbindir}/tracepath $RPM_BUILD_ROOT/sbin
|
|
|
|
ln -sf %{_sbindir}/tracepath6 $RPM_BUILD_ROOT/sbin
|
|
|
|
ln -sf %{_bindir}/ping $RPM_BUILD_ROOT/bin
|
|
|
|
ln -sf %{_bindir}/ping6 $RPM_BUILD_ROOT/bin
|
|
|
|
ln -sf %{_bindir}/ipg $RPM_BUILD_ROOT/bin
|
|
|
|
#EndUsrMerge
|
2007-01-15 23:17:50 +00:00
|
|
|
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
|
|
|
|
|
2010-11-04 15:51:08 +00:00
|
|
|
%post
|
2013-11-13 20:41:10 +00:00
|
|
|
%set_permissions %{_bindir}/ping %{_bindir}/ping6
|
2010-11-04 15:51:08 +00:00
|
|
|
|
|
|
|
%verifyscript
|
2013-11-13 20:41:10 +00:00
|
|
|
%verify_permissions %{_bindir}/ping %{_bindir}/ping6
|
2010-11-04 15:51:08 +00:00
|
|
|
|
2007-01-15 23:17:50 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc RELNOTES
|
2012-02-18 01:51:40 +00:00
|
|
|
%{_sbindir}/arping
|
|
|
|
%{_sbindir}/ifenslave
|
|
|
|
%{_sbindir}/clockdiff
|
|
|
|
%verify(not mode caps) %attr(4755,root,root) %{_bindir}/ping
|
|
|
|
%verify(not mode caps) %attr(4755,root,root) %{_bindir}/ping6
|
|
|
|
%{_bindir}/ipg
|
|
|
|
%{_sbindir}/tracepath
|
|
|
|
%{_sbindir}/tracepath6
|
|
|
|
%{_sbindir}/in.rdisc
|
|
|
|
#UsrMerge
|
|
|
|
/bin/*
|
|
|
|
/sbin/*
|
|
|
|
#EndUsrMerge
|
2007-01-15 23:17:50 +00:00
|
|
|
%attr(644,root,root) %_mandir/man8/*
|
|
|
|
|
2007-03-06 18:08:15 +00:00
|
|
|
%changelog
|