iputils-vl.spec 11 KB

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