%define name fping %define version 2.4b2 %define release 5.7x # disable debuginfo package %define debug_package %{nil} Summary: Quickly ping N number of hosts to determine their reachability. Name: %{name} Version: %{version} Release: %{release} License: GPL Group: Applications/Internet URL: http://www.fping.com Source: fping-2.4b2.tar.bz2 Patch0: Makefile.in.patch.bz2 BuildRoot: %{_tmppath}/%{name}-root %description fping is a ping(1) like program which uses the Internet Control Message Protocol (ICMP) echo request to determine if a host is up. fping is different from ping in that you can specify any number of hosts on the command line, or specify a file containing the lists of hosts to ping. Instead of trying one host until it timeouts or replies, fping will send out a ping packet and move on to the next host in a round-robin fashion. If a host replies, it is noted and removed from the list of hosts to check. If a host does not respond within a certain time limit and/or retry limit it will be considered unreachable. %prep %setup -q %patch0 %build export CFLAGS="%{optflags}" libtoolize --copy --force; aclocal; autoconf ./configure --prefix=%{_prefix} --mandir=%{_mandir} --libdir=%{_libdir} --bindir=/bin make %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} install -d %{buildroot}%{_usr}/bin install -d %{buildroot}%{_mandir}/man8 install -m755 fping %{buildroot}%{_usr}/bin/ install -m644 fping.8 %{buildroot}%{_mandir}/man8/ %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-, root, root) %doc README INSTALL ChangeLog %attr(4755, root, root) %{_usr}/bin/fping %{_mandir}/man8/fping.8* %changelog * Mon Apr 28 2003 Milan Kerslager 2.4b2-5 - rebuild for RH 9 * Wed Jan 29 2003 Lenny Cartier 2.4b2-4mdk - rebuild * Mon Jan 20 2003 Oden Eriksson 2.4b2-3mdk - build release - misc spec file fixes * Mon May 20 2002 Oden Eriksson 2.4b2-2mdk - rebuilt with gcc3.1 * Fri Sep 14 2001 Lenny Cartier 2.4b2-1mdk - added by Oden Eriksson : - update to 2.4b2 - added ugly hack (patch0) - initial cooker contrib * Thu Aug 10 2000 Edward S. Marshall - Created initial RPM. Warning: this RPM installs fping setuid root; this may not be what you want!