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
|
|
|
#
|
2019-05-24 19:12:38 +02:00
|
|
|
# Copyright (c) 2019 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.
|
|
|
|
|
2019-05-24 19:12:38 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:17:50 +01:00
|
|
|
#
|
|
|
|
|
2008-09-05 02:54:56 +02:00
|
|
|
|
2007-01-16 00:17:50 +01:00
|
|
|
Name: iputils
|
2019-07-10 12:32:03 +02:00
|
|
|
Version: s20190709
|
2012-02-18 02:51:40 +01:00
|
|
|
Release: 0
|
2017-11-13 19:09:26 +01:00
|
|
|
Summary: IPv4 and IPv6 Networking Utilities
|
2018-04-18 03:10:52 +02:00
|
|
|
License: BSD-3-Clause AND GPL-2.0-or-later
|
2017-11-13 19:09:26 +01:00
|
|
|
Group: Productivity/Networking/Other
|
2015-12-03 02:18:20 +01:00
|
|
|
Url: https://github.com/iputils/iputils
|
2017-12-11 01:05:41 +01:00
|
|
|
Source0: https://github.com/iputils/iputils/archive/%{version}.tar.gz
|
|
|
|
Source1: rarpd.service
|
2018-07-27 04:50:14 +02:00
|
|
|
Patch1: iputils-sec-ping-unblock.diff
|
|
|
|
Patch2: iputils-ping-interrupt.diff
|
2019-05-24 19:12:38 +02:00
|
|
|
BuildRequires: docbook5-xsl-stylesheets
|
|
|
|
BuildRequires: docbook_5
|
2017-11-13 19:09:26 +01:00
|
|
|
BuildRequires: iso_ent
|
|
|
|
BuildRequires: libcap-devel
|
2019-07-10 12:32:03 +02:00
|
|
|
BuildRequires: libcap-progs
|
2018-07-04 00:02:17 +02:00
|
|
|
BuildRequires: libidn2-devel
|
2017-11-13 19:09:26 +01:00
|
|
|
BuildRequires: libopenssl-devel
|
2019-05-24 19:12:38 +02:00
|
|
|
BuildRequires: meson
|
2017-11-13 19:09:26 +01:00
|
|
|
BuildRequires: opensp
|
|
|
|
BuildRequires: perl-SGMLS
|
|
|
|
BuildRequires: pkgconfig
|
2017-12-11 01:05:41 +01:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2019-05-24 19:12:38 +02:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2017-11-13 19:09:26 +01:00
|
|
|
# For Makefile modifications
|
|
|
|
BuildRequires: pkgconfig(libidn)
|
|
|
|
Requires(pre): 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
|
2019-05-24 19:12:38 +02:00
|
|
|
# paths so we may be lucky and no further changes are necessary.
|
2016-05-23 17:21:37 +02:00
|
|
|
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
|
2017-09-12 15:53:00 +02:00
|
|
|
rdisc, ping, arping and tracepath.
|
2007-01-16 00:17:50 +01:00
|
|
|
|
2017-11-28 23:18:35 +01:00
|
|
|
%package -n rarpd
|
|
|
|
Summary: Reverse Address Resolution Protocol Daemon
|
|
|
|
Group: Productivity/Networking/System
|
2017-12-11 01:05:41 +01:00
|
|
|
%systemd_requires
|
2017-11-28 23:18:35 +01:00
|
|
|
|
|
|
|
%description -n rarpd
|
|
|
|
Rarpd listens on the Ethernet for broadcast packets asking for reverse
|
|
|
|
address resolution. These packets are sent by hosts at boot time to find
|
|
|
|
out their IP addresses.
|
|
|
|
|
2007-01-16 00:17:50 +01:00
|
|
|
%prep
|
2010-11-04 16:51:08 +01:00
|
|
|
%setup -q
|
2018-07-27 04:50:14 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2007-01-16 00:17:50 +01:00
|
|
|
|
|
|
|
%build
|
2016-05-23 17:21:37 +02:00
|
|
|
# Export CFLAGS so we can also benefit from the ones the Makefile sets for us
|
|
|
|
# Instead of overriding all of them.
|
2019-05-24 19:12:38 +02:00
|
|
|
%ifarch s390 s390x
|
|
|
|
export CFLAGS="-fPIE"
|
|
|
|
%else
|
|
|
|
export CFLAGS="-fpie"
|
|
|
|
%endif
|
2016-05-23 17:21:37 +02:00
|
|
|
# Pulled-in by the LINK.o variable.
|
2019-05-24 19:12:38 +02:00
|
|
|
export LDFLAGS="-pie -Wl,-z,relro,-z,now"
|
2016-05-23 17:21:37 +02:00
|
|
|
|
2019-05-24 19:12:38 +02:00
|
|
|
%meson -DBUILD_NINFOD=false -DBUILD_TFTPD=false -DBUILD_RARPD=true
|
|
|
|
%meson_build
|
2010-07-14 14:07:32 +02:00
|
|
|
|
2007-01-16 00:17:50 +01:00
|
|
|
%install
|
2019-05-24 19:12:38 +02:00
|
|
|
%meson_install
|
|
|
|
|
2017-01-04 22:38:41 +01:00
|
|
|
# boo#1017616
|
2017-11-13 19:09:26 +01:00
|
|
|
ln -sf %{_bindir}/ping %{buildroot}/%{_bindir}/ping6
|
|
|
|
ln -sf %{_bindir}/tracepath %{buildroot}/%{_bindir}/tracepath6
|
2017-01-04 22:38:41 +01:00
|
|
|
|
2019-05-24 19:12:38 +02:00
|
|
|
# symlink to man tracepath6(8)
|
|
|
|
ln -sf %{_mandir}/man8/tracepath.8%{ext_man} %{buildroot}%{_mandir}/man8/tracepath6.8%{ext_man}
|
|
|
|
|
|
|
|
# Install service files and create rc compat symling
|
|
|
|
install -Dpm 0644 build/rdisc.service %{buildroot}/%{_unitdir}
|
|
|
|
install -Dpm 0644 build/rarpd@.service %{buildroot}/%{_unitdir}
|
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcrarpd
|
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcrdisc
|
|
|
|
|
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.
|
2017-11-13 19:09:26 +01:00
|
|
|
mkdir -p %{buildroot}/{bin,sbin}
|
2019-05-24 19:12:38 +02:00
|
|
|
ln -sf %{_bindir}/arping %{buildroot}/bin
|
|
|
|
ln -sf %{_bindir}/clockdiff %{buildroot}/bin
|
2017-11-28 23:18:35 +01:00
|
|
|
ln -sf %{_sbindir}/rarpd %{buildroot}/sbin
|
2017-12-11 09:46:34 +01:00
|
|
|
ln -sf %{_sbindir}/rdisc %{buildroot}/sbin
|
2017-11-13 19:09:26 +01:00
|
|
|
ln -sf %{_bindir}/ping %{buildroot}/bin
|
|
|
|
ln -sf %{_bindir}/ping6 %{buildroot}/bin
|
2019-05-24 19:12:38 +02:00
|
|
|
ln -sf %{_bindir}/tracepath %{buildroot}/bin
|
2017-11-13 19:09:26 +01:00
|
|
|
ln -sf %{_bindir}/tracepath6 %{buildroot}/bin
|
2016-05-23 17:21:37 +02:00
|
|
|
#EndUsrMerge
|
|
|
|
|
2019-05-24 19:12:38 +02:00
|
|
|
%find_lang %{name}
|
2007-01-16 00:17:50 +01:00
|
|
|
|
2019-05-24 19:12:38 +02:00
|
|
|
%pre
|
|
|
|
%service_add_pre rdisc.service
|
2017-12-11 01:05:41 +01:00
|
|
|
|
2010-11-04 16:51:08 +01:00
|
|
|
%post
|
2019-07-10 12:32:03 +02:00
|
|
|
%service_add_post rdisc.service
|
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
|
2019-05-24 19:12:38 +02:00
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun rdisc.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun rdisc.service
|
2010-11-04 16:51:08 +01:00
|
|
|
|
2017-12-11 01:05:41 +01:00
|
|
|
%pre -n rarpd
|
2019-05-24 19:12:38 +02:00
|
|
|
%service_add_pre rarpd@.service
|
2017-12-11 01:05:41 +01:00
|
|
|
|
|
|
|
%post -n rarpd
|
2019-05-24 19:12:38 +02:00
|
|
|
%service_add_post rarpd@.service
|
2017-12-11 01:05:41 +01:00
|
|
|
|
|
|
|
%preun -n rarpd
|
2019-05-24 19:12:38 +02:00
|
|
|
%service_del_preun rarpd@.service
|
2017-12-11 01:05:41 +01:00
|
|
|
|
|
|
|
%postun -n rarpd
|
2019-05-24 19:12:38 +02:00
|
|
|
%service_del_postun rarpd@.service
|
2017-12-11 01:05:41 +01:00
|
|
|
|
2019-05-24 19:12:38 +02:00
|
|
|
%files -f %{name}.lang
|
|
|
|
%license LICENSE
|
2017-11-30 09:53:47 +01:00
|
|
|
%verify(not mode caps) %attr(0755,root,root) %{_bindir}/ping
|
2019-05-24 19:12:38 +02:00
|
|
|
%{_bindir}/arping
|
|
|
|
%{_bindir}/clockdiff
|
2017-01-04 22:38:41 +01:00
|
|
|
%{_bindir}/ping6
|
2019-05-24 19:12:38 +02:00
|
|
|
%{_sbindir}/rcrdisc
|
|
|
|
%{_sbindir}/rdisc
|
2016-05-23 17:21:37 +02:00
|
|
|
%{_bindir}/tracepath
|
|
|
|
%{_bindir}/tracepath6
|
2019-05-24 19:12:38 +02:00
|
|
|
%{_unitdir}/rdisc.service
|
|
|
|
|
2016-05-23 17:21:37 +02:00
|
|
|
#UsrMerge
|
2019-05-24 19:12:38 +02:00
|
|
|
/bin/arping
|
|
|
|
/bin/clockdiff
|
2017-11-28 23:18:35 +01:00
|
|
|
/bin/ping
|
|
|
|
/bin/ping6
|
2019-05-24 19:12:38 +02:00
|
|
|
/sbin/rdisc
|
2017-11-28 23:18:35 +01:00
|
|
|
/bin/tracepath
|
|
|
|
/bin/tracepath6
|
|
|
|
#EndUsrMerge
|
|
|
|
%{_mandir}/man8/arping.8%{ext_man}
|
|
|
|
%{_mandir}/man8/clockdiff.8%{ext_man}
|
|
|
|
%{_mandir}/man8/ping.8%{ext_man}
|
2019-05-24 19:12:38 +02:00
|
|
|
%{_mandir}/man8/rdisc.8%{ext_man}
|
2017-11-28 23:18:35 +01:00
|
|
|
%{_mandir}/man8/tracepath.8%{ext_man}
|
2018-07-04 00:02:17 +02:00
|
|
|
%{_mandir}/man8/tracepath6.8%{ext_man}
|
2017-11-28 23:18:35 +01:00
|
|
|
#EndUsrMerge
|
|
|
|
|
|
|
|
%files -n rarpd
|
|
|
|
%{_sbindir}/rarpd
|
2019-05-24 19:12:38 +02:00
|
|
|
%{_unitdir}/rarpd@.service
|
2017-12-11 01:05:41 +01:00
|
|
|
%{_sbindir}/rcrarpd
|
2017-11-28 23:18:35 +01:00
|
|
|
#UsrMerge
|
|
|
|
/sbin/rarpd
|
2016-05-23 17:21:37 +02:00
|
|
|
#EndUsrMerge
|
2017-11-28 23:18:35 +01:00
|
|
|
%{_mandir}/man8/rarpd.8%{ext_man}
|
2007-01-16 00:17:50 +01:00
|
|
|
|
2007-03-06 19:08:15 +01:00
|
|
|
%changelog
|