2019-09-30 10:53:27 -04:00
|
|
|
Name: iputils
|
2019-11-06 19:34:03 +08:00
|
|
|
Version: 20190709
|
2020-12-10 15:15:57 +08:00
|
|
|
Release: 7
|
2019-09-30 10:53:27 -04:00
|
|
|
Summary: Network monitoring tools including ping
|
|
|
|
|
License: BSD and GPLv2+
|
|
|
|
|
URL: https://github.com/iputils/iputils
|
|
|
|
|
|
|
|
|
|
Source0: https://github.com/iputils/iputils/archive/s%{version}.tar.gz#/%{name}-s%{version}.tar.gz
|
|
|
|
|
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
|
|
|
|
|
|
2020-07-07 15:54:13 +08:00
|
|
|
Patch0001: iputils-ifenslave.patch
|
|
|
|
|
Patch0002: 0001-iputils-arpings.patch
|
|
|
|
|
Patch0003: 0002-iputils-arpings-count.patch
|
|
|
|
|
Patch0004: bugfix-arping-w-does-not-take-effect.patch
|
|
|
|
|
Patch0005: 0003-ninfod-change-variable-name-to-avoid-colliding.patch
|
2020-12-10 15:15:57 +08:00
|
|
|
Patch0006: bugfix-arpping-make-update-neighbours-work-again.patch
|
2020-11-03 05:30:12 +08:00
|
|
|
Patch6000: 86ed08936d49e2c81ef49dfbd02aca1c74d0c098.patch
|
2020-11-29 20:59:01 +08:00
|
|
|
Patch6001: 2583fb77dd57c5183998177a3fa13a680b573005.patch
|
|
|
|
|
Patch6002: 950d36f8ba5a669cbc34a7972db611b675725fb5.patch
|
|
|
|
|
Patch6003: 78e3d25a50537a842fd3b18eab971d63d5891350.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
|
|
|
|
|
BuildRequires: docbook5-style-xsl systemd glibc-kernheaders gettext
|
|
|
|
|
%{?systemd_ordering}
|
|
|
|
|
Provides: /bin/ping /bin/ping6 /sbin/arping /sbin/rdisc
|
|
|
|
|
Provides: %{name}-ninfod
|
|
|
|
|
Obsoletes: %{name}-ninfod
|
|
|
|
|
Provides: %{_sbindir}/ninfod
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -a 1 -n %{name}-s%{version}
|
|
|
|
|
cp %{SOURCE4} %{SOURCE5} .
|
|
|
|
|
|
2020-07-07 15:54:13 +08:00
|
|
|
%patch0001 -p1
|
|
|
|
|
%patch0002 -p1
|
|
|
|
|
%patch0003 -p1
|
|
|
|
|
%patch0004 -p1
|
|
|
|
|
%patch0005 -p1
|
2020-12-10 15:15:57 +08:00
|
|
|
%patch0006 -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
|
|
|
|
|
gcc -Wall $RPM_OPT_FLAGS $CFLAGS $LDFLAGS ifenslave.c -o ifenslave
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
%systemd_post ninfod.service
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun rdisc.service
|
|
|
|
|
%systemd_preun ninfod.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun_with_restart rdisc.service
|
|
|
|
|
%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/*
|
|
|
|
|
%{_sbindir}/*
|
|
|
|
|
%{_bindir}/tracepath
|
|
|
|
|
%{_unitdir}/rdisc.service
|
|
|
|
|
%{_unitdir}/ninfod.service
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc README.bonding
|
|
|
|
|
%{_mandir}/man8/*.8.gz
|
|
|
|
|
|
|
|
|
|
%changelog
|
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
|