fping-vl.spec 2.3 KB

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