2024-01-05 18:28:20 +01:00
|
|
|
%define nobodygroupid 65013
|
|
|
|
%define nobodyuserid 65013
|
|
|
|
Name: tftp
|
2024-03-15 10:25:44 +01:00
|
|
|
Version: 5.2
|
|
|
|
Release: 1mamba
|
2024-01-05 18:28:21 +01:00
|
|
|
Summary: The client and server for the Trivial File Transfer Protocol (TFTP)
|
2024-01-05 18:28:20 +01:00
|
|
|
Group: System/Servers
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-03-15 10:25:44 +01:00
|
|
|
URL: https://mirrors.edge.kernel.org/pub/software/network/tftp/
|
|
|
|
Source: https://mirrors.edge.kernel.org/pub/software/network/tftp/tftp-hpa/tftp-hpa-%{version}.tar.xz
|
2024-01-05 18:28:21 +01:00
|
|
|
Source1: tftpd-hpa.service
|
|
|
|
Source2: tftpd-hpa.socket
|
2024-01-05 18:28:20 +01:00
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-03-15 10:25:44 +01:00
|
|
|
BuildRequires: libnsl-devel
|
|
|
|
BuildRequires: libreadline-devel
|
|
|
|
BuildRequires: libtermcap-devel
|
2024-01-05 18:28:20 +01:00
|
|
|
BuildRequires: libwrap-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
|
|
|
%description
|
|
|
|
The Trivial File Transfer Protocol (TFTP) is normally used only for booting diskless workstations.
|
|
|
|
The tftp package provides the user interface for TFTP, which allows users to transfer files to and from a remote machine.
|
|
|
|
This program, and TFTP, provide very little security, and should not be enabled unless it is expressly needed.
|
|
|
|
|
|
|
|
%package server
|
|
|
|
Group: System/Servers
|
|
|
|
Summary: The server for the Trivial File Transfer Protocol (TFTP).
|
|
|
|
|
|
|
|
%description server
|
|
|
|
The Trivial File Transfer Protocol (TFTP) is normally used only for booting diskless workstations.
|
|
|
|
The tftp-server package provides the server for TFTP, which allows users to transfer files to and from a remote machine.
|
|
|
|
TFTP provides very little security, and should not be enabled unless it is expressly needed.
|
|
|
|
The TFTP server is run from %{_sysconfdir}/xinetd.d/tftp.%{_sysconfdir}/xinetd.d/tftp.
|
|
|
|
|
2024-03-15 10:25:44 +01:00
|
|
|
%debug_package
|
2024-01-05 18:28:20 +01:00
|
|
|
|
2024-03-15 10:25:44 +01:00
|
|
|
%prep
|
2024-01-05 18:28:20 +01:00
|
|
|
%setup -q -n tftp-hpa-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-03-15 10:25:44 +01:00
|
|
|
%configure \
|
|
|
|
LDFLAGS="-Wl,--allow-multiple-definition"
|
|
|
|
|
2024-01-05 18:28:20 +01:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
make INSTALLROOT=%{buildroot} install
|
2024-01-05 18:28:21 +01:00
|
|
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/tftpd.service
|
|
|
|
install -D -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/tftpd.socket
|
2024-01-05 18:28:20 +01:00
|
|
|
mkdir -p %{buildroot}/var/lib/tftpboot
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%pre server
|
|
|
|
groupadd nobody -g %{nobodygroupid} 2>/dev/null || true
|
|
|
|
useradd -c nobody -u %{nobodyuserid} -d /dev/null \
|
|
|
|
-g nobody -s /bin/false nobody 2>/dev/null || true
|
|
|
|
|
2024-01-05 18:28:21 +01:00
|
|
|
%post
|
|
|
|
systemctl -q daemon-reload
|
|
|
|
:
|
|
|
|
|
2024-01-05 18:28:20 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/tftp
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
%files server
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 18:28:21 +01:00
|
|
|
%{_unitdir}/tftpd.service
|
|
|
|
%{_unitdir}/tftpd.socket
|
2024-01-05 18:28:20 +01:00
|
|
|
%{_sbindir}/in.tftpd
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
%dir %attr(0750,nobody,nobody) %{_localstatedir}/lib/tftpboot
|
|
|
|
|
|
|
|
%changelog
|
2024-03-15 10:25:44 +01:00
|
|
|
* Wed Nov 16 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2-1mamba
|
|
|
|
- update to 5.2
|
|
|
|
|
2024-01-05 18:28:21 +01:00
|
|
|
* Mon Jan 19 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 5.1-2mamba
|
|
|
|
- xinet -> systemd migration
|
|
|
|
|
2024-01-05 18:28:20 +01:00
|
|
|
* Fri Jun 24 2011 Automatic Build System <autodist@mambasoft.it> 5.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Feb 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0-2mamba
|
|
|
|
- rebuilt to remove executable requirements
|
|
|
|
|
|
|
|
* Sat Feb 21 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Dec 03 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.49-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri May 09 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.48-1mamba
|
|
|
|
- update to 0.48
|
|
|
|
|
|
|
|
* Thu Dec 01 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 0.41-3qilnx
|
|
|
|
- create nobody user in %pre script not in %post
|
|
|
|
|
|
|
|
* Wed Nov 02 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 0.41-2qilnx
|
|
|
|
- create nodoby user if missing
|
|
|
|
|
|
|
|
* Mon Oct 31 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 0.41-1qilnx
|
|
|
|
- update to version 0.41 by autospec
|
|
|
|
|
|
|
|
* Wed Jun 04 2003 Silvan Calarco <silvan.calarco@qinet.it> 0.34-1qilnx
|
|
|
|
- first build
|