2007-01-16 00:17:50 +01:00
|
|
|
#
|
2012-02-18 02:51:40 +01:00
|
|
|
# spec file for package iputils
|
2007-01-16 00:17:50 +01:00
|
|
|
#
|
2016-05-23 17:21:37 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
2008-09-05 02:54:56 +02:00
|
|
|
|
2007-01-16 00:17:50 +01:00
|
|
|
Name: iputils
|
2012-02-18 02:51:40 +01:00
|
|
|
BuildRequires: docbook_3
|
|
|
|
BuildRequires: iso_ent
|
2014-01-25 15:10:50 +01:00
|
|
|
BuildRequires: libcap-devel
|
2012-02-18 02:51:40 +01:00
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: opensp
|
|
|
|
BuildRequires: perl-SGMLS
|
2016-05-23 17:21:37 +02:00
|
|
|
BuildRequires: pkgconfig(libidn)
|
|
|
|
# For Makefile modifications
|
|
|
|
BuildRequires: sed
|
2010-11-04 16:51:08 +01:00
|
|
|
Summary: IPv4 and IPv6 Networking Utilities
|
2013-03-02 13:47:47 +01:00
|
|
|
License: BSD-3-Clause and GPL-2.0+
|
2007-01-16 00:17:50 +01:00
|
|
|
Group: Productivity/Networking/Other
|
2016-05-23 17:21:37 +02:00
|
|
|
Version: s20160308
|
2012-02-18 02:51:40 +01:00
|
|
|
Release: 0
|
2015-12-03 02:18:20 +01:00
|
|
|
Url: https://github.com/iputils/iputils
|
|
|
|
Source: https://github.com/iputils/iputils/archive/%{version}.tar.gz
|
|
|
|
Patch8: iputils-sec-ping-unblock.diff
|
|
|
|
Patch9: iputils-ping-interrupt.diff
|
2015-04-21 11:53:13 +02: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-16 00:17:50 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-11-04 16:51:08 +01:00
|
|
|
PreReq: permissions
|
2016-05-23 17:21:37 +02:00
|
|
|
# I have spotted at least two packages (yast-printer and dhcp-client) that need
|
|
|
|
# /bin/ping and /sbin/arping but they do not seem to use them with absolute
|
|
|
|
# paths so we may be lukcy and no further changes are necessary.
|
|
|
|
Provides: /bin/ping
|
|
|
|
Provides: /sbin/arping
|
2007-01-16 00:17:50 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains some small network tools for IPv4 and IPv6 like
|
2016-05-23 17:21:37 +02:00
|
|
|
rdisc, ping, arping, tracepath and tracepath6.
|
2007-01-16 00:17:50 +01:00
|
|
|
|
|
|
|
%prep
|
2010-11-04 16:51:08 +01:00
|
|
|
%setup -q
|
2014-01-25 15:10:50 +01:00
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
2015-04-21 11:53:13 +02:00
|
|
|
%patch10 -p1
|
2007-01-16 00:17:50 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
2016-05-23 17:21:37 +02:00
|
|
|
# Drop LASTTAG variable since it needs git and it's not used for regular
|
|
|
|
# building
|
|
|
|
sed -i '/^LASTTAG:=/d' Makefile
|
|
|
|
# Do not link against nettle
|
|
|
|
sed -i '/^USE_NETTLE/s/yes/no/' Makefile
|
|
|
|
|
|
|
|
# Export CFLAGS so we can also benefit from the ones the Makefile sets for us
|
|
|
|
# Instead of overriding all of them.
|
|
|
|
export CFLAGS='%{optflags} -fpie'
|
|
|
|
# Pulled-in by the LINK.o variable.
|
|
|
|
export LDFLAGS='-pie -Wl,-z,relro,-z,now'
|
|
|
|
|
|
|
|
# Build only selected apps
|
|
|
|
make %{?_smp_mflags} arping clockdiff ping rdisc tracepath \
|
|
|
|
tracepath6 rarpd
|
2010-07-14 14:07:32 +02:00
|
|
|
make man
|
|
|
|
|
2007-01-16 00:17:50 +01:00
|
|
|
%install
|
2012-02-18 02:51:40 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%_sbindir
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%_bindir
|
|
|
|
install arping $RPM_BUILD_ROOT/%{_sbindir}
|
|
|
|
install clockdiff $RPM_BUILD_ROOT/%{_sbindir}
|
|
|
|
install rdisc $RPM_BUILD_ROOT/%{_sbindir}/in.rdisc
|
2016-05-23 17:21:37 +02:00
|
|
|
# boo#795788
|
|
|
|
install tracepath $RPM_BUILD_ROOT/%{_bindir}
|
|
|
|
install tracepath6 $RPM_BUILD_ROOT/%{_bindir}
|
2012-02-18 02:51:40 +01:00
|
|
|
install ping $RPM_BUILD_ROOT/%{_bindir}
|
2016-05-24 11:29:10 +02:00
|
|
|
#install rarpd $RPM_BUILD_ROOT/%{_bindir}
|
2016-05-23 17:21:37 +02:00
|
|
|
#UsrMerge
|
|
|
|
# We still have reverse dependencies using /sbin/* or /bin/*
|
|
|
|
# so keep these symlinks for now. They are slowly being fixed
|
|
|
|
# but lets not just break them yet.
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/{bin,sbin}
|
|
|
|
ln -sf %{_sbindir}/arping $RPM_BUILD_ROOT/sbin
|
|
|
|
ln -sf %{_sbindir}/clockdiff $RPM_BUILD_ROOT/sbin
|
|
|
|
ln -sf %{_sbindir}/in.rdisc $RPM_BUILD_ROOT/sbin
|
|
|
|
ln -sf %{_bindir}/tracepath $RPM_BUILD_ROOT/bin
|
|
|
|
ln -sf %{_bindir}/tracepath6 $RPM_BUILD_ROOT/bin
|
|
|
|
ln -sf %{_bindir}/ping $RPM_BUILD_ROOT/bin
|
|
|
|
#EndUsrMerge
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
|
|
# Remove conflicting manpages
|
2016-05-24 11:29:10 +02:00
|
|
|
rm doc/tftpd* doc/traceroute* doc/rarpd*
|
2016-05-23 17:21:37 +02:00
|
|
|
# Install the rest
|
2015-12-03 02:18:20 +01:00
|
|
|
install -m 644 doc/*.8 $RPM_BUILD_ROOT%_mandir/man8/
|
2007-01-16 00:17:50 +01:00
|
|
|
|
2010-11-04 16:51:08 +01:00
|
|
|
%post
|
2016-05-23 17:21:37 +02:00
|
|
|
%set_permissions %{_bindir}/ping
|
2010-11-04 16:51:08 +01:00
|
|
|
|
|
|
|
%verifyscript
|
2016-05-23 17:21:37 +02:00
|
|
|
%verify_permissions -e %{_bindir}/ping
|
2010-11-04 16:51:08 +01:00
|
|
|
|
2007-01-16 00:17:50 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc RELNOTES
|
2016-05-23 17:21:37 +02:00
|
|
|
%verify(not mode) %attr(0755,root,root) %{_bindir}/ping
|
2016-05-24 11:41:51 +02:00
|
|
|
#%{_bindir}/rarpd
|
2012-02-18 02:51:40 +01:00
|
|
|
%{_sbindir}/arping
|
|
|
|
%{_sbindir}/clockdiff
|
2016-05-23 17:21:37 +02:00
|
|
|
%{_bindir}/tracepath
|
|
|
|
%{_bindir}/tracepath6
|
2012-02-18 02:51:40 +01:00
|
|
|
%{_sbindir}/in.rdisc
|
2007-01-16 00:17:50 +01:00
|
|
|
%attr(644,root,root) %_mandir/man8/*
|
2016-05-23 17:21:37 +02:00
|
|
|
#UsrMerge
|
|
|
|
/bin/*
|
|
|
|
/sbin/*
|
|
|
|
#EndUsrMerge
|
2007-01-16 00:17:50 +01:00
|
|
|
|
2007-03-06 19:08:15 +01:00
|
|
|
%changelog
|