2019-09-30 10:53:27 -04:00
|
|
|
Name: iputils
|
2022-01-20 15:12:18 +08:00
|
|
|
Version: 20210722
|
2022-05-07 15:09:40 +08:00
|
|
|
Release: 5
|
2019-09-30 10:53:27 -04:00
|
|
|
Summary: Network monitoring tools including ping
|
|
|
|
|
License: BSD and GPLv2+
|
|
|
|
|
URL: https://github.com/iputils/iputils
|
|
|
|
|
|
2022-01-20 15:12:18 +08:00
|
|
|
Source0: https://github.com/iputils/iputils/archive/s%{version}.tar.gz#/%{name}-s%{version}.tar.gz
|
2019-09-30 10:53:27 -04:00
|
|
|
Source1: ifenslave.tar.gz
|
|
|
|
|
Source2: rdisc.service
|
|
|
|
|
Source3: ninfod.service
|
|
|
|
|
Source4: bsd.txt
|
|
|
|
|
Source5: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
|
|
|
|
|
|
2021-01-26 15:29:51 +08:00
|
|
|
Patch0000: iputils-ifenslave.patch
|
2022-02-18 11:48:52 +08:00
|
|
|
Patch0001: iputils-ifenslave-CWE-170.patch
|
|
|
|
|
Patch0002: backport-arping-exit-0-if-running-in-deadline-mode-and-we-see-replies.patch
|
2022-04-26 11:13:32 +08:00
|
|
|
Patch0003: backport-arping-fix-typo-in-error-checking.patch
|
|
|
|
|
Patch0004: backport-fix-ARP-protocol-field-for-AX.25-and-NETROM.patch
|
|
|
|
|
Patch0005: backport-ping-Fix-ping6-binding-to-VRF-and-address.patch
|
|
|
|
|
Patch0006: backport-ping6-Avoid-binding-to-non-VRF.patch
|
2022-05-07 10:24:30 +08:00
|
|
|
Patch0007: arping-Fix-exit-code-on-w-option.patch
|
2022-05-07 15:09:40 +08:00
|
|
|
Patch0008: backport-ping-Print-reply-from-Subnet-Router-anycast-address.patch
|
|
|
|
|
Patch0009: backport-ping-Print-reply-with-wrong-source-with-warning.patch
|
2019-11-06 19:34:03 +08:00
|
|
|
|
2019-09-30 10:53:27 -04:00
|
|
|
BuildRequires: gcc meson libidn2-devel openssl-devel libcap-devel libxslt
|
2022-01-20 15:12:18 +08:00
|
|
|
BuildRequires: docbook5-style-xsl systemd iproute glibc-kernheaders gettext
|
2019-09-30 10:53:27 -04:00
|
|
|
%{?systemd_ordering}
|
|
|
|
|
Provides: /bin/ping /bin/ping6 /sbin/arping /sbin/rdisc
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The iputils package contains basic utilities for monitoring a network,
|
|
|
|
|
including ping. The ping command sends a series of ICMP protocol
|
|
|
|
|
ECHO_REQUEST packets to a specified network host to discover whether
|
|
|
|
|
the target machine is alive and receiving network traffic.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
2022-01-20 15:12:18 +08:00
|
|
|
%package ninfod
|
|
|
|
|
Summary: Node Information Query Daemon
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Provides: %{_sbindir}/ninfod
|
|
|
|
|
|
|
|
|
|
%description ninfod
|
|
|
|
|
Node Information Query (RFC4620) daemon. Responds to IPv6 Node Information
|
|
|
|
|
Queries.
|
|
|
|
|
|
2019-09-30 10:53:27 -04:00
|
|
|
%prep
|
2021-07-26 11:49:27 +08:00
|
|
|
%setup -q -a 1 -n %{name}-%{version}
|
2019-09-30 10:53:27 -04:00
|
|
|
cp %{SOURCE4} %{SOURCE5} .
|
|
|
|
|
|
2021-01-26 15:29:51 +08:00
|
|
|
%autopatch -p1
|
2019-09-30 10:53:27 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CFLAGS="-fpie"
|
|
|
|
|
export LDFLAGS="-pie -Wl,-z,relro,-z,now"
|
|
|
|
|
|
|
|
|
|
%meson -DBUILD_TFTPD=false
|
|
|
|
|
%meson_build
|
2022-01-20 15:12:18 +08:00
|
|
|
gcc -Wall $RPM_OPT_FLAGS $CFLAGS $RPM_LD_FLAGS $LDFLAGS ifenslave.c -o ifenslave
|
2019-09-30 10:53:27 -04:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%meson_install
|
|
|
|
|
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
|
|
|
|
|
ln -sf ../bin/ping ${RPM_BUILD_ROOT}%{_sbindir}/ping
|
|
|
|
|
ln -sf ../bin/ping ${RPM_BUILD_ROOT}%{_sbindir}/ping6
|
|
|
|
|
ln -sf ../bin/tracepath ${RPM_BUILD_ROOT}%{_sbindir}/tracepath
|
|
|
|
|
ln -sf ../bin/tracepath ${RPM_BUILD_ROOT}%{_sbindir}/tracepath6
|
|
|
|
|
ln -sf ../bin/arping ${RPM_BUILD_ROOT}%{_sbindir}/arping
|
|
|
|
|
ln -sf ping.8.gz ${RPM_BUILD_ROOT}%{_mandir}/man8/ping6.8.gz
|
|
|
|
|
ln -sf tracepath.8.gz ${RPM_BUILD_ROOT}%{_mandir}/man8/tracepath6.8.gz
|
|
|
|
|
install -cp ifenslave ${RPM_BUILD_ROOT}%{_sbindir}/
|
|
|
|
|
install -cp ifenslave.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post rdisc.service
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun rdisc.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun_with_restart rdisc.service
|
2022-01-20 15:12:18 +08:00
|
|
|
|
|
|
|
|
%post ninfod
|
|
|
|
|
%systemd_post ninfod.service
|
|
|
|
|
|
|
|
|
|
%preun ninfod
|
|
|
|
|
%systemd_preun ninfod.service
|
|
|
|
|
|
|
|
|
|
%postun ninfod
|
2019-09-30 10:53:27 -04:00
|
|
|
%systemd_postun_with_restart ninfod.service
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%license bsd.txt gpl-2.0.txt LICENSE
|
|
|
|
|
%attr(0755,root,root) %caps(cap_net_raw=p) %{_bindir}/clockdiff
|
|
|
|
|
%attr(0755,root,root) %caps(cap_net_raw=p) %{_bindir}/arping
|
|
|
|
|
%attr(0755,root,root) %caps(cap_net_raw=p cap_net_admin=p) %{_bindir}/ping
|
|
|
|
|
%attr(0755,root,root) %caps(cap_net_raw=ep) %{_sbindir}/ninfod
|
|
|
|
|
%{_datadir}/locale/*
|
2022-01-20 15:12:18 +08:00
|
|
|
%{_sbindir}/ifenslave
|
|
|
|
|
%{_sbindir}/rdisc
|
|
|
|
|
%{_bindir}/tracepath
|
|
|
|
|
%{_sbindir}/ping
|
|
|
|
|
%{_sbindir}/ping6
|
|
|
|
|
%{_sbindir}/tracepath
|
|
|
|
|
%{_sbindir}/tracepath6
|
|
|
|
|
%{_sbindir}/arping
|
2019-09-30 10:53:27 -04:00
|
|
|
%{_bindir}/tracepath
|
|
|
|
|
%{_unitdir}/rdisc.service
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc README.bonding
|
|
|
|
|
%{_mandir}/man8/*.8.gz
|
2022-01-20 15:12:18 +08:00
|
|
|
|
|
|
|
|
%files ninfod
|
|
|
|
|
%attr(0755,root,root) %caps(cap_net_raw=ep) %{_sbindir}/ninfod
|
|
|
|
|
%{_unitdir}/ninfod.service
|
2019-09-30 10:53:27 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2022-05-07 15:09:40 +08:00
|
|
|
* Sat May 07 2022 eaglegai <eaglegai@163.com> - 20210722-5
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:backport to fix no reply when ping6 from Subnet-Router anycast address
|
|
|
|
|
|
2022-05-07 10:24:30 +08:00
|
|
|
* Fri May 06 2022 eaglegai <eaglegai@163.com> - 20210722-4
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: fix exit code on -w option when count*interval > timeout
|
|
|
|
|
|
2022-04-26 11:13:32 +08:00
|
|
|
* Tue Apr 26 2022 zengweifeng <zwfeng@huawei.com> - 20210722-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: fix ping2 bingding to VRF and address
|
|
|
|
|
Avoid binding to non-VRF
|
|
|
|
|
Fix ARP protocol field for AX.25 and NETROM
|
|
|
|
|
|
2022-02-18 11:48:52 +08:00
|
|
|
* Fri Feb 18 2021 xinghe <xinghe2@h-partners.com> - 20210722-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix arping -w command return error
|
|
|
|
|
remove old tar package
|
|
|
|
|
|
2022-01-20 15:12:18 +08:00
|
|
|
* Tue Dec 07 2021 xihaochen <xihaochen@huawei.com> - 20210722-1
|
|
|
|
|
- Type:requirements
|
2021-07-26 11:49:27 +08:00
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
2022-01-20 15:12:18 +08:00
|
|
|
- DESC: update iputils to 20210722
|
2021-07-26 11:49:27 +08:00
|
|
|
|
2021-03-08 16:45:38 +08:00
|
|
|
* Mon Mar 8 2021 xuxiaolong <xuxiaolong23@huawei.com> - 20200821-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix rdisc: remove PrivateUsers=yes from systemd service file
|
|
|
|
|
|
2021-01-26 15:29:51 +08:00
|
|
|
* Thu Jan 28 2021 xihaochen <xihaochen@huawei.com> - 20200821-1
|
|
|
|
|
- Type:requirements
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: update iputils to 20200821
|
|
|
|
|
|
2020-12-10 15:15:57 +08:00
|
|
|
* Thu Dec 10 2020 lunankun <lunankun@huawei.com> - 20190709-7
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: fix arping update neighbours
|
|
|
|
|
|
2020-11-29 20:59:01 +08:00
|
|
|
* 20201129205849773219 patch-tracking 20190709-6
|
|
|
|
|
- append patch file of upstream repository from <2583fb77dd57c5183998177a3fa13a680b573005> to <78e3d25a50537a842fd3b18eab971d63d5891350>
|
|
|
|
|
|
2020-11-03 05:30:12 +08:00
|
|
|
* 20201103053007654140 patch-tracking 20190709-5
|
|
|
|
|
- append patch file of upstream repository from <86ed08936d49e2c81ef49dfbd02aca1c74d0c098> to <86ed08936d49e2c81ef49dfbd02aca1c74d0c098>
|
|
|
|
|
|
2020-07-07 15:54:13 +08:00
|
|
|
* Tue Jul 07 2020 gaihuiying <gaihuiying1@huawei.com> - 20190709-4
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:fix building error with libcap's new version
|
|
|
|
|
|
2020-05-18 16:38:28 +08:00
|
|
|
* Mon May 18 2020 openEuler Buildteam <buildteam@openeuler.org> - 20190709-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:bugfix arping's exit code for -U/A
|
|
|
|
|
|
2020-03-11 18:47:11 +08:00
|
|
|
* Wed Mar 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 20190709-2
|
2020-05-18 16:38:28 +08:00
|
|
|
- Type:bugfix
|
2020-03-11 18:47:11 +08:00
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:bugfix the arping
|
|
|
|
|
|
2019-11-06 19:34:03 +08:00
|
|
|
* Wed Oct 9 2019 openEuler Buildteam <buildteam@openeuler.org> - 20190709-1
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:bugfix the arping and ping6
|
|
|
|
|
|
2019-09-30 10:53:27 -04:00
|
|
|
* Mon Sep 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 20190515-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add the softlink for arping
|
|
|
|
|
|
|
|
|
|
* Wed Sep 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 20190515-1
|
2020-12-10 15:15:57 +08:00
|
|
|
- Package init
|