|
|
|
@ -1,10 +1,12 @@
|
|
|
|
|
%global systemctl_bin /usr/bin/systemctl
|
|
|
|
|
%global _hardened_build 1
|
|
|
|
|
|
|
|
|
|
Summary: The client for the Trivial File Transfer Protocol (TFTP)
|
|
|
|
|
Name: tftp
|
|
|
|
|
Version: 5.2
|
|
|
|
|
Release: 37%{?dist}
|
|
|
|
|
Release: 26%{?dist}
|
|
|
|
|
License: BSD
|
|
|
|
|
Group: Applications/Internet
|
|
|
|
|
URL: http://www.kernel.org/pub/software/network/tftp/
|
|
|
|
|
Source0: http://www.kernel.org/pub/software/network/tftp/tftp-hpa/tftp-hpa-%{version}.tar.bz2
|
|
|
|
|
Source1: tftp.socket
|
|
|
|
@ -20,15 +22,10 @@ Patch7: tftp-hpa-0.49-stats.patch
|
|
|
|
|
Patch8: tftp-hpa-5.2-pktinfo.patch
|
|
|
|
|
Patch9: tftp-doc.patch
|
|
|
|
|
Patch10: tftp-enhanced-logging.patch
|
|
|
|
|
Patch11: tftp-hpa-5.2-gcc10.patch
|
|
|
|
|
Patch12: tftp-rewrite-macro.patch
|
|
|
|
|
Patch13: tftp-hpa-5.2-covscan.patch
|
|
|
|
|
Patch11: tftp-rewrite-macro.patch
|
|
|
|
|
Patch12: tftp-hpa-5.2-covscan.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
|
BuildRequires: readline-devel autoconf systemd-units
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The Trivial File Transfer Protocol (TFTP) is normally used only for
|
|
|
|
@ -38,6 +35,7 @@ remote machine. This program and TFTP provide very little security,
|
|
|
|
|
and should not be enabled unless it is expressly needed.
|
|
|
|
|
|
|
|
|
|
%package server
|
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
|
Summary: The server for the Trivial File Transfer Protocol (TFTP)
|
|
|
|
|
Requires: systemd-units
|
|
|
|
|
Requires(post): systemd-units
|
|
|
|
@ -63,9 +61,8 @@ systemd socket activation, and is disabled by default.
|
|
|
|
|
%patch8 -p1 -b .pktinfo
|
|
|
|
|
%patch9 -p1 -b .doc
|
|
|
|
|
%patch10 -p1 -b .logging
|
|
|
|
|
%patch11 -p1 -b .gcc10
|
|
|
|
|
%patch12 -p1 -b .rewrite-macro
|
|
|
|
|
%patch13 -p1 -b .covscan
|
|
|
|
|
%patch11 -p1 -b .rewrite-macro
|
|
|
|
|
%patch12 -p1 -b .covscan
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoreconf
|
|
|
|
@ -73,6 +70,7 @@ autoreconf
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,8}
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
|
|
|
|
@ -94,6 +92,9 @@ install -p -m 644 %SOURCE2 ${RPM_BUILD_ROOT}%{_unitdir}
|
|
|
|
|
%systemd_postun_with_restart tftp.socket
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README README.security CHANGES
|
|
|
|
|
%{_bindir}/tftp
|
|
|
|
@ -107,49 +108,16 @@ install -p -m 644 %SOURCE2 ${RPM_BUILD_ROOT}%{_unitdir}
|
|
|
|
|
%{_unitdir}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Apr 06 2022 Lukáš Zaoral <lzaoral@redhat.com> - 5.2-37
|
|
|
|
|
- Review and fix issues reported by static analysers (rhbz#2069613)
|
|
|
|
|
- Use systemd-rpm-macros and modernise the specfile a bit
|
|
|
|
|
- Based on changes made by Dominik 'Rathann' Mierzejewski in Fedora.
|
|
|
|
|
Thanks a lot!
|
|
|
|
|
|
|
|
|
|
* Wed Mar 23 2022 Lukáš Zaoral <lzaoral@redhat.com> - 5.2-36
|
|
|
|
|
- Fix inconsistent --map-file option spelling in manual (rhbz#2066855)
|
|
|
|
|
- Fix memory corruption in tftpd when filename remapping with macro \x
|
|
|
|
|
is used (rhbz#2066858)
|
|
|
|
|
|
|
|
|
|
* Thu Jan 27 2022 Lukáš Zaoral <lzaoral@redhat.com> - 5.2-35
|
|
|
|
|
- Rebuilt for fixed gating.yaml. Related rhbz#2042975
|
|
|
|
|
|
|
|
|
|
* Thu Jan 27 2022 Lukáš Zaoral <lzaoral@redhat.com> - 5.2-34
|
|
|
|
|
- Rebuilt for added gating.yaml. Related rhbz#2042975
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 5.2-33
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-32
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 5.2-26
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-31
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
* Tue Apr 26 2022 Lukáš Zaoral <lzaoral@redhat.com> - 5.2-26
|
|
|
|
|
- Review and fix issues reported by static analysers (rhbz#2078858)
|
|
|
|
|
|
|
|
|
|
* Sun May 03 2020 Dominik Mierzejewski <rpm@greysector.net> - 5.2-30
|
|
|
|
|
- fix build with gcc 10 (#1800195)
|
|
|
|
|
|
|
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-29
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-28
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 5.2-27
|
|
|
|
|
- Rebuild for readline 8.0
|
|
|
|
|
|
|
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-26
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-25
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
* Wed Apr 20 2022 Lukáš Zaoral <lzaoral@redhat.com> - 5.2-25
|
|
|
|
|
- Fix inconsistent --map-file option spelling in manual (rhbz#2066853)
|
|
|
|
|
- Fix memory corruption in tftpd when filename remapping with macro \x
|
|
|
|
|
is used (rhbz#2066862)
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 5.2-24
|
|
|
|
|
- Escape macros in %%changelog
|
|
|
|
|