Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > media > contrib-src > by-pkgid > 86ce89f50a1047a0392c3d5ad82cf677 > files > 3

fping-2.4b2-2mdk.src.rpm

%define name fping
%define version 2.4b2
%define release 2mdk

Summary: Quickly ping N number of hosts to determine their reachability.
Name: %{name}
Version: %{version}
Release: %{release}
License: GPL
Group: Networking/Other
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
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%setup -q
%patch0

%build
export CFLAGS="%{optflags}"
libtoolize --copy --force; aclocal; autoconf
./configure --prefix=%{_prefix} --mandir=%{_mandir} --bindir=/bin
%make

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}/bin
install -d %{buildroot}%{_mandir}/man8
install -m755 fping %{buildroot}/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) /bin/fping
%{_mandir}/man8/fping.8*

%changelog
* Mon May 20 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.4b2-2mdk
- rebuilt with gcc3.1

* Fri Sep 14 2001 Lenny Cartier <lenny@mandrakesoft.com> 2.4b2-1mdk
- added by Oden Eriksson <oden.eriksson@kvikkjokk.net> :
	- update to 2.4b2
	- added ugly hack (patch0)
	- initial cooker contrib

* Thu Aug 10 2000 Edward S. Marshall <emarshal@logic.net>
- Created initial RPM. Warning: this RPM installs fping setuid root; this
  may not be what you want!