source: projects/specs/trunk/t/tftp/tftp-vl.spec @ 3020

Revision 3020, 6.5 KB checked in by shaolin, 13 years ago (diff)
  • tftp: Fixed Requires on server subpackage (s/inetd/xinetd)
Line 
1Summary: The client for the Trivial File Transfer Protocol (TFTP).
2Summary(ja): TFTP (Trivial File Transfer Protocol) クライアント
3Name: tftp
4Version: 0.49
5Release: 2%{?_dist_release}
6License: BSD
7Group: Applications/Internet
8Source: http://www.kernel.org/pub/software/network/tftp/tftp-hpa-%{version}.tar.bz2
9URL: http://www.kernel.org/pub/software/network/tftp/
10
11Patch0: tftp-0.40-remap.patch
12Patch2: tftp-hpa-0.39-tzfix.patch
13Patch3: tftp-0.42-tftpboot.patch
14Patch4: tftp-0.49-chk_retcodes.patch
15Patch5: tftp-hpa-0.49-fortify-strcpy-crash.patch
16Patch6: tftp-0.49-cmd_arg.patch
17Patch7: tftp-hpa-0.49-stats.patch
18
19BuildRequires: tcp_wrappers readline-devel
20BuildRoot: %{_tmppath}/%{name}-%{version}-root
21
22%description
23The Trivial File Transfer Protocol (TFTP) is normally used only for
24booting diskless workstations.  The tftp package provides the user
25interface for TFTP, which allows users to transfer files to and from a
26remote machine.  This program and TFTP provide very little security,
27and should not be enabled unless it is expressly needed.
28
29%description -l ja
30TFTP (Trivial File Transfer Protocol) は通常
31ディスクレスワークステーションの起動時にのみ使われます。
32tftp パッケージはこの TFTP のインタフェースを提供し、リモート機から
33ファイルを転送することが出来ます。このプログラムと TFTP は
34セキュリティ面に於いて非常に弱いので、どうしても必要な場合以外は
35使わない方が良いでしょう。
36
37
38%package server
39Group: System Environment/Daemons
40Summary: The server for the Trivial File Transfer Protocol (TFTP).
41Summary(ja): TFTP (Trivial File Transfer Protocol) サーバ
42Requires: xinetd
43
44
45%description server
46The Trivial File Transfer Protocol (TFTP) is normally used only for
47booting diskless workstations.  The tftp-server package provides the
48server for TFTP, which allows users to transfer files to and from a
49remote machine. TFTP provides very little security, and should not be
50enabled unless it is expressly needed.  The TFTP server is run from
51%{_sysconfdir}/xinetd.d/tftp, and is disabled by default.
52
53%description server -l ja
54TFTP (Trivial File Transfer Protocol) は通常
55ディスクレスワークステーションの起動時にのみ使われます。
56tftp-server パッケージには TFTP のサーバプログラムが収められており、
57リモート機間とのファイル転送を可能にします。このプログラムと TFTP は
58セキュリティ面に於いて非常に弱いので、どうしても必要な場合以外は
59使わない方が良いでしょう。TFTP サーバは /etc/xinetd.d/tftp から起動され、
60デフォルトでは オフにされています。
61
62
63%prep
64%setup -q -n tftp-hpa-%{version}
65%patch0 -p1 -b .zero
66%patch2 -p1 -b .tzfix
67%patch3 -p1 -b .tftpboot
68%patch4 -p1 -b .chk_retcodes
69%patch5 -p1 -b .fortify-strcpy-crash
70%patch6 -p1 -b .cmd_arg
71%patch7 -p1 -b .stats
72
73
74%build
75autoreconf
76%configure
77make %{?_smp_mflags}
78
79
80%install
81rm -rf $RPM_BUILD_ROOT
82mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
83mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,8}
84mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
85mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir}/lib/tftpboot
86
87make INSTALLROOT=${RPM_BUILD_ROOT} SBINDIR=%{_sbindir} MANDIR=%{_mandir} INSTALL='install -p' install
88install -m755 -d -p ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/ ${RPM_BUILD_ROOT}%{_localstatedir}/lib/tftpboot
89sed -e 's:/var:%{_localstatedir}:' -e 's:/usr/sbin:%{_sbindir}:' \
90 tftp-xinetd > ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/tftp
91touch -r tftp-xinetd ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/tftp
92
93
94%clean
95rm -rf $RPM_BUILD_ROOT
96
97
98%post server
99/sbin/service xinetd reload > /dev/null 2>&1 || :
100
101
102%postun server
103if [ $1 = 0 ]; then
104    /sbin/service xinetd reload > /dev/null 2>&1 || :
105fi
106
107
108%files
109%defattr(-,root,root,-)
110%doc README README.security CHANGES
111%{_bindir}/tftp
112%{_mandir}/man1/*
113
114
115%files server
116%defattr(-,root,root,-)
117%doc README README.security CHANGES
118%config(noreplace) %{_sysconfdir}/xinetd.d/tftp
119%dir %{_localstatedir}/lib/tftpboot
120%{_sbindir}/in.tftpd
121%{_mandir}/man8/*
122
123
124%changelog
125* Sat Mar 19 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.49-2
126- Fixed Requires on server subpackage (s/inetd/xinetd)
127
128* Sat Mar 19 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.49-1
129- updated to 0.49; patches added and revised based on Fedora 0.49-8
130- restored the config file for xinetd
131- s/BuildPreReq/BuildRequires/
132
133* Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 0.42-4vl5
134- applied new versioning policy, spec in utf-8
135
136* Sat Apr 15 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.42-3vl1
137- rebuilt with readline 5.1
138- new upstream release
139- added patches from Fedora
140  * Mon Apr 10 2006 Radek Vok叩l <rvokal@redhat.com> 0.42-3
141  - show localtime instead of GMT (#172274)
142  * Wed Mar 22 2006 Radek Vok叩l <rvokal@redhat.com> 0.42-2
143  - fix double free error when hitting ^C (#186201)
144
145* Sat May 28 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.40-6vl1
146- updated to 0.40 based on Fedora
147  * Tue Apr 19 2005 Radek Vokal <rvokal@redhat.com> 0.40-6
148  - fix remap rules convert error <pjones@redhat.com>
149- changed tftp Group
150
151* Thu Jul 24 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.33-2vl1
152- updated to 0.33
153- rebuild with new toolchains
154- s/Copyright/License/
155- add BuildPreReq on tcp_wrappers (based on Rawhide)
156
157* Wed Jan 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
158- 0.16-5vl1
159- use better macros (%%{_bindir},%%{_sbindir},%%{_mandir})
160- added Japanese summary and description
161
162* Fri Feb 11 2000 Bill Nottingham <notting@redhat.com>
163- fix description
164
165* Wed Feb  9 2000 Jeff Johnson <jbj@redhat.com>
166- compress man pages (again).
167
168* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
169- man pages are compressed
170- fix description and summary
171
172* Tue Jan  4 2000 Bill Nottingham <notting@redhat.com>
173- split client and server
174
175* Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com>
176- update to 0.16.
177
178* Sat Aug 28 1999 Jeff Johnson <jbj@redhat.com>
179- update to 0.15.
180
181* Wed Apr  7 1999 Jeff Johnson <jbj@redhat.com>
182- tftpd should truncate file when overwriting (#412)
183
184* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
185- auto rebuild in the new build environment (release 22)
186
187* Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
188- compile for 6.0.
189
190* Fri Aug  7 1998 Jeff Johnson <jbj@redhat.com>
191- build root
192
193* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
194- translations modified for de, fr, tr
195
196* Mon Sep 22 1997 Erik Troan <ewt@redhat.com>
197- added check for getpwnam() failure
198
199* Tue Jul 15 1997 Erik Troan <ewt@redhat.com>
200- initial build
Note: See TracBrowser for help on using the repository browser.