Name: fping Version: 4.0 Release: 1 Summary: Scriptable, parallelized ping-like utility Group: Applications/Internet License: BSD with advertising URL: http://www.fping.org/ Source0: %{name}-%{version}.tar.gz Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: patch %ifos aix5.3 || %ifos aix6.1 || %ifos aix7.1 || %ifos aix7.2 Requires: AIX-rpm >= 5.3.0.0 %else Requires: AIX-rpm < 5.3.0.0 %endif %description fping is a ping-like program which can determine the accessibility of multiple hosts using ICMP echo requests. fping is designed for parallelized monitoring of large numbers of systems, and is developed with ease of use in scripting in mind. %prep %setup -q export PATH=/opt/freeware/bin:$PATH %patch0 %build export CC="xlc_r" %ifos aix5.3 || %ifos aix6.1 || %ifos aix7.1 || %ifos aix7.2 ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --enable-ipv6 \ --disable-ipv4 \ --program-suffix=6 make mv src/fping src/fping6 make clean %endif ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --disable-ipv6 \ --enable-ipv4 make %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install %ifos aix5.3 || %ifos aix6.1 || %ifos aix7.1 || %ifos aix7.2 cp src/fping6 ${RPM_BUILD_ROOT}%{_sbindir} chmod 4755 ${RPM_BUILD_ROOT}%{_sbindir}/fping6 %endif /usr/bin/strip ${RPM_BUILD_ROOT}%{_sbindir}/* || : cd ${RPM_BUILD_ROOT} mkdir -p usr/sbin cd usr/sbin ln -sf ../..%{_sbindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc CHANGELOG.md COPYING %attr(4755,root,system) %{_sbindir}/fping /usr/sbin/fping %ifos aix5.3 || %ifos aix6.1 || %ifos aix7.1 || %ifos aix7.2 %attr(4755,root,system) %{_sbindir}/fping6 /usr/sbin/fping6 %endif %{_mandir}/man8/* %changelog * Fri Oct 05 2018 Michael Perzl - 4.0-1 - updated to version 4.0 * Fri Oct 05 2018 Michael Perzl - 3.16-1 - updated to version 3.16 * Fri Oct 05 2018 Michael Perzl - 3.15-1 - updated to version 3.15 * Fri Oct 05 2018 Michael Perzl - 3.14-1 - updated to version 3.14 * Sat Jan 09 2016 Michael Perzl - 3.13-1 - updated to version 3.13 * Sat Jan 09 2016 Michael Perzl - 3.12-1 - updated to version 3.12 * Sat Jan 09 2016 Michael Perzl - 3.11-1 - updated to version 3.11 * Mon May 05 2014 Michael Perzl - 3.10-1 - updated to version 3.10 * Sun Mar 09 2014 Michael Perzl - 3.9-1 - updated to version 3.9 * Sat Nov 09 2013 Michael Perzl - 3.8-1 - updated to version 3.8 * Tue Nov 05 2013 Michael Perzl - 3.7-1 - updated to version 3.7 * Fri Oct 11 2013 Michael Perzl - 3.6-1 - updated to version 3.6 * Wed May 22 2013 Michael Perzl - 3.5-1 - updated to version 3.5 * Wed Sep 05 2012 Michael Perzl - 3.4-1 - updated to version 3.4 * Mon Aug 20 2012 Michael Perzl - 3.3-1 - updated to version 3.3 * Tue May 29 2012 Michael Perzl - 3.2-1 - updated to version 3.2 * Fri Apr 27 2012 Michael Perzl - 3.1-1 - updated to version 3.1 * Wed Jan 04 2012 Michael Perzl - 3.0-1 - updated to version 3.0 * Tue Sep 29 2009 Michael Perzl - 2.4b2-1 - first version for AIX V5.1 and higher