iputils-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. Summary: Network monitoring tools including ping.
  2. Summary(ja): ping 等のネットワークモニタツール集
  3. Name: iputils
  4. Version: 20071127
  5. Release: 2%{?_dist_release}
  6. License: BSD
  7. Group: System Environment/Daemons
  8. URL: http://www.skbuff.net/iputils
  9. Source0: http://www.skbuff.net/iputils//%{name}-s%{version}.tar.bz2
  10. Source1: ifenslave.tar.gz
  11. Source3: rdisc.initd
  12. Patch0: iputils-20020927-rh.patch
  13. Patch1: iputils-20020124-countermeasures.patch
  14. Patch2: iputils-20020927-addrcache.patch
  15. Patch3: iputils-20020927-ping-subint.patch
  16. Patch4: iputils-ping_cleanup.patch
  17. Patch5: iputils-ifenslave.patch
  18. Patch6: iputils-20020927-arping-infiniband.patch
  19. Patch7: iputils-20070202-idn.patch
  20. Patch8: iputils-20070202-open-max.patch
  21. Patch9: iputils-20070202-traffic_class.patch
  22. Patch10: iputils-20070202-arping_timeout.patch
  23. Patch11: iputils-20071127-output.patch
  24. Patch12: iputils-20070202-ia64_align.patch
  25. Patch13: iputils-20071127-warnings.patch
  26. Patch14: iputils-20071127-typing_bug.patch
  27. Patch15: iputils-20071127-corr_type.patch
  28. # Vine Source(s)/Patch(es)
  29. Source10: iputils-20020927-ja.po
  30. Patch100: iputils-s20071127-gettext.patch
  31. Prefix: %{_prefix}
  32. BuildRoot: %{_tmppath}/%{name}-root
  33. BuildPreReq: docbook-utils perl-SGMLSpm
  34. BuildPreReq: glibc-kernheaders >= 2.4-8.19
  35. PreReq: chkconfig
  36. %description
  37. The iputils package contains basic utilities for monitoring a network,
  38. including ping. The ping command sends a series of ICMP protocol
  39. ECHO_REQUEST packets to a specified network host to discover whether
  40. the target machine is alive and receiving network traffic.
  41. %prep
  42. %setup -q -a 1 -n %{name}-s%{version}
  43. %patch0 -p1 -b .rh
  44. %patch1 -p1 -b .countermeasures
  45. %patch2 -p1 -b .addrcache
  46. %patch3 -p1 -b .ping-subint
  47. %patch4 -p1 -b .cleanup
  48. %patch5 -p1 -b .addr
  49. %patch6 -p1 -b .infiniband
  50. %patch7 -p1 -b .idn
  51. %patch8 -p1 -b .open-max
  52. %patch9 -p1 -b .traffic_class
  53. %patch10 -p1 -b .arping_timeout
  54. %patch11 -p1 -b .output
  55. %patch12 -p1 -b .ia64_align
  56. %patch13 -p1 -b .warnings
  57. %patch14 -p1 -b .typing_bug
  58. %patch15 -p1 -b .corr_type
  59. #
  60. %patch100 -p1 -b .gettext
  61. # add ja.po
  62. cp %{SOURCE10} po/ja.po
  63. %build
  64. %ifarch s390 s390x
  65. export CFLAGS="$RPM_OPT_FLAGS -fPIE"
  66. %else
  67. export CFLAGS="$RPM_OPT_FLAGS -fpie"
  68. %endif
  69. export LDFLAGS="-pie"
  70. make %{?_smp_mflags} arping clockdiff ping ping6 rdisc tracepath tracepath6 po
  71. gcc -Wall $RPM_OPT_FLAGS ifenslave.c -o ifenslave
  72. make -C doc man
  73. %install
  74. rm -rf ${RPM_BUILD_ROOT}
  75. mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
  76. mkdir -p ${RPM_BUILD_ROOT}/{bin,sbin}
  77. install -c clockdiff ${RPM_BUILD_ROOT}%{_sbindir}/
  78. install -cp arping ${RPM_BUILD_ROOT}/sbin/
  79. ln -s /sbin/arping ${RPM_BUILD_ROOT}%{_sbindir}/arping
  80. install -cp ping ${RPM_BUILD_ROOT}/bin/
  81. install -cp ifenslave ${RPM_BUILD_ROOT}/sbin/
  82. install -cp rdisc ${RPM_BUILD_ROOT}/sbin/
  83. install -cp ping6 ${RPM_BUILD_ROOT}/bin/
  84. install -cp tracepath ${RPM_BUILD_ROOT}/bin/
  85. install -cp tracepath6 ${RPM_BUILD_ROOT}/bin/
  86. mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
  87. ln -sf /bin/ping6 ${RPM_BUILD_ROOT}%{_sbindir}
  88. ln -sf /bin/tracepath ${RPM_BUILD_ROOT}%{_sbindir}
  89. ln -sf /bin/tracepath6 ${RPM_BUILD_ROOT}%{_sbindir}
  90. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
  91. install -cp doc/clockdiff.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
  92. install -cp doc/arping.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
  93. install -cp doc/ping.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
  94. install -cp doc/rdisc.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
  95. install -cp doc/tracepath.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
  96. install -cp ifenslave.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
  97. ln -s ping.8.gz ${RPM_BUILD_ROOT}%{_mandir}/man8/ping6.8.gz
  98. ln -s tracepath.8.gz ${RPM_BUILD_ROOT}%{_mandir}/man8/tracepath6.8.gz
  99. install -dp ${RPM_BUILD_ROOT}%{_sysconfdir}/rc.d/init.d
  100. install -m 755 -p %SOURCE3 ${RPM_BUILD_ROOT}%{_sysconfdir}/rc.d/init.d/rdisc
  101. %post
  102. /sbin/chkconfig --add rdisc
  103. %preun
  104. if [ $1 = 0 ]; then
  105. service rdisc stop >/dev/null 2>&1
  106. /sbin/chkconfig --del rdisc
  107. fi
  108. %postun
  109. if [ "$1" -ge "1" ]; then
  110. service rdisc restart >/dev/null 2>&1 || :
  111. fi
  112. %clean
  113. rm -rf ${RPM_BUILD_ROOT}
  114. %files
  115. %defattr(-,root,root)
  116. %doc RELNOTES README.bonding
  117. %{_sbindir}/clockdiff
  118. %ifos linux
  119. /sbin/arping
  120. %{_sbindir}/arping
  121. %attr(4755,root,root) /bin/ping
  122. /sbin/ifenslave
  123. %else
  124. %attr(4755,root,root) %{_sbindir}/ping
  125. %{_sbindir}/arping
  126. %{_sbindir}/ifenslave
  127. %endif
  128. /sbin/rdisc
  129. %attr(4755,root,root) /bin/ping6
  130. /bin/tracepath
  131. /bin/tracepath6
  132. #%attr(4755,root,root)/bin/traceroute6
  133. %{_sbindir}/ping6
  134. %{_sbindir}/tracepath
  135. %{_sbindir}/tracepath6
  136. #%{_sbindir}/traceroute6
  137. %attr(0644,root,root) %{_mandir}/man8/*
  138. %config(noreplace) %{_sysconfdir}/rc.d/init.d/rdisc
  139. %changelog
  140. * Fri Apr 03 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 20071127-2
  141. - rebuild to add sign..
  142. * Wed Apr 01 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 20071127-1
  143. - new upstream release
  144. - spec in utf-8
  145. * Wed Sep 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 20020927-41vl1
  146. - remove traceroute6 that is now provided by traceroute package.
  147. - merge changes from FC
  148. * Sat Jul 31 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 20020927-13vl2
  149. - ppc patch (Patch110) removed (it's no necessary now)
  150. * Thu Mar 4 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 20020927-13vl1
  151. - update to 20020927 merged with 20020927-13
  152. - update i18n patch, ja.po
  153. * Thu Oct 02 2003 Phil Knirsch <pknirsch@redhat.com> 20020927-12
  154. - Fixed unaligned access problem on ia64 (#101417)
  155. * Wed Sep 10 2003 Phil Knirsch <pknirsch@redhat.com> 20020927-11
  156. - Dont use own headers, use glibc and kernheaders.
  157. * Thu Sep 04 2003 Bill Nottingham <notting@redhat.com> 20020927-10
  158. - fix build with new glibc-kernheaders
  159. * Wed Sep 03 2003 Phil Knirsch <pknirsch@redhat.com> 20020927-9
  160. - Start icmp_seq from 0 instead of 1 (Conform with debian and Solaris #100609).
  161. * Thu Jul 31 2003 Phil Knirsch <pknirsch@redhat.com> 20020927-8
  162. - One more update to ifenslave.c
  163. * Mon Jun 16 2003 Phil Knirsch <pknirsch@redhat.com> 20020927-7
  164. - Updated ifenslave.c and README.bonding to latest version.
  165. * Thu May 15 2003 Phil Knirsch <pknirsch@redhat.com> 20020927-5
  166. - Bumped release and rebuilt
  167. * Thu May 15 2003 Phil Knirsch <pknirsch@redhat.com> 20020927-4
  168. - Fixed DNS lookup problems (#68212).
  169. - Added warning if binding problem failed on subinterface (#81640).
  170. * Tue May 13 2003 Phil Knirsch <pknirsch@redhat.com> 20020927-3
  171. - Removed bonding tarball and replaced it with ifenslave.c and README
  172. - FHS compliance for all tools, now to be found in /bin with compat symlinks to
  173. old places.
  174. * Fri Nov 29 2002 Phil Knirsch <pknirsch@redhat.com> 20020927-1
  175. - Updated to latest upstream version.
  176. * Tue Jun 18 2002 Phil Knirsch <pknirsch@redhat.com> 20020124-7
  177. - Added new BuildPreReqs for docbook-utils and perl-SGMLSpm (#66661)
  178. - Fixed ipv6 error printing problem (#66659).
  179. * Tue May 21 2002 Phil Knirsch <pknirsch@redhat.com>
  180. - Added a patch to activate the rdisc server (#64270).
  181. - Display the countermeasures warning only in verbose (#55236)
  182. * Thu Apr 18 2002 Bill Nottingham <notting@redhat.com>
  183. - quit trying to build HTML versions of the man pages
  184. * Thu Mar 14 2002 Phil Knirsch <pknirsch@redhat.com>
  185. - Added fix by Tom "spot" Callaway to fix buffer overflow problems in stats.
  186. * Wed Feb 27 2002 Phil Knirsch <pknirsch@redhat.com>
  187. - Update to iputils-ss020124.
  188. * Sat Feb 09 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 20001110-7vl2
  189. - changed Patch110 to have clear_bit() within the ipv6 source for ppc
  190. * Sun Jan 27 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 20001110-7vl1
  191. - based on 20001110-7 from Rawhide
  192. - merged Vine changes from 20001010-1vl4
  193. --- Mon Jul 16 2001 <sagami@vinelinux.org>
  194. - 20001010-1vl4
  195. - use %%{find_lang} to fix so as not to own locale dir
  196. --- Thu Jun 07 2001 <sagami@vinelinux.org>
  197. - 20001010-1vl3: rebuilt for %%{_mandir}
  198. --- Fri Oct 27 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  199. - 20001010-1vl2
  200. - remove ping6 for ppc
  201. - added Japanese summary and description
  202. --- Thu Oct 26 2000 Jun Nishii <jun@vinelinux.org>
  203. - added ja.po and nls patch
  204. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  205. - automated rebuild
  206. * Mon Aug 27 2001 Philipp Knirsch <pknirsch@redhat.de> 20001110-6
  207. - Fixed buffer overflow problem in traceroute6.c (#51135)
  208. * Mon Jul 01 2001 Philipp Knirsch <pknirsch@redhat.de>
  209. - Made ping6 and traceroute6 setuid (safe as they drop it VERY early) (#46769)
  210. * Thu Jun 28 2001 Philipp Knirsch <pknirsch@redhat.de>
  211. - Fixed ping statistics overflow bug (#43801)
  212. * Tue Jun 26 2001 Philipp Knirsch <pknirsch@redhat.de>
  213. - Fixed a bunch of compiler warnings (#37131)
  214. - Fixed wrong exit code for no packets and deadline (#40323)
  215. - Moved arping to /sbin from /usr/sbin due to ifup call (#45785). Symlink from
  216. /usr/sbin/ provided for backwards compatibility.
  217. * Mon Apr 30 2001 Preston Brown <pbrown@redhat.com>
  218. - install in.rdisc.8c as rdisc.8
  219. * Tue Jan 16 2001 Jeff Johnson <jbj@redhat.com>
  220. - update to ss001110
  221. - doco fixes (#23844).
  222. * Sun Oct 8 2000 Jeff Johnson <jbj@redhat.com>
  223. - update to ss001007.
  224. * Tue Aug 8 2000 Tim Waugh <twaugh@redhat.com>
  225. - fix spelling mistake (#15714).
  226. * Tue Aug 8 2000 Tim Waugh <twaugh@redhat.com>
  227. - turn on -U on machines without TSC (#15223).
  228. * Tue Aug 1 2000 Jeff Johnson <jbj@redhat.com>
  229. - better doco patch (#15050).
  230. * Tue Jul 25 2000 Jakub Jelinek <jakub@redhat.com>
  231. - fix include-glibc/ to work with new glibc 2.2 resolver headers
  232. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  233. - automatic rebuild
  234. * Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
  235. - FHS packaging.
  236. - update to ss000418.
  237. - perform reverse DNS lookup only once for same input.
  238. * Sun Mar 5 2000 Jeff Johnson <jbj@redhat.com>
  239. - include README.ifenslave doco.
  240. - "ping -i N" was broke for N >= 3 (#9929).
  241. - update to ss000121:
  242. -- clockdiff: preserve raw socket errno.
  243. -- ping: change error exit code to 1 (used to be 92,93, ...)
  244. -- ping,ping6: if -w specified, transmit until -c limit is reached.
  245. -- ping,ping6: exit code non-zero if some packets not received within deadline.
  246. * Tue Feb 22 2000 Jeff Johnson <jbj@redhat.com>
  247. - man page corrections (#9690).
  248. * Wed Feb 9 2000 Jeff Johnson <jbj@jbj.org>
  249. - add ifenslave.
  250. * Thu Feb 3 2000 Elliot Lee <sopwith@redhat.com>
  251. - List /usr/sbin/rdisc in %files list.
  252. * Thu Jan 27 2000 Jeff Johnson <jbj@redhat.com>
  253. - add remaining binaries.
  254. - casts to remove compilation warnings.
  255. - terminate if -w deadline is reached exactly (#8724).
  256. * Fri Dec 24 1999 Jeff Johnson <jbj@redhat.com>
  257. - create (only ping for now, traceroute et al soon).