1 |
brianr |
1.2 |
# $Id: smeserver-tftp-server.spec,v 1.1 2020/10/29 18:46:47 brianr Exp $ |
2 |
brianr |
1.1 |
# Authority: nocvs |
3 |
|
|
# Name: Trevor Batley |
4 |
|
|
|
5 |
|
|
%define name smeserver-tftp-server |
6 |
|
|
%define version 1.2 |
7 |
brianr |
1.2 |
%define release 7 |
8 |
brianr |
1.1 |
|
9 |
|
|
Summary: Wrapper for tftp-server for the Trivial File Transfer Protocol (TFTP). |
10 |
|
|
Name: %{name} |
11 |
|
|
Version: %{version} |
12 |
|
|
Release: %{release}%{?dist} |
13 |
|
|
License: GPL |
14 |
|
|
Group: Network |
15 |
|
|
Source: %{name}-%{version}.tar.gz |
16 |
|
|
Requires: smeserver-release >= 7.0 tftp-server >= 0.39 |
17 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
18 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
|
|
BuildArch: noarch |
20 |
|
|
Requires: ipsvd >= 0.11.1 |
21 |
|
|
Patch1: smeserver-tftp-server-1.2-dbdefaults.patch |
22 |
|
|
Patch2: smeserver-tftp-server-1.2-refuse.patch |
23 |
|
|
Patch3: smeserver-tftp-server-1.2-migrate.patch |
24 |
|
|
Patch4: smeserver-tftp-server-1.2-allow.patch |
25 |
|
|
Patch5: smeserver-tftp-server-1.2-blksize.patch |
26 |
|
|
Patch6: smeserver-tftp-server-1.2-blksize-check.patch |
27 |
|
|
|
28 |
|
|
%description |
29 |
|
|
smeserver wrapper for tftp-server |
30 |
|
|
The Trivial File Transfer Protocol (TFTP) is normally used only for |
31 |
|
|
booting diskless workstations. The tftp package provides the user |
32 |
|
|
interface for TFTP, which allows users to transfer files to and from a |
33 |
|
|
remote machine. This program and TFTP provide very little security, |
34 |
|
|
and should not be enabled unless it is expressly needed. |
35 |
|
|
|
36 |
|
|
%prep |
37 |
|
|
%setup -q -n %{name}-%{version} |
38 |
|
|
%patch1 -p1 |
39 |
|
|
%patch2 -p1 |
40 |
|
|
%patch3 -p1 |
41 |
|
|
%patch4 -p1 |
42 |
|
|
%patch5 -p1 |
43 |
|
|
%patch6 -p1 |
44 |
|
|
|
45 |
|
|
%build |
46 |
|
|
perl createlinks |
47 |
|
|
|
48 |
|
|
%install |
49 |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
50 |
|
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
51 |
|
|
/bin/rm -f %{name}-%{version}-filelist |
52 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
53 |
|
|
|
54 |
brianr |
1.2 |
%post |
55 |
|
|
systemctl enable tftp |
56 |
|
|
systemctl start tftp |
57 |
|
|
|
58 |
|
|
|
59 |
brianr |
1.1 |
%clean |
60 |
|
|
rm -rf $RPM_BUILD_ROOT |
61 |
|
|
|
62 |
|
|
%files -f %{name}-%{version}-filelist |
63 |
|
|
%defattr(-,root,root) |
64 |
|
|
|
65 |
|
|
%changelog |
66 |
brianr |
1.2 |
* Thu Oct 29 2020 Brian Read <brianr@bjsystems.co.uk> 1.2-7.sme |
67 |
|
|
- Initial import to SME10 tree [SME: 11074] |
68 |
|
|
|
69 |
brianr |
1.1 |
* Mon Nov 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-6 |
70 |
|
|
- Add a blksize check [SME:10646] |
71 |
|
|
|
72 |
|
|
* Thu Mar 29 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-5 |
73 |
|
|
- fix refuse setting when no key is set [10549] |
74 |
|
|
- add blksize option |
75 |
|
|
|
76 |
|
|
* Thu Mar 31 2016 Trevor Batley <trevorbatley@users.sourceforge.net> 1.2-4 |
77 |
|
|
- added whitespace before line in /etc/hosts.allow fragment [9417] |
78 |
|
|
|
79 |
|
|
* Sun Mar 20 2016 Trevor Batley <trevorbatley@users.sourceforge.net> 1.2-3 |
80 |
|
|
- Added migrate fragments for the fixed default values in 9043 [SME 9351] |
81 |
|
|
- Added -r (--refuse) option [SME 9248] |
82 |
|
|
- Fixed -u option on updsvd (missing space after -u) [SME 9316] |
83 |
|
|
- Added disabled option on logging [SME 9317] |
84 |
|
|
|
85 |
|
|
* Thu Mar 10 2016 Trevor Batley <trevorbatley@users.sourceforge.net> 1.2-2 |
86 |
|
|
- Fixed default values [SME 9043] |
87 |
|
|
|
88 |
|
|
* Fri Sep 04 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-1.sme |
89 |
|
|
- Initial release to contribs9 |
90 |
|
|
|
91 |
|
|
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
92 |
|
|
- Clean up spec so package can be built by koji/plague |
93 |
|
|
|
94 |
|
|
* Sat Apr 28 2007 Trevor Batley <trevorbatley@users.sourceforge.net> 1.0-1 |
95 |
|
|
- Fixed incorrect createlinks for /etc/rc.d/init.d/supervise/tftpd to daemontools |
96 |
|
|
- Removed symlink from /service/tftpd to /var/service/tftpd and used createlinks instead |
97 |
|
|
- Changed %preun from config to /sbin/e-smith/db config and /etc/init.d to /etc/rc.d/init.d |
98 |
|
|
- Removed %BuildPreReq as this applied when it included tftp-server |
99 |
|
|
- Added %BuildArch: noarch as this wrapper does NOT require any specific architecture |
100 |
|
|
|
101 |
|
|
* Wed Apr 25 2007 Trevor Batley <trevorbatley@users.sourceforge.net> 1.0-1 |
102 |
|
|
- Updated Release tag to new smeserver standard |
103 |
|
|
- Changed contrib to just contain the wrapper code and require tftp-server from centos |
104 |
|
|
- As it's a wrapper, changed verion number to it's own (rather that that of tftp-server) |
105 |
|
|
|
106 |
|
|
* Sun Dec 17 2006 Charlie Brady <charlieb@e-smith.com> |
107 |
|
|
- Replace deprecated Copyright header with License. |
108 |
|
|
|
109 |
|
|
* Tue Apr 4 2006 Trevor Batley <trevorbatley@users.sourceforge.net> |
110 |
|
|
- Set tftpd to disabled and stop as part of pre-uninstall script |
111 |
|
|
- Set default user to root |
112 |
|
|
|
113 |
|
|
* Mon Mar 20 2006 Trevor Batley <trevorbatley@users.sourceforge.net> |
114 |
|
|
- Repackage for smeserver v7.x |
115 |
|
|
- Based on repackaging already done by Daniel Warnet <daniel@tw.co.nz> |
116 |
|
|
|
117 |
|
|
* Mon Sep 13 2004 Elliot Lee <sopwith@redhat.com> 0.39-1 |
118 |
|
|
- Update to new version makes tftp work, says upstream. |
119 |
|
|
- Remove malta patch |
120 |
|
|
|
121 |
|
|
* Mon Sep 13 2004 Elliot Lee <sopwith@redhat.com> 0.38-1 |
122 |
|
|
- Update to new version fixes #131736 |
123 |
|
|
|
124 |
|
|
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> |
125 |
|
|
- rebuilt |
126 |
|
|
|
127 |
|
|
* Thu Jun 03 2004 Elliot Lee <sopwith@redhat.com> 0.36-1 |
128 |
|
|
- Update version |
129 |
|
|
|
130 |
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> |
131 |
|
|
- rebuilt |
132 |
|
|
|
133 |
|
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> |
134 |
|
|
- rebuilt |
135 |
|
|
|
136 |
|
|
* Fri Apr 11 2003 Elliot Lee <sopwith@redhat.com> |
137 |
|
|
- 0.33 |
138 |
|
|
- Add /tftpboot directory (#88204) |
139 |
|
|
|
140 |
|
|
* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com> |
141 |
|
|
- rebuilt |
142 |
|
|
|
143 |
|
|
* Sun Feb 23 2003 Tim Powers <timp@redhat.com> |
144 |
|
|
- add BuildPreReq on tcp_wrappers |
145 |
|
|
|
146 |
|
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com> |
147 |
|
|
- rebuilt |
148 |
|
|
|
149 |
|
|
* Mon Nov 11 2002 Elliot Lee <sopwith@redhat.com> 0.32-1 |
150 |
|
|
- Update to 0.32 |
151 |
|
|
|
152 |
|
|
* Wed Oct 23 2002 Elliot Lee <sopwith@redhat.com> 0.30-1 |
153 |
|
|
- Fix #55789 |
154 |
|
|
- Update to 0.30 |
155 |
|
|
|
156 |
|
|
* Thu Jun 27 2002 Elliot Lee <sopwith@redhat.com> |
157 |
|
|
- Try applying HJ's patch from #65476 |
158 |
|
|
|
159 |
|
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com> |
160 |
|
|
- automated rebuild |
161 |
|
|
|
162 |
|
|
* Mon Jun 17 2002 Elliot Lee <sopwith@redhat.com> |
163 |
|
|
- Update to 0.29 |
164 |
|
|
|
165 |
|
|
* Thu May 23 2002 Tim Powers <timp@redhat.com> |
166 |
|
|
- automated rebuild |
167 |
|
|
|
168 |
|
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com> |
169 |
|
|
- automated rebuild |
170 |
|
|
|
171 |
|
|
* Tue Dec 18 2001 Elliot Lee <sopwith@redhat.com> 0.17-15 |
172 |
|
|
- Update to tftp-hpa-0.28 (bug #56131) |
173 |
|
|
- Remove include/arpa/tftp.h to fix #57259 |
174 |
|
|
- Add resource limits in tftp-xinetd (#56722) |
175 |
|
|
|
176 |
|
|
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com> |
177 |
|
|
- Bump release + rebuild. |
178 |
|
|
|
179 |
|
|
* Tue Jun 12 2001 Helge Deller <hdeller@redhat.de> (0.17-13) |
180 |
|
|
- updated tftp-hpa source to tftp-hpa-0.17 |
181 |
|
|
- tweaked specfile with different defines for tftp-netkit and tftp-hpa version |
182 |
|
|
- use hpa's tftpd.8 man page instead of the netkits one |
183 |
|
|
|
184 |
|
|
* Mon May 07 2001 Helge Deller <hdeller@redhat.de> |
185 |
|
|
- rebuilt in 7.1.x |
186 |
|
|
|
187 |
|
|
* Wed Apr 18 2001 Helge Deller <hdeller@redhat.de> |
188 |
|
|
- fix tftp client's put problems (#29529) |
189 |
|
|
- update to tftp-hpa-0.16 |
190 |
|
|
|
191 |
|
|
* Wed Apr 4 2001 Jakub Jelinek <jakub@redhat.com> |
192 |
|
|
- don't let configure to guess compiler, it can pick up egcs |
193 |
|
|
|
194 |
|
|
* Thu Feb 08 2001 Helge Deller <hdeller@redhat.de> |
195 |
|
|
- changed "wait" in xinetd file to "yes" (hpa-tftpd forks and exits) (#26467) |
196 |
|
|
- fixed hpa-tftpd to handle files greater than 32MB (#23725) |
197 |
|
|
- added "-l" flag to hpa-tftpd for file-logging (#26467) |
198 |
|
|
- added description for "-l" to the man-page |
199 |
|
|
|
200 |
|
|
* Thu Feb 08 2001 Helge Deller <hdeller@redhat.de> |
201 |
|
|
- updated tftp client to 0.17 stable (#19640), |
202 |
|
|
- drop dependency on xinetd for tftp client (#25051), |
203 |
|
|
|
204 |
|
|
* Wed Jan 17 2001 Jeff Johnson <jbj@redhat.com> |
205 |
|
|
- xinetd shouldn't wait on tftp (which forks) (#23923). |
206 |
|
|
|
207 |
|
|
* Sat Jan 6 2001 Jeff Johnson <jbj@redhat.com> |
208 |
|
|
- fix to permit tftp put's (#18128). |
209 |
|
|
- startup as root with chroot to /tftpboot with early reversion to nobody |
210 |
|
|
is preferable to starting as nobody w/o ability to chroot. |
211 |
|
|
- %%post is needed by server, not client. Add %%postun for erasure as well. |
212 |
|
|
|
213 |
|
|
* Wed Aug 23 2000 Nalin Dahyabhai <nalin@redhat.com> |
214 |
|
|
- default to being disabled |
215 |
|
|
|
216 |
|
|
* Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com> |
217 |
|
|
- correct group. |
218 |
|
|
|
219 |
|
|
* Tue Jul 25 2000 Nalin Dahyabhai <nalin@redhat.com> |
220 |
|
|
- change user from root to nobody |
221 |
|
|
|
222 |
|
|
* Sat Jul 22 2000 Jeff Johnson <jbj@redhat.com> |
223 |
|
|
- update to tftp-hpa-0.14 (#14003). |
224 |
|
|
- add server_args (#14003). |
225 |
|
|
- remove -D_BSD_SOURCE (#14003). |
226 |
|
|
|
227 |
|
|
* Fri Jul 21 2000 Nalin Dahyabhai <nalin@redhat.com> |
228 |
|
|
- cook up an xinetd config file for tftpd |
229 |
|
|
|
230 |
|
|
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com> |
231 |
|
|
- automatic rebuild |
232 |
|
|
|
233 |
|
|
* Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com> |
234 |
|
|
- FHS packaging. |
235 |
|
|
- update to 0.17. |
236 |
|
|
|
237 |
|
|
* Fri May 5 2000 Matt Wilson <msw@redhat.com> |
238 |
|
|
- use _BSD_SOURCE for hpa's tftpd so we get BSD signal semantics. |
239 |
|
|
|
240 |
|
|
* Fri Feb 11 2000 Bill Nottingham <notting@redhat.com> |
241 |
|
|
- fix description |
242 |
|
|
|
243 |
|
|
* Wed Feb 9 2000 Jeff Johnson <jbj@redhat.com> |
244 |
|
|
- compress man pages (again). |
245 |
|
|
|
246 |
|
|
* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com> |
247 |
|
|
- man pages are compressed |
248 |
|
|
- fix description and summary |
249 |
|
|
|
250 |
|
|
* Tue Jan 4 2000 Bill Nottingham <notting@redhat.com> |
251 |
|
|
- split client and server |
252 |
|
|
|
253 |
|
|
* Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com> |
254 |
|
|
- update to 0.16. |
255 |
|
|
|
256 |
|
|
* Sat Aug 28 1999 Jeff Johnson <jbj@redhat.com> |
257 |
|
|
- update to 0.15. |
258 |
|
|
|
259 |
|
|
* Wed Apr 7 1999 Jeff Johnson <jbj@redhat.com> |
260 |
|
|
- tftpd should truncate file when overwriting (#412) |
261 |
|
|
|
262 |
|
|
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
263 |
|
|
- auto rebuild in the new build environment (release 22) |
264 |
|
|
|
265 |
|
|
* Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com> |
266 |
|
|
- compile for 6.0. |
267 |
|
|
|
268 |
|
|
* Fri Aug 7 1998 Jeff Johnson <jbj@redhat.com> |
269 |
|
|
- build root |
270 |
|
|
|
271 |
|
|
* Mon Apr 27 1998 Prospector System <bugs@redhat.com> |
272 |
|
|
- translations modified for de, fr, tr |
273 |
|
|
|
274 |
|
|
* Mon Sep 22 1997 Erik Troan <ewt@redhat.com> |
275 |
|
|
- added check for getpwnam() failure |
276 |
|
|
|
277 |
|
|
* Tue Jul 15 1997 Erik Troan <ewt@redhat.com> |
278 |
|
|
- initial build |