iputils/iputils.spec

198 lines
5.5 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:53:27 -04:00
Name: iputils
2023-02-06 08:22:56 +00:00
Version: 20221126
2023-04-18 17:45:19 +08:00
Release: 2
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-07-11 14:30:52 +08:00
Source0: https://github.com/iputils/iputils/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
2019-09-30 10:53:27 -04:00
Source1: ifenslave.tar.gz
2023-02-06 08:22:56 +00:00
Source2: bsd.txt
Source3: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
2019-09-30 10:53:27 -04:00
2021-01-26 15:29:51 +08:00
Patch0000: iputils-ifenslave.patch
Patch0001: iputils-ifenslave-CWE-170.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}
2023-02-06 08:22:56 +00:00
Provides: /bin/ping /bin/ping6 /sbin/arping
2019-09-30 10:53:27 -04:00
%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
2021-07-26 11:49:27 +08:00
%setup -q -a 1 -n %{name}-%{version}
2023-02-06 08:22:56 +00:00
cp %{SOURCE2} %{SOURCE3} .
2019-09-30 10:53:27 -04:00
2021-01-26 15:29:51 +08:00
%autopatch -p1
2019-09-30 10:53:27 -04:00
%build
2023-04-18 17:45:19 +08:00
export LDFLAGS="-Wl,-z,relro,-z,now"
2019-09-30 10:53:27 -04:00
2023-04-18 17:45:19 +08:00
%meson -Db_pie=true
2019-09-30 10:53:27 -04:00
%meson_build
2023-04-18 17:45:19 +08:00
gcc -Wall -fpie $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}
2023-02-06 08:22:56 +00:00
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
2019-09-30 10:53:27 -04:00
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
%preun
%postun
%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
%{_datadir}/locale/*
2022-01-20 15:12:18 +08:00
%{_sbindir}/ifenslave
%{_bindir}/tracepath
%{_sbindir}/ping
%{_sbindir}/ping6
%{_sbindir}/tracepath
%{_sbindir}/tracepath6
%{_sbindir}/arping
2019-09-30 10:53:27 -04:00
%{_bindir}/tracepath
%files help
%defattr(-,root,root)
%doc README.bonding
%{_mandir}/man8/*.8.gz
2022-01-20 15:12:18 +08:00
2019-09-30 10:53:27 -04:00
%changelog
2023-04-18 17:45:19 +08:00
* Tue Apr 18 2023 zhongxuan <zhongxuan2@huawei.com> - 20221126-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: fix build of debugsource
2023-02-06 08:22:56 +00:00
* Mon Feb 6 2023 zhongxuan <zhongxuan2@huawei.com> - 20221126-1
- Type:requirements
- ID:NA
- SUG:NA
- DESC: update iputils to 20221126
2022-07-11 14:30:52 +08:00
* Mon Jul 11 2022 yinyongkang <yinyongkang@kylinos.cn> - 20211215-1
- Type:requirements
- ID:NA
- SUG:NA
- DESC: update iputils to 20211215
* Mon Jun 20 2022 lvgenggeng <lvgenggeng@uniontech.com> - 20210722-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:backport to fix potential memory leakage on -p option
* 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
* 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
* 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-05-25 16:44:26 +08:00
* Fri Feb 18 2022 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
* 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
2022-05-25 16:44:26 +08:00
* Sun Nov 29 2020 openEuler Buildteam <buildteam@openeuler.org> - 20190709-6
- append patch file of upstream repository from <2583fb77dd57c5183998177a3fa13a680b573005> to <78e3d25a50537a842fd3b18eab971d63d5891350>
2022-05-25 16:44:26 +08:00
* Tue Nov 3 2020 openEuler Buildteam <buildteam@openeuler.org> - 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