364356
%global systemctl_bin /usr/bin/systemctl
364356
%global _hardened_build 1
364356
364356
Summary: The client for the Trivial File Transfer Protocol (TFTP)
364356
Name: tftp
364356
Version: 5.2
68076c
Release: 26%{?dist}
364356
License: BSD
364356
Group: Applications/Internet
364356
URL: http://www.kernel.org/pub/software/network/tftp/
364356
Source0: http://www.kernel.org/pub/software/network/tftp/tftp-hpa/tftp-hpa-%{version}.tar.bz2
364356
Source1: tftp.socket
364356
Source2: tftp.service
364356
364356
Patch0: tftp-0.40-remap.patch
364356
Patch2: tftp-hpa-0.39-tzfix.patch
364356
Patch3: tftp-0.42-tftpboot.patch
364356
Patch4: tftp-0.49-chk_retcodes.patch
364356
Patch5: tftp-hpa-0.49-fortify-strcpy-crash.patch
364356
Patch6: tftp-0.49-cmd_arg.patch
364356
Patch7: tftp-hpa-0.49-stats.patch
364356
Patch8: tftp-hpa-5.2-pktinfo.patch
364356
Patch9: tftp-doc.patch
364356
Patch10: tftp-enhanced-logging.patch
68076c
Patch11: tftp-rewrite-macro.patch
68076c
Patch12: tftp-hpa-5.2-covscan.patch
364356
364356
BuildRequires: readline-devel autoconf systemd-units
364356
364356
%description
364356
The Trivial File Transfer Protocol (TFTP) is normally used only for
364356
booting diskless workstations.  The tftp package provides the user
364356
interface for TFTP, which allows users to transfer files to and from a
364356
remote machine.  This program and TFTP provide very little security,
364356
and should not be enabled unless it is expressly needed.
364356
364356
%package server
364356
Group: System Environment/Daemons
364356
Summary: The server for the Trivial File Transfer Protocol (TFTP)
364356
Requires: systemd-units
364356
Requires(post): systemd-units
364356
Requires(postun): systemd-units
364356
364356
%description server
364356
The Trivial File Transfer Protocol (TFTP) is normally used only for
364356
booting diskless workstations.  The tftp-server package provides the
364356
server for TFTP, which allows users to transfer files to and from a
364356
remote machine. TFTP provides very little security, and should not be
364356
enabled unless it is expressly needed.  The TFTP server is run by using
364356
systemd socket activation, and is disabled by default.
364356
364356
%prep
364356
%setup -q -n tftp-hpa-%{version}
364356
%patch0 -p1 -b .zero
364356
%patch2 -p1 -b .tzfix
364356
%patch3 -p1 -b .tftpboot
364356
%patch4 -p1 -b .chk_retcodes
364356
%patch5 -p1 -b .fortify-strcpy-crash
364356
%patch6 -p1 -b .cmd_arg
364356
%patch7 -p1 -b .stats
364356
%patch8 -p1 -b .pktinfo
364356
%patch9 -p1 -b .doc
364356
%patch10 -p1 -b .logging
68076c
%patch11 -p1 -b .rewrite-macro
68076c
%patch12 -p1 -b .covscan
364356
364356
%build
364356
autoreconf
364356
%configure
364356
make %{?_smp_mflags}
364356
364356
%install
364356
rm -rf ${RPM_BUILD_ROOT}
364356
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
364356
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,8}
364356
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
364356
mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir}/lib/tftpboot
364356
mkdir -p ${RPM_BUILD_ROOT}%{_unitdir}
364356
364356
make INSTALLROOT=${RPM_BUILD_ROOT} SBINDIR=%{_sbindir} MANDIR=%{_mandir} INSTALL='install -p' install
364356
364356
install -p -m 644 %SOURCE1 ${RPM_BUILD_ROOT}%{_unitdir}
364356
install -p -m 644 %SOURCE2 ${RPM_BUILD_ROOT}%{_unitdir}
364356
364356
%post server
364356
%systemd_post tftp.socket
364356
364356
%preun server
364356
%systemd_preun tftp.socket
364356
364356
%postun server
364356
%systemd_postun_with_restart tftp.socket
364356
364356
364356
%clean
364356
rm -rf ${RPM_BUILD_ROOT}
364356
364356
%files
364356
%doc README README.security CHANGES
364356
%{_bindir}/tftp
364356
%{_mandir}/man1/*
364356
364356
%files server
364356
%doc README README.security CHANGES
364356
%dir %{_localstatedir}/lib/tftpboot
364356
%{_sbindir}/in.tftpd
364356
%{_mandir}/man8/*
364356
%{_unitdir}/*
364356
364356
%changelog
68076c
* Tue Apr 26 2022 Lukáš Zaoral <lzaoral@redhat.com> - 5.2-26
68076c
- Review and fix issues reported by static analysers (rhbz#2078858)
68076c
68076c
* Wed Apr 20 2022 Lukáš Zaoral <lzaoral@redhat.com> - 5.2-25
68076c
- Fix inconsistent --map-file option spelling in manual (rhbz#2066853)
68076c
- Fix memory corruption in tftpd when filename remapping with macro \x
68076c
  is used (rhbz#2066862)
68076c
364356
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 5.2-24
364356
- Escape macros in %%changelog
364356
364356
* Mon Dec  4 2017 Jan Synáček <jsynacek@redhat.com> - 5.2-23
364356
- remove build dependency on tcp_wrappers (#1518793)
364356
364356
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-22
364356
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
364356
364356
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-21
364356
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
364356
364356
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-20
364356
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
364356
364356
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 5.2-19
364356
- Rebuild for readline 7.x
364356
364356
* Thu Mar  3 2016 Jan Synáček <jsynacek@redhat.com> - 5.2-18
364356
- enhance in.tftpd logging capabilities
364356
364356
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-17
364356
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
364356
364356
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2-16
364356
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
364356
364356
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2-15
364356
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
364356
364356
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2-14
364356
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
364356
364356
* Mon Feb 24 2014 Jan Synáček <jsynacek@redhat.com> - 5.2-13
364356
- add documentation reference to the service file
364356
364356
* Wed Feb 19 2014 Jan Synáček <jsynacek@redhat.com> - 5.2-12
364356
- start socket as well when starting the service
364356
364356
* Thu Feb 13 2014 Jan Synáček <jsynacek@redhat.com> - 5.2-11
364356
- don't depend on xinetd anymore (#1059641)
364356
364356
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2-10
364356
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
364356
364356
* Tue Apr 23 2013 Jan Synáček <jsynacek@redhat.com> - 5.2-9
364356
- harden the package (#955197)
364356
364356
* Fri Apr 19 2013 Jan Synáček <jsynacek@redhat.com> - 5.2-8
364356
- documentation fixes
364356
364356
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2-7
364356
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
364356
364356
* Wed Aug 22 2012 Jan Synáček <jsynacek@redhat.com> - 5.2-6
364356
- add systemd-rpm macros
364356
- Resolves: #850338
364356
364356
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2-5
364356
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
364356
364356
* Thu Jul 19 2012 Jan Synáček <jsynacek@redhat.com> - 5.2.4
364356
- make fedora-review-friendly
364356
364356
* Wed Jul 18 2012 Jan Synáček <jsynacek@redhat.com> - 5.2-4
364356
- update spec: fix Source0
364356
364356
* Wed May 30 2012 Jan Synáček <jsynacek@redhat.com> - 5.2-4
364356
- use systemd instead of xinetd as a default
364356
364356
* Tue May 22 2012 Jan Synáček <jsynacek@redhat.com> - 5.2-3
364356
- provide native systemd service files
364356
- Resolves: #737212
364356
364356
* Wed Jan 04 2012 Jiri Skala <jskala@redhat.com> - 5.2-2
364356
- fixes #739534 - TFTP to an IP alias of FC15 tftp server failed
364356
364356
* Wed Dec 14 2011 Jiri Skala <jskala@redhat.com> - 5.2-1
364356
- updated to latest upstream - 5.2
364356
364356
* Thu Oct 06 2011 Jiri Skala <jskala@redhat.com> - 5.1-1
364356
- updated to latest upstream - 5.1
364356
364356
* Mon Jun 20 2011 Jiri Skala <jskala@redhat.com> - 0.49-9
364356
- fixes #714261 - CVE-2011-2199: buffer overflow when setting utimeout option
364356
364356
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.49-8
364356
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
364356
364356
* Mon Jan 03 2011 Jiri Skala <jskala@redhat.com> - 0.49-7
364356
- fixes #666746 - Packaging mistake: confusing %%doc files patched+unpatched
364356
- fixes printing statistics using -v option
364356
364356
* Fri May 28 2010 Jiri Skala <jskala@redhat.com> - 0.49-6
364356
- patched handling arguments of commands (put)
364356
364356
* Wed Aug 05 2009 Warren Togami <wtogami@redhat.com> - 0.49-5
364356
- Bug #515361 tftp FORTIFY_SOURCE strcpy crash 
364356
364356
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.49-4
364356
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
364356
364356
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.49-3
364356
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
364356
364356
* Thu Jan 15 2009 Jiri Skala <jskala@redhat.com> - 0.49-2
364356
- #473487 - unchecked return values
364356
364356
* Tue Nov 25 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.49-1
364356
- update to 0.49
364356
364356
* Wed May 21 2008 Warren Togami 
364356
- undo symlink stuff completely because they are problematic
364356
  See Bug #447135 for details.
364356
364356
* Wed May 21 2008 Martin Nagy <mnagy@redhat.com> - 0.48-5
364356
- fix troubles caused by added symlink
364356
364356
* Tue May 20 2008 Martin Nagy <mnagy@redhat.com> - 0.48-4
364356
- add symlink to /var/lib/tftpboot
364356
364356
* Mon Mar 03 2008 Martin Nagy <mnagy@redhat.com> - 0.48-3
364356
- changed description (#234099)
364356
364356
* Mon Feb 11 2008 Martin Nagy <mnagy@redhat.com> - 0.48-2
364356
- rebuild for gcc-4.3
364356
364356
* Tue Jan 22 2008 Martin Nagy <mnagy@redhat.com> - 0.48-1
364356
- upgrade to 0.48
364356
- remove the old sigjmp patch (fixed in upstream)
364356
- make some changes in spec file (#226489)
364356
364356
* Tue Jan 22 2008 Martin Nagy <mnagy@redhat.com> - 0.42-6
364356
- changed the location of tftpboot directory to /var/lib/
364356
364356
* Fri Aug 31 2007 Maros Barabas <mbarabas@redhat.com> - 0.42-5
364356
- rebuild
364356
364356
* Mon Feb 19 2007 Maros Barabas <mbarabas@redhat.com> - 0.42-4
364356
- make some changes in spec file (review)
364356
- Resolves #226489
364356
364356
* Mon Dec 04 2006 Maros Barabas <mbarabas@redhat.com> - 0.42-3.2
364356
- change BuildRequires from tcp_wrappers to tcp_wrappers-devel
364356
364356
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.42-3.1
364356
- rebuild
364356
364356
* Mon Apr 10 2006 Radek Vokál <rvokal@redhat.com> 0.42-3
364356
- show localtime instead of GMT (#172274)
364356
364356
* Wed Mar 22 2006 Radek Vokál <rvokal@redhat.com> 0.42-2
364356
- fix double free error when hitting ^C (#186201)
364356
364356
* Wed Feb 22 2006 Radek Vokál <rvokal@redhat.com> 0.42-1
364356
- upgrade to 0.42
364356
364356
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.41-1.2.1
364356
- bump again for double-long bug on ppc(64)
364356
364356
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.41-1.2
364356
- rebuilt for new gcc4.1 snapshot and glibc changes
364356
364356
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
364356
- rebuilt
364356
364356
* Thu Nov 03 2005 Radek Vokal <rvokal@redhat.com> 0.41-1
364356
- upstream update (patterns fixes)
364356
364356
* Tue Apr 19 2005 Radek Vokal <rvokal@redhat.com> 0.40-6
364356
- fix remap rules convert error <pjones@redhat.com>
364356
364356
* Wed Mar 23 2005 Radek Vokal <rvokal@redhat.com> 0.40-5
364356
- use tftp-xinetd from tarball (#143589)
364356
364356
* Fri Mar 04 2005 Radek Vokal <rvokal@redhat.com> 0.40-4
364356
- gcc4 rebuilt
364356
364356
* Sun Feb 27 2005 Florian La Roche <laroche@redhat.com>
364356
- Copyright: -> License
364356
364356
* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 0.40-2
364356
- Rebuilt for new readline.
364356
364356
* Mon Nov 15 2004 Radek Vokal <rvokal@redhat.com> 0.40-1
364356
- Update to new upstream version, fixes #139328
364356
364356
* Mon Sep 13 2004 Elliot Lee <sopwith@redhat.com> 0.39-1
364356
- Update to new version makes tftp work, says upstream.
364356
- Remove malta patch
364356
364356
* Mon Sep 13 2004 Elliot Lee <sopwith@redhat.com> 0.38-1
364356
- Update to new version fixes #131736
364356
364356
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
364356
- rebuilt
364356
364356
* Thu Jun 03 2004 Elliot Lee <sopwith@redhat.com> 0.36-1
364356
- Update version
364356
364356
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
364356
- rebuilt
364356
364356
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
364356
- rebuilt
364356
364356
* Fri Apr 11 2003 Elliot Lee <sopwith@redhat.com>
364356
- 0.33
364356
- Add /tftpboot directory (#88204)
364356
364356
* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
364356
- rebuilt
364356
364356
* Sun Feb 23 2003 Tim Powers <timp@redhat.com>
364356
- add BuildPreReq on tcp_wrappers
364356
364356
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
364356
- rebuilt
364356
364356
* Mon Nov 11 2002 Elliot Lee <sopwith@redhat.com> 0.32-1
364356
- Update to 0.32
364356
364356
* Wed Oct 23 2002 Elliot Lee <sopwith@redhat.com> 0.30-1
364356
- Fix #55789
364356
- Update to 0.30
364356
364356
* Thu Jun 27 2002 Elliot Lee <sopwith@redhat.com>
364356
- Try applying HJ's patch from #65476
364356
364356
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
364356
- automated rebuild
364356
364356
* Mon Jun 17 2002 Elliot Lee <sopwith@redhat.com>
364356
- Update to 0.29
364356
364356
* Thu May 23 2002 Tim Powers <timp@redhat.com>
364356
- automated rebuild
364356
364356
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
364356
- automated rebuild
364356
364356
* Tue Dec 18 2001 Elliot Lee <sopwith@redhat.com> 0.17-15
364356
- Add patch4: netkit-tftp-0.17-defaultport.patch for bug #57562
364356
- Update to tftp-hpa-0.28 (bug #56131)
364356
- Remove include/arpa/tftp.h to fix #57259
364356
- Add resource limits in tftp-xinetd (#56722)
364356
364356
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
364356
- Bump release + rebuild.
364356
364356
* Tue Jun 12 2001 Helge Deller <hdeller@redhat.de> (0.17-13)
364356
- updated tftp-hpa source to tftp-hpa-0.17
364356
- tweaked specfile with different defines for tftp-netkit and tftp-hpa version
364356
- use hpa's tftpd.8 man page instead of the netkits one
364356
364356
* Mon May 07 2001 Helge Deller <hdeller@redhat.de>
364356
- rebuilt in 7.1.x
364356
364356
* Wed Apr 18 2001 Helge Deller <hdeller@redhat.de>
364356
- fix tftp client's put problems (#29529)
364356
- update to tftp-hpa-0.16
364356
364356
* Wed Apr  4 2001 Jakub Jelinek <jakub@redhat.com>
364356
- don't let configure to guess compiler, it can pick up egcs
364356
364356
* Thu Feb 08 2001 Helge Deller <hdeller@redhat.de>
364356
- changed "wait" in xinetd file to "yes" (hpa-tftpd forks and exits) (#26467)
364356
- fixed hpa-tftpd to handle files greater than 32MB (#23725)
364356
- added "-l" flag to hpa-tftpd for file-logging (#26467)
364356
- added description for "-l" to the man-page 
364356
364356
* Thu Feb 08 2001 Helge Deller <hdeller@redhat.de>
364356
- updated tftp client to 0.17 stable (#19640),
364356
- drop dependency on xinetd for tftp client (#25051),
364356
364356
* Wed Jan 17 2001 Jeff Johnson <jbj@redhat.com>
364356
- xinetd shouldn't wait on tftp (which forks) (#23923).
364356
364356
* Sat Jan  6 2001 Jeff Johnson <jbj@redhat.com>
364356
- fix to permit tftp put's (#18128).
364356
- startup as root with chroot to /tftpboot with early reversion to nobody
364356
  is preferable to starting as nobody w/o ability to chroot.
364356
- %%post is needed by server, not client. Add %%postun for erasure as well.
364356
364356
* Wed Aug 23 2000 Nalin Dahyabhai <nalin@redhat.com>
364356
- default to being disabled
364356
364356
* Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com>
364356
- correct group.
364356
364356
* Tue Jul 25 2000 Nalin Dahyabhai <nalin@redhat.com>
364356
- change user from root to nobody
364356
364356
* Sat Jul 22 2000 Jeff Johnson <jbj@redhat.com>
364356
- update to tftp-hpa-0.14 (#14003).
364356
- add server_args (#14003).
364356
- remove -D_BSD_SOURCE (#14003).
364356
364356
* Fri Jul 21 2000 Nalin Dahyabhai <nalin@redhat.com>
364356
- cook up an xinetd config file for tftpd
364356
364356
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
364356
- automatic rebuild
364356
364356
* Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
364356
- FHS packaging.
364356
- update to 0.17.
364356
364356
* Fri May  5 2000 Matt Wilson <msw@redhat.com>
364356
- use _BSD_SOURCE for hpa's tftpd so we get BSD signal semantics.
364356
364356
* Fri Feb 11 2000 Bill Nottingham <notting@redhat.com>
364356
- fix description
364356
364356
* Wed Feb  9 2000 Jeff Johnson <jbj@redhat.com>
364356
- compress man pages (again).
364356
364356
* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
364356
- man pages are compressed
364356
- fix description and summary
364356
364356
* Tue Jan  4 2000 Bill Nottingham <notting@redhat.com>
364356
- split client and server
364356
364356
* Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com>
364356
- update to 0.16.
364356
364356
* Sat Aug 28 1999 Jeff Johnson <jbj@redhat.com>
364356
- update to 0.15.
364356
364356
* Wed Apr  7 1999 Jeff Johnson <jbj@redhat.com>
364356
- tftpd should truncate file when overwriting (#412)
364356
364356
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
364356
- auto rebuild in the new build environment (release 22)
364356
364356
* Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
364356
- compile for 6.0.
364356
364356
* Fri Aug  7 1998 Jeff Johnson <jbj@redhat.com>
364356
- build root
364356
364356
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
364356
- translations modified for de, fr, tr
364356
364356
* Mon Sep 22 1997 Erik Troan <ewt@redhat.com>
364356
- added check for getpwnam() failure
364356
364356
* Tue Jul 15 1997 Erik Troan <ewt@redhat.com>
364356
- initial build