Update version for release 5.3
[tftp-hpa.git] / tftp.spec.in
blobcd5e4cc25116297e21eb7f22aea1d2991dcfb071
1 Summary: The client for the Trivial File Transfer Protocol (TFTP).
2 Name: tftp
3 Version: @@VERSION@@
4 Release: 1
5 License: BSD
6 Group: Applications/Internet
7 Source0: http://www.kernel.org/pub/software/network/tftp/tftp-hpa-%{version}.tar.gz
8 BuildRequires: tcp_wrappers-devel
9 BuildRoot: %{_tmppath}/%{name}-root
11 %description
12 The Trivial File Transfer Protocol (TFTP) is normally used only for
13 booting diskless workstations. The tftp package provides the user
14 interface for TFTP, which allows users to transfer files to and from a
15 remote machine. This program and TFTP provide very little security,
16 and should not be enabled unless it is expressly needed.
18 %package server
19 Group: System Environment/Daemons
20 Summary: The server for the Trivial File Transfer Protocol (TFTP).
21 Requires: xinetd
23 %description server
24 The Trivial File Transfer Protocol (TFTP) is normally used only for
25 booting diskless workstations. The tftp-server package provides the
26 server for TFTP, which allows users to transfer files to and from a
27 remote machine. TFTP provides very little security, and should not be
28 enabled unless it is expressly needed. The TFTP server is run from
29 /etc/xinetd.d/tftp, and is disabled by default on Red Hat Linux systems.
31 %prep
32 %setup -q -n tftp-hpa-%{version}
34 %build
36 %configure
37 make %{?_smp_mflags}
39 %install
40 rm -rf ${RPM_BUILD_ROOT}
41 mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
42 mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,8}
43 mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
45 make INSTALLROOT=${RPM_BUILD_ROOT} \
46 SBINDIR=%{_sbindir} MANDIR=%{_mandir} \
47 install
48 install -m755 -d ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/ ${RPM_BUILD_ROOT}/tftpboot
49 install -m644 tftp-xinetd ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/tftp
51 %post server
52 /sbin/service xinetd reload > /dev/null 2>&1 || :
54 %postun server
55 if [ $1 = 0 ]; then
56 /sbin/service xinetd reload > /dev/null 2>&1 || :
59 %clean
60 rm -rf ${RPM_BUILD_ROOT}
62 %files
63 %defattr(-,root,root)
64 %{_bindir}/tftp
65 %{_mandir}/man1/*
67 %files server
68 %defattr(-,root,root)
69 %config(noreplace) %{_sysconfdir}/xinetd.d/tftp
70 %dir /tftpboot
71 %{_sbindir}/in.tftpd
72 %{_mandir}/man8/*
74 %changelog
75 * Tue Sep 14 2004 H. Peter Anvin <hpa@zytor.com>
76 - removed completely broken "Malta" patch.
77 - integrated into build machinery so rpm -ta works.
79 * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
80 - rebuilt
82 * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
83 - rebuilt
85 * Fri Apr 11 2003 Elliot Lee <sopwith@redhat.com>
86 - 0.33
87 - Add /tftpboot directory (#88204)
89 * Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
90 - rebuilt
92 * Sun Feb 23 2003 Tim Powers <timp@redhat.com>
93 - add BuildPreReq on tcp_wrappers
95 * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
96 - rebuilt
98 * Mon Nov 11 2002 Elliot Lee <sopwith@redhat.com> 0.32-1
99 - Update to 0.32
101 * Wed Oct 23 2002 Elliot Lee <sopwith@redhat.com> 0.30-1
102 - Fix #55789
103 - Update to 0.30
105 * Thu Jun 27 2002 Elliot Lee <sopwith@redhat.com>
106 - Try applying HJ's patch from #65476
108 * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
109 - automated rebuild
111 * Mon Jun 17 2002 Elliot Lee <sopwith@redhat.com>
112 - Update to 0.29
114 * Thu May 23 2002 Tim Powers <timp@redhat.com>
115 - automated rebuild
117 * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
118 - automated rebuild
120 * Tue Dec 18 2001 Elliot Lee <sopwith@redhat.com> 0.17-15
121 - Add patch4: netkit-tftp-0.17-defaultport.patch for bug #57562
122 - Update to tftp-hpa-0.28 (bug #56131)
123 - Remove include/arpa/tftp.h to fix #57259
124 - Add resource limits in tftp-xinetd (#56722)
126 * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
127 - Bump release + rebuild.
129 * Tue Jun 12 2001 Helge Deller <hdeller@redhat.de> (0.17-13)
130 - updated tftp-hpa source to tftp-hpa-0.17
131 - tweaked specfile with different defines for tftp-netkit and tftp-hpa version
132 - use hpa's tftpd.8 man page instead of the netkits one
134 * Mon May 07 2001 Helge Deller <hdeller@redhat.de>
135 - rebuilt in 7.1.x
137 * Wed Apr 18 2001 Helge Deller <hdeller@redhat.de>
138 - fix tftp client's put problems (#29529)
139 - update to tftp-hpa-0.16
141 * Wed Apr 4 2001 Jakub Jelinek <jakub@redhat.com>
142 - don't let configure to guess compiler, it can pick up egcs
144 * Thu Feb 08 2001 Helge Deller <hdeller@redhat.de>
145 - changed "wait" in xinetd file to "yes" (hpa-tftpd forks and exits) (#26467)
146 - fixed hpa-tftpd to handle files greater than 32MB (#23725)
147 - added "-l" flag to hpa-tftpd for file-logging (#26467)
148 - added description for "-l" to the man-page
150 * Thu Feb 08 2001 Helge Deller <hdeller@redhat.de>
151 - updated tftp client to 0.17 stable (#19640),
152 - drop dependency on xinetd for tftp client (#25051),
154 * Wed Jan 17 2001 Jeff Johnson <jbj@redhat.com>
155 - xinetd shouldn't wait on tftp (which forks) (#23923).
157 * Sat Jan 6 2001 Jeff Johnson <jbj@redhat.com>
158 - fix to permit tftp put's (#18128).
159 - startup as root with chroot to /tftpboot with early reversion to nobody
160 is preferable to starting as nobody w/o ability to chroot.
161 - %%post is needed by server, not client. Add %%postun for erasure as well.
163 * Wed Aug 23 2000 Nalin Dahyabhai <nalin@redhat.com>
164 - default to being disabled
166 * Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com>
167 - correct group.
169 * Tue Jul 25 2000 Nalin Dahyabhai <nalin@redhat.com>
170 - change user from root to nobody
172 * Sat Jul 22 2000 Jeff Johnson <jbj@redhat.com>
173 - update to tftp-hpa-0.14 (#14003).
174 - add server_args (#14003).
175 - remove -D_BSD_SOURCE (#14003).
177 * Fri Jul 21 2000 Nalin Dahyabhai <nalin@redhat.com>
178 - cook up an xinetd config file for tftpd
180 * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
181 - automatic rebuild
183 * Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
184 - FHS packaging.
185 - update to 0.17.
187 * Fri May 5 2000 Matt Wilson <msw@redhat.com>
188 - use _BSD_SOURCE for hpa's tftpd so we get BSD signal semantics.
190 * Fri Feb 11 2000 Bill Nottingham <notting@redhat.com>
191 - fix description
193 * Wed Feb 9 2000 Jeff Johnson <jbj@redhat.com>
194 - compress man pages (again).
196 * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
197 - man pages are compressed
198 - fix description and summary
200 * Tue Jan 4 2000 Bill Nottingham <notting@redhat.com>
201 - split client and server
203 * Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com>
204 - update to 0.16.
206 * Sat Aug 28 1999 Jeff Johnson <jbj@redhat.com>
207 - update to 0.15.
209 * Wed Apr 7 1999 Jeff Johnson <jbj@redhat.com>
210 - tftpd should truncate file when overwriting (#412)
212 * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
213 - auto rebuild in the new build environment (release 22)
215 * Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
216 - compile for 6.0.
218 * Fri Aug 7 1998 Jeff Johnson <jbj@redhat.com>
219 - build root
221 * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
222 - translations modified for de, fr, tr
224 * Mon Sep 22 1997 Erik Troan <ewt@redhat.com>
225 - added check for getpwnam() failure
227 * Tue Jul 15 1997 Erik Troan <ewt@redhat.com>
228 - initial build