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