[521] | 1 | %define real_version 2.4b2 |
---|
| 2 | |
---|
| 3 | Summary: Utility to ping multiple hosts at once |
---|
| 4 | Name: fping |
---|
| 5 | Version: 2.4 |
---|
| 6 | #Release: 0vl0.b2 |
---|
[6386] | 7 | Release: 2.b2%{?_dist_release} |
---|
[521] | 8 | License: distributable |
---|
| 9 | Group: Applications/Internet |
---|
| 10 | URL: http://www.fping.com/ |
---|
| 11 | |
---|
| 12 | Source: http://www.fping.com/download/fping-%{real_version}.tar.gz |
---|
| 13 | Patch0: fping-ac_fixes.patch |
---|
| 14 | Patch1: fping-ipv6.patch |
---|
| 15 | Patch2: fping-ipv6-ac.patch |
---|
| 16 | Patch3: fping-2.4b2-fflush.patch |
---|
| 17 | |
---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 19 | BuildRequires: autoconf, automake |
---|
| 20 | |
---|
| 21 | %description |
---|
| 22 | fping is a ping-like program which uses the Internet Control Message |
---|
| 23 | Protocol (ICMP) echo request to determine if a target host is responding. |
---|
| 24 | |
---|
| 25 | fping is different from ping in that you can specify any number of hosts |
---|
| 26 | on the command line, or specify a file containing the lists of hosts to |
---|
| 27 | ping. Instead of trying one host until it timeouts or replies, fping will |
---|
| 28 | send out a ping packet and move on to the next host in a round-robin fashion. |
---|
| 29 | |
---|
| 30 | If a host replies, it is noted and removed from the list of hosts to check. |
---|
| 31 | If a host does not respond within a certain time limit and/or retry limit it |
---|
| 32 | will be considered unreachable. |
---|
| 33 | |
---|
| 34 | %prep |
---|
| 35 | %setup -n %{name}-%{real_version} |
---|
| 36 | %patch0 -p1 |
---|
| 37 | %patch1 -p1 |
---|
| 38 | %patch2 -p1 |
---|
| 39 | %patch3 -p1 |
---|
| 40 | %{__aclocal} |
---|
| 41 | %{__autoconf} |
---|
| 42 | %{__autoheader} |
---|
| 43 | %{__automake} --add-missing |
---|
| 44 | |
---|
| 45 | %build |
---|
| 46 | %configure |
---|
| 47 | %{__make} %{?_smp_mflags} |
---|
| 48 | %{__mv} -f fping fping6 |
---|
| 49 | |
---|
| 50 | %configure --disable-ipv6 |
---|
| 51 | %{__make} %{?_smp_mflags} |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | %install |
---|
| 55 | %{__rm} -rf %{buildroot} |
---|
| 56 | %makeinstall |
---|
| 57 | %{__install} -D -m4750 fping6 %{buildroot}%{_sbindir}/fping6 |
---|
| 58 | %{__ln_s} -f fping.8 %{buildroot}%{_mandir}/man8/fping6.8 |
---|
| 59 | |
---|
| 60 | %clean |
---|
| 61 | %{__rm} -rf %{buildroot} |
---|
| 62 | |
---|
| 63 | %files |
---|
| 64 | %defattr(-, root, root, 0755) |
---|
| 65 | %doc ChangeLog COPYING README |
---|
| 66 | %doc %{_mandir}/man8/fping.8* |
---|
| 67 | %doc %{_mandir}/man8/fping6.8* |
---|
| 68 | %attr(4750, root, adm) %{_sbindir}/fping |
---|
| 69 | %attr(4750, root, adm) %{_sbindir}/fping6 |
---|
| 70 | |
---|
| 71 | %changelog |
---|
[6386] | 72 | * Tue Jun 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4-2.b2 |
---|
| 73 | - rebuild with Vine6 environment |
---|
| 74 | |
---|
[521] | 75 | * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 2.4-1.b2vl5 |
---|
| 76 | - applied new versioning policy |
---|
| 77 | |
---|
| 78 | * Tue Nov 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4-0vl0.b2 |
---|
| 79 | - initial build for Vine Linux based on DAG package. |
---|
| 80 | |
---|
| 81 | * Tue Feb 15 2005 Ken Tsukahara <ken.tsukahara@tmt-d.co.jp> 2.4-1.b2 |
---|
| 82 | - Flush stdout for each line. |
---|
| 83 | - Fix stdout/stderr confusion in Patch1. |
---|
| 84 | |
---|
| 85 | * Sun Jun 01 2003 Dag Wieers <dag@wieers.com> - 2.4-0.b2 |
---|
| 86 | - Adapted version to new scheme. |
---|
| 87 | |
---|
| 88 | * Mon Feb 17 2003 Dag Wieers <dag@wieers.com> - 2.4b2-0 |
---|
| 89 | - Initial package. (using DAR) |
---|