Compare commits
8 Commits
s20151218-
...
main
Author | SHA1 | Date | |
---|---|---|---|
a6983ffbb1 | |||
640ac6b696 | |||
dcf9ab2f59 | |||
6d239561ab | |||
c265381cb0 | |||
6c79352de9 | |||
cca7edbdd0 | |||
92108d4299 |
101
iputils.spec
101
iputils.spec
@ -1,88 +1,91 @@
|
||||
Name: iputils
|
||||
Epoch: 1
|
||||
Version: s20151218
|
||||
Epoch: 2
|
||||
Version: 20240905
|
||||
Release: 1mamba
|
||||
Summary: Network monitoring tools including ping
|
||||
Group: Network/Monitoring
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: ftp://ftp.inr.ac.ru/ip-routing/
|
||||
Source: http://www.skbuff.net/iputils/iputils-%{version}.tar.bz2
|
||||
URL: https://github.com/iputils/iputils
|
||||
Source: https://github.com/iputils/iputils.git/%{version}/iputils-%{version}.tar.bz2
|
||||
Patch0: %{name}-notftpd.patch
|
||||
Patch1: %{name}-s20071127-rdisc_open_max.patch
|
||||
License: BSD
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libcap-devel
|
||||
BuildRequires: libidn2-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: OpenSP
|
||||
BuildRequires: libsysfs-devel
|
||||
BuildRequires: perl-SGMLSpm
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
BuildRequires: iproute
|
||||
|
||||
%description
|
||||
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.
|
||||
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
#%patch0 -p1
|
||||
#%patch1 -p1
|
||||
|
||||
%build
|
||||
%ifarch x86_64
|
||||
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
|
||||
%meson
|
||||
|
||||
make man
|
||||
# -DBUILD_RARPD=true
|
||||
# -DBUILD_TFTPD=true
|
||||
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
mkdir -p %{buildroot}/{bin,sbin,%{_bindir},%{_sbindir},%{_mandir}/man8}
|
||||
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}
|
||||
%meson_install
|
||||
|
||||
ln -sf /bin/ping6 %{buildroot}%{_sbindir}
|
||||
ln -sf /bin/tracepath %{buildroot}%{_sbindir}
|
||||
ln -sf /bin/tracepath6 %{buildroot}%{_sbindir}
|
||||
ln -sf /sbin/arping %{buildroot}%{_sbindir}/arping
|
||||
|
||||
install -m 644 doc/arping.8 %{buildroot}%{_mandir}/man8
|
||||
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
|
||||
%find_lang %{name}
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%files
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root)
|
||||
%attr(4755,root,root) /bin/ping
|
||||
%attr(4755,root,root) /bin/ping6
|
||||
/bin/tracepath
|
||||
/bin/tracepath6
|
||||
/sbin/arping
|
||||
%{_sbindir}/*
|
||||
%{_mandir}/man8/*
|
||||
%{_bindir}/arping
|
||||
%{_bindir}/clockdiff
|
||||
%attr(4755,root,root) %{_bindir}/ping
|
||||
%{_bindir}/tracepath
|
||||
%ifnarch aarch64
|
||||
%{_mandir}/man8/*.8*
|
||||
%endif
|
||||
%doc LICENSE
|
||||
|
||||
%changelog
|
||||
* Thu Sep 05 2024 Automatic Build System <autodist@openmamba.org> 20240905-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Wed Jan 17 2024 Automatic Build System <autodist@openmamba.org> 20240117-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Dec 23 2023 Automatic Build System <autodist@mambasoft.it> 20231222-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Jan 21 2023 Automatic Build System <autodist@mambasoft.it> 20221126-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sun Dec 19 2021 Automatic Build System <autodist@mambasoft.it> 20211215-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Nov 04 2021 Automatic Build System <autodist@mambasoft.it> 20210722-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue Apr 27 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 20210202-2mamba
|
||||
- remove ping6 and tracepath6 wrong symlinks
|
||||
|
||||
* 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
|
||||
- automatic update by autodist
|
||||
|
||||
@ -126,12 +129,12 @@ ln -s tracepath.8.gz %{buildroot}%{_mandir}/man8/tracepath6.8.gz
|
||||
* Thu Jul 10 2003 Silvan Calarco <silvan.calarco@qinet.it> ss020927-4qilnx
|
||||
- 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
|
||||
|
||||
* Mon Apr 22 2003 Silvan Calarco <silvan.calarco@qinet.it>
|
||||
* Tue Apr 22 2003 Silvan Calarco <silvan.calarco@qinet.it>
|
||||
- removed prefix variable definition
|
||||
- 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user