Search
j0ke.net Open Build Service
>
Projects
>
server:pxe
>
tftp-hpa
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 9
[-]
[+]
Added
tftp.spec
@@ -0,0 +1,260 @@ +# +# spec file for package tftp (Version 0.48) +# +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + + +Name: tftp +%if 0%{?suse_version} > 1110 +BuildRequires: binutils-devel +%endif +BuildRequires: tcpd-devel +Url: http://www.kernel.org/pub/software/network/tftp/ +License: BSD 3-Clause +Group: Productivity/Networking/Ftp/Clients +Requires: inet-daemon netcfg +AutoReqProv: on +Version: 0.48 +Release: 101 +Summary: Trivial File Transfer Protocol (TFTP) +Source: tftp-hpa-git-%{version}.tar.bz2 +Source1: tftp.xinetd +Patch: tftp-hpa-0.43_include_sys_params.patch +Patch1: tftp-hpa-0.46_colon_check.patch +Patch2: tftp-hpa-0.43_readline.diff +Patch3: tftp-hpa-0.46_libedit.patch +Patch42: tftp-hpa-0.43_old-autoconf.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +The Trivial File Transfer Protocol (TFTP) is normally used only for +booting diskless workstations and for getting or saving network +component configuration files. + + + +Authors: +-------- + H. Peter Anvin <hpa@zytor.com> + +%prep +%setup -n tftp-hpa-git-%version +%patch +%patch1 +%patch2 +%patch3 +%if 0%{?suse_version} < 1030 +%patch42 +%endif + +%build +autoreconf -fi +%configure \ + --enable-largefile \ + --with-tcpwrappers \ + --with-remap \ + --without-readline \ + --without-editline \ + --with-ipv6 +%{__make} + +%install +%makeinstall INSTALLROOT="%{buildroot}" MANDIR="%{_mandir}" +%{__install} -D -m 0644 %{S:1} %{buildroot}/etc/xinetd.d/tftp + +%clean +%{__rm} -rf $RPM_BUILD_ROOT; + +%files +%defattr(-,root,root) +%doc README README.security tftpd/sample.rules +%{_bindir}/tftp +%{_sbindir}/in.tftpd +%{_mandir}/man1/tftp.1.gz +%{_mandir}/man8/in.tftpd.8.gz +%{_mandir}/man8/tftpd.8.gz +%config(noreplace) /etc/xinetd.d/tftp + +%changelog +* Mon Sep 01 2008 mrueckert@suse.de +- drop lineedit support again +- fix build to include %%{optflags} with using configure +* Wed Aug 27 2008 olh@suse.de +- do not require autoconf 2.61 + binutils-devel is not available in 11.0 or earlier +* Wed Aug 06 2008 kkeil@suse.de +- Update to current git version with enhanced IPv6 support included +* Fri Jul 18 2008 kkeil@suse.de +- Update to git version 0.48 for mainline compatibility; code is + still the same but formatting was cleaned up +- Implement IPv6 (fate #304343) +* Thu Feb 01 2007 mrueckert@suse.de +- update to version 0.48: + - Unbreak -l -s in the server, which was broken in 0.47. +- additional changes from 0.47: + - Add -L option to the server to run standalone without + detaching from the shell. + - Parallel make fix. +* Tue Jan 09 2007 mrueckert@suse.de +- update to version 0.46: + - Minor portability improvements. +- additional change from 0.45: + Add -l (literal) option to the client, to override the special + treatment of the colon (:) character as a hostname separator. +- replaced tftp-hpa-0.43_syntax.diff with tftp-hpa-0.46_colon_check.patch: + restore a behavior which was broken with 0.35 +- merged tftp-hpa-0.43_signdness.patch with + tftp-hpa-0.43_bcopy_secfix.patch. new patch: + tftp-hpa-0.46_bcopy_secfix.patch. +- added tftp-hpa-0.46_libedit.patch: + Build against libedit to enable lineediting support. +* Thu Dec 07 2006 mrueckert@suse.de +- update to version 0.44: + - Allow the client to specify a range of local port numbers, just + like the server can. + - Fix sending SIGHUP to update the regular expression table. +* Fri Oct 20 2006 mrueckert@suse.de +- update to version 0.43: + - Fix double-free error on ^c in client. + - Try to deal with clients that send TFTP requests to broadcasts + (apparently some recent Sun boxes do this instead of using the + address told by DHCP. Bad Sun! Bad Sun!) + - Portability fixes. +- removed first chunk from tftp-hpa-0.40.diff and renamed it to + tftp-hpa-0.43_include_sys_params.patch. the first chunk was + fixed upstream. +- patches rediffed and renamed: + tftp-bcopy-secfix.diff -> tftp-hpa-0.43_bcopy_secfix.patch + tftp-hpa-0.40.readline.diff -> tftp-hpa-0.43_readline.diff + tftp-hpa-0.40-syntax.diff -> tftp-hpa-0.43_syntax.diff +- added tftp-hpa-0.43_signdness.patch: + fixed signedness warnings which where mostlikely caused by the + bcopy fixes. +* Tue Mar 14 2006 mrueckert@suse.de +- update to version 0.42: + o Try to disable path MTU discovery for TFTP connections (it's + useless anyway.) (0.42) + o Add a hack to allow the admin to specify a range of local port + numbers to use. (0.42) + o Fix local IP number handling on systems which present + IP_RECVDSTADDR in recvmsg(). (0.42) + o Fix bug by which patterns of the form \U\1 weren't converted + correctly. (0.41) +* Tue Mar 14 2006 mrueckert@suse.de +- removed tftp-hpa-0.40.make.diff +- removed autoreconf -fi. it caused the builderrors +- minimized the build/install sections +* Wed Jan 25 2006 mls@suse.de +- converted neededforbuild to BuildRequires +* Thu Jun 23 2005 mrueckert@suse.de +- Do not install xinetd config with executable flag. +- Added tcpd-devel so we can build with libwrap +- Do not let the build process delete aconfig.h at the wrong time. +* Tue Feb 08 2005 mmj@suse.de +- Update to tftp-hpa-0.40 including: + o Fix timeout bug + o Support perl style \U...\E and \L...\E, as well as allow + matching rules to be inverted (execute if rule *doesn't* match.) + o Fix bug which would cause "r" remapping rules to be incorrectly + rejected. +* Wed Oct 27 2004 mmj@suse.de +- Fix security hole with possibly overflowing bcopy [#47676] +* Fri Sep 03 2004 mmj@suse.de +- Update to tftp-hpa-0.38 including portability fixes +* Thu Aug 12 2004 mmj@suse.de +- Update to tftp-hpa-0.37 which fixes a pathology where a client + sending ACKs for the wrong packet can prevent proper retransmission. +* Mon Feb 09 2004 mmj@suse.de +- Update to tftp-hpa-0.36 which is a portability release +* Sat Jan 10 2004 mmj@suse.de +- Update to tftp-hpa-0.35: + o Add an option to control the maximum value of blksize + negotiated. + o Removed workaround for obsolete Cygwin problem. + o Don't use getopt() -- the -c option doesn't work correctly + since it depends on the ordering of arguments and options. + It is now possible to do: + tftp -m binary hostname -c get filename + This was previous possible by doing: + tftp -m binary -c get hostname:filename + ... but it seemed that was counterintuitive to people. + o Somewhat improved configure scripts. +* Fri Oct 17 2003 mmj@suse.de +- Don't build as root +* Wed Jul 02 2003 mmj@suse.de +- Add patch from mls to fix syntax