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

Revision 3008, 6.3 KB checked in by shaolin, 13 years ago (diff)
  • tftp: updated to 0.49
Line 
1Summary: The client for the Trivial File Transfer Protocol (TFTP).
2Summary(ja): TFTP (Trivial File Transfer Protocol) クライアント
3Name: tftp
4Version: 0.49
5Release: 1%{?_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: inetd
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-1
126- updated to 0.49; patches added and revised based on Fedora 0.49-8
127- restored the config file for xinetd
128- s/BuildPreReq/BuildRequires/
129
130* Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 0.42-4vl5
131- applied new versioning policy, spec in utf-8
132
133* Sat Apr 15 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.42-3vl1
134- rebuilt with readline 5.1
135- new upstream release
136- added patches from Fedora
137  * Mon Apr 10 2006 Radek Vok叩l <rvokal@redhat.com> 0.42-3
138  - show localtime instead of GMT (#172274)
139  * Wed Mar 22 2006 Radek Vok叩l <rvokal@redhat.com> 0.42-2
140  - fix double free error when hitting ^C (#186201)
141
142* Sat May 28 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.40-6vl1
143- updated to 0.40 based on Fedora
144  * Tue Apr 19 2005 Radek Vokal <rvokal@redhat.com> 0.40-6
145  - fix remap rules convert error <pjones@redhat.com>
146- changed tftp Group
147
148* Thu Jul 24 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.33-2vl1
149- updated to 0.33
150- rebuild with new toolchains
151- s/Copyright/License/
152- add BuildPreReq on tcp_wrappers (based on Rawhide)
153
154* Wed Jan 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
155- 0.16-5vl1
156- use better macros (%%{_bindir},%%{_sbindir},%%{_mandir})
157- added Japanese summary and description
158
159* Fri Feb 11 2000 Bill Nottingham <notting@redhat.com>
160- fix description
161
162* Wed Feb  9 2000 Jeff Johnson <jbj@redhat.com>
163- compress man pages (again).
164
165* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
166- man pages are compressed
167- fix description and summary
168
169* Tue Jan  4 2000 Bill Nottingham <notting@redhat.com>
170- split client and server
171
172* Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com>
173- update to 0.16.
174
175* Sat Aug 28 1999 Jeff Johnson <jbj@redhat.com>
176- update to 0.15.
177
178* Wed Apr  7 1999 Jeff Johnson <jbj@redhat.com>
179- tftpd should truncate file when overwriting (#412)
180
181* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
182- auto rebuild in the new build environment (release 22)
183
184* Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
185- compile for 6.0.
186
187* Fri Aug  7 1998 Jeff Johnson <jbj@redhat.com>
188- build root
189
190* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
191- translations modified for de, fr, tr
192
193* Mon Sep 22 1997 Erik Troan <ewt@redhat.com>
194- added check for getpwnam() failure
195
196* Tue Jul 15 1997 Erik Troan <ewt@redhat.com>
197- initial build
Note: See TracBrowser for help on using the repository browser.