%define nobodygroupid 65013 %define nobodyuserid 65013 Name: tftp Version: 5.2 Release: 1mamba Summary: The client and server for the Trivial File Transfer Protocol (TFTP) Group: System/Servers Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco 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 Source1: tftpd-hpa.service Source2: tftpd-hpa.socket License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libnsl-devel BuildRequires: libreadline-devel BuildRequires: libtermcap-devel 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. %debug_package %prep %setup -q -n tftp-hpa-%{version} %build %configure \ LDFLAGS="-Wl,--allow-multiple-definition" %make %install make INSTALLROOT=%{buildroot} install install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/tftpd.service install -D -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/tftpd.socket 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 %post systemctl -q daemon-reload : %files %defattr(-,root,root) %{_bindir}/tftp %{_mandir}/man1/* %files server %defattr(-,root,root) %{_unitdir}/tftpd.service %{_unitdir}/tftpd.socket %{_sbindir}/in.tftpd %{_mandir}/man8/* %dir %attr(0750,nobody,nobody) %{_localstatedir}/lib/tftpboot %changelog * Wed Nov 16 2022 Silvan Calarco 5.2-1mamba - update to 5.2 * Mon Jan 19 2015 Silvan Calarco 5.1-2mamba - xinet -> systemd migration * Fri Jun 24 2011 Automatic Build System 5.1-1mamba - automatic update by autodist * Fri Feb 05 2010 Silvan Calarco 5.0-2mamba - rebuilt to remove executable requirements * Sat Feb 21 2009 Silvan Calarco 5.0-1mamba - automatic update by autodist * Wed Dec 03 2008 Silvan Calarco 0.49-1mamba - automatic update by autodist * Fri May 09 2008 Silvan Calarco 0.48-1mamba - update to 0.48 * Thu Dec 01 2005 Silvan Calarco 0.41-3qilnx - create nobody user in %pre script not in %post * Wed Nov 02 2005 Silvan Calarco 0.41-2qilnx - create nodoby user if missing * Mon Oct 31 2005 Silvan Calarco 0.41-1qilnx - update to version 0.41 by autospec * Wed Jun 04 2003 Silvan Calarco 0.34-1qilnx - first build