fping-vl.spec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Summary: Utility to ping multiple hosts at once
  2. Name: fping
  3. Version: 3.4
  4. #Release: 0vl0.b2
  5. Release: 1%{?_dist_release}
  6. License: distributable
  7. Group: Applications/Internet
  8. URL: http://fping.org/
  9. Source: http://fping.org/dist/%{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. Packager: Takemikaduchi
  14. %description
  15. fping is a ping-like program which uses the Internet Control Message
  16. Protocol (ICMP) echo request to determine if a target host is responding.
  17. fping is different from ping in that you can specify any number of hosts
  18. on the command line, or specify a file containing the lists of hosts to
  19. ping. Instead of trying one host until it timeouts or replies, fping will
  20. send out a ping packet and move on to the next host in a round-robin fashion.
  21. If a host replies, it is noted and removed from the list of hosts to check.
  22. If a host does not respond within a certain time limit and/or retry limit it
  23. will be considered unreachable.
  24. %prep
  25. %setup -q
  26. %build
  27. cp src/Makefile.in src/Makefile.in.orig
  28. sed -i 's|CFLAGS = @CFLAGS@|CFLAGS = @CFLAGS@ -DIPV6|' src/Makefile.in
  29. %configure
  30. %{__make} %{?_smp_mflags}
  31. %{__mv} -f src/fping fping6
  32. %{__make} distclean
  33. cp src/Makefile.in.orig src/Makefile.in
  34. %configure
  35. %{__make} %{?_smp_mflags}
  36. %install
  37. %{__rm} -rf $RPM_BUILD_ROOT
  38. make install DESTDIR=$RPM_BUILD_ROOT
  39. %{__install} -m4755 fping6 $RPM_BUILD_ROOT%{_sbindir}/fping6
  40. %clean
  41. %{__rm} -rf $RPM_BUILD_ROOT
  42. %files
  43. %defattr(-, root, root, 0755)
  44. %doc ChangeLog COPYING README
  45. %doc %{_mandir}/man8/fping.8*
  46. %attr(4755, root, root) %{_sbindir}/fping
  47. %attr(4755, root, root) %{_sbindir}/fping6
  48. %changelog
  49. * Sun Nov 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4-1
  50. - new upstream release
  51. * Mon Jun 25 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2-1
  52. - update to 3.2
  53. - remove old patches
  54. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 2.4-1.b2vl5
  55. - applied new versioning policy
  56. * Tue Nov 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4-0vl0.b2
  57. - initial build for Vine Linux based on DAG package.
  58. * Tue Feb 15 2005 Ken Tsukahara <ken.tsukahara@tmt-d.co.jp> 2.4-1.b2
  59. - Flush stdout for each line.
  60. - Fix stdout/stderr confusion in Patch1.
  61. * Sun Jun 01 2003 Dag Wieers <dag@wieers.com> - 2.4-0.b2
  62. - Adapted version to new scheme.
  63. * Mon Feb 17 2003 Dag Wieers <dag@wieers.com> - 2.4b2-0
  64. - Initial package. (using DAR)