| 1 |
Summary: send ICMP echo probes to multiple hosts |
| 2 |
Name: fping |
| 3 |
Version: 4.2 |
| 4 |
Release: 1 |
| 5 |
License: Freely redistributable without restriction |
| 6 |
Group: Applications/System |
| 7 |
Source0: http://fping.org/dist/%{name}-%{version}.tar.gz |
| 8 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
| 9 |
|
| 10 |
%description |
| 11 |
fping is a program to send ICMP echo probes to network hosts, similar to ping, |
| 12 |
but much better performing when pinging multiple hosts. fping has a very long |
| 13 |
history: Roland Schemers did publish a first version of it in 1992 and it has |
| 14 |
established itself since then as a standard tool for network diagnostics and |
| 15 |
statistics. |
| 16 |
|
| 17 |
%prep |
| 18 |
%setup -q |
| 19 |
|
| 20 |
%build |
| 21 |
|
| 22 |
if [ ! -f ./configure ] ; then |
| 23 |
./autogen.sh |
| 24 |
fi |
| 25 |
|
| 26 |
# fping |
| 27 |
%configure --enable-ipv4 |
| 28 |
make |
| 29 |
|
| 30 |
# fping6 |
| 31 |
%configure --enable-ipv6 |
| 32 |
make |
| 33 |
%{__mv} -f src/fping src/fping6 |
| 34 |
|
| 35 |
%install |
| 36 |
rm -rf $RPM_BUILD_ROOT |
| 37 |
make DESTDIR=$RPM_BUILD_ROOT install |
| 38 |
|
| 39 |
# fping6 |
| 40 |
%{__install} -Dp -m4755 src/fping6 %{buildroot}%{_sbindir}/fping6 |
| 41 |
%{__ln_s} -f fping.8 %{buildroot}%{_mandir}/man8/fping6.8 |
| 42 |
|
| 43 |
%clean |
| 44 |
rm -rf $RPM_BUILD_ROOT |
| 45 |
|
| 46 |
%files |
| 47 |
%defattr(-,root,root,-) |
| 48 |
%attr(4755, root, root) /usr/sbin/fping |
| 49 |
%attr(4755, root, root) /usr/sbin/fping6 |
| 50 |
%doc README.md COPYING CHANGELOG.md |
| 51 |
/usr/share/man/man8/fping.8.gz |
| 52 |
/usr/share/man/man8/fping6.8.gz |
| 53 |
|
| 54 |
%post |
| 55 |
if [ -x /usr/sbin/setcap ]; then |
| 56 |
/bin/chmod 0755 /usr/sbin/fping* |
| 57 |
/usr/sbin/setcap cap_net_raw+ep /usr/sbin/fping |
| 58 |
/usr/sbin/setcap cap_net_raw+ep /usr/sbin/fping6 |
| 59 |
fi |
| 60 |
|
| 61 |
%changelog |
| 62 |
* Mon Dec 24 2012 Marcus Vinicius Ferreira <[email protected]> |
| 63 |
- Missing './configure' script when cloning from master. |
| 64 |
- Making 'fping6'. |
| 65 |
- Fix setuid permission to 'rwsr-xr-x'. |
| 66 |
- doc files. |
| 67 |
- Replacing setuid permission if 'setcap' is present on post-install. |
| 68 |
- Using 'http://fping.org/dist/' for release source distributions. |
| 69 |
|
| 70 |
* Mon Jul 16 2012 Stephen Schaefer <[email protected]> |
| 71 |
- Initial build |
| 72 |
|
| 73 |
# vim:ft=spec: |
| 74 |
|