update to 20210202 [release 20210202-1mamba;Tue Apr 27 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 23:57:58 +01:00
parent 6e57153d86
commit 92108d4299

View File

@ -1,88 +1,73 @@
Name: iputils Name: iputils
Epoch: 1 Epoch: 2
Version: s20151218 Version: 20210202
Release: 1mamba Release: 1mamba
Summary: Network monitoring tools including ping Summary: Network monitoring tools including ping
Group: Network/Monitoring Group: Network/Monitoring
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: ftp://ftp.inr.ac.ru/ip-routing/ URL: https://github.com/iputils/iputils
Source: http://www.skbuff.net/iputils/iputils-%{version}.tar.bz2 Source: https://github.com/iputils/iputils.git/%{version}/iputils-%{version}.tar.bz2
#Source: http://www.skbuff.net/iputils/iputils-%{version}.tar.bz2
Patch0: %{name}-notftpd.patch Patch0: %{name}-notftpd.patch
Patch1: %{name}-s20071127-rdisc_open_max.patch Patch1: %{name}-s20071127-rdisc_open_max.patch
License: BSD License: BSD
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libcap-devel
BuildRequires: libidn2-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: OpenSP BuildRequires: OpenSP
BuildRequires: libsysfs-devel BuildRequires: libsysfs-devel
BuildRequires: perl-SGMLSpm BuildRequires: perl-SGMLSpm
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
The iputils package contains ping, a basic networking tool. The iputils package contains ping, a basic networking tool.
The ping command sends a series of ICMP protocol ECHO_REQUEST packets to a specified network host and can tell you if that machine is alive and receiving network traffic. The ping command sends a series of ICMP protocol ECHO_REQUEST packets to a specified network host and can tell you if that machine is alive and receiving network traffic.
%debug_package
%prep %prep
%setup -q %setup -q
#%patch0 -p1 #%patch0 -p1
#%patch1 -p1 #%patch1 -p1
%build %build
%ifarch x86_64 %meson
export CFLAGS="$RPM_OPT_FLAGS -fpic -Werror"
%else
export CFLAGS="$RPM_OPT_FLAGS -fpie -Werror"
export LDFLAGS="-pie"
%endif
%make CC=%{_host}-gcc arping clockdiff ping ping6 rdisc tracepath tracepath6 \
%if "%{_host}" != "%{_build}"
.LIBPATTERNS=%{_prefix}/%{_host}/lib/lib%.so
%endif
make man %meson_build
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}/{bin,sbin,%{_bindir},%{_sbindir},%{_mandir}/man8} %meson_install
install -m 755 ping %{buildroot}/bin
install -m 755 ping6 %{buildroot}/bin
install -m 755 tracepath %{buildroot}/bin
install -m 755 tracepath6 %{buildroot}/bin
install -m 755 arping %{buildroot}/sbin
install -m 755 clockdiff %{buildroot}%{_sbindir}
install -m 755 rdisc %{buildroot}%{_sbindir}
ln -sf /bin/ping6 %{buildroot}%{_sbindir} ln -sf ../sbin/ping6 %{buildroot}%{_bindir}
ln -sf /bin/tracepath %{buildroot}%{_sbindir} ln -sf ../sbin/tracepath6 %{buildroot}%{_bindir}
ln -sf /bin/tracepath6 %{buildroot}%{_sbindir}
ln -sf /sbin/arping %{buildroot}%{_sbindir}/arping
install -m 644 doc/arping.8 %{buildroot}%{_mandir}/man8 %find_lang %{name}
install -m 644 doc/clockdiff.8 %{buildroot}%{_mandir}/man8
#install -m 644 doc/pg3.8 %{buildroot}%{_mandir}/man8
install -m 644 doc/ping.8 %{buildroot}%{_mandir}/man8
install -m 644 doc/rdisc.8 %{buildroot}%{_mandir}/man8
install -m 644 doc/tracepath.8 %{buildroot}%{_mandir}/man8
ln -s ping.8.gz %{buildroot}%{_mandir}/man8/ping6.8.gz
ln -s tracepath.8.gz %{buildroot}%{_mandir}/man8/tracepath6.8.gz
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %files -f %{name}.lang
%defattr(-,root,root) %defattr(-,root,root)
%attr(4755,root,root) /bin/ping %{_bindir}/arping
%attr(4755,root,root) /bin/ping6 %{_bindir}/clockdiff
/bin/tracepath %attr(4755,root,root) %{_bindir}/ping
/bin/tracepath6 %{_bindir}/ping6
/sbin/arping %{_bindir}/tracepath
%{_sbindir}/* %{_bindir}/tracepath6
%{_sbindir}/ninfod
%{_sbindir}/rdisc
%{_unitdir}/ninfod.service
%{_unitdir}/rdisc.service
%{_mandir}/man8/* %{_mandir}/man8/*
%changelog %changelog
* Tue Apr 27 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 20210202-1mamba
- update to 20210202
* Mon Jan 04 2016 Automatic Build System <autodist@mambasoft.it> s20151218-1mamba * Mon Jan 04 2016 Automatic Build System <autodist@mambasoft.it> s20151218-1mamba
- automatic update by autodist - automatic update by autodist
@ -126,12 +111,12 @@ ln -s tracepath.8.gz %{buildroot}%{_mandir}/man8/tracepath6.8.gz
* Thu Jul 10 2003 Silvan Calarco <silvan.calarco@qinet.it> ss020927-4qilnx * Thu Jul 10 2003 Silvan Calarco <silvan.calarco@qinet.it> ss020927-4qilnx
- ping is now suid root so normal users can ping - ping is now suid root so normal users can ping
* Mon May 09 2003 Silvan Calarco <silvan.calarco@qinet.it> ss020927-3qilnx * Fri May 09 2003 Silvan Calarco <silvan.calarco@qinet.it> ss020927-3qilnx
- removed tftp server - removed tftp server
* Mon Apr 22 2003 Silvan Calarco <silvan.calarco@qinet.it> * Tue Apr 22 2003 Silvan Calarco <silvan.calarco@qinet.it>
- removed prefix variable definition - removed prefix variable definition
- added make parameter KERNEL_INCLUDE - added make parameter KERNEL_INCLUDE
* Mon Apr 08 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it> * Tue Apr 08 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it>
- creation of iputils package - creation of iputils package