iputils-vl.spec 10 KB

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