iputils-vl.spec 11 KB

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