Blame SPECS/tftp.spec

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