source: projects/specs/trunk/i/iputils/iputils-vl.spec @ 8799

Revision 8799, 10.0 KB checked in by daisuke, 10 years ago (diff)

iputils:

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