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