From 516d223c819b8af5a81fe2898275f9290c6afe3e Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 18:28:20 +0100 Subject: [PATCH] automatic update by autodist [release 5.1-1mamba;Fri Jun 24 2011] --- README.md | 4 +++ tftp-xinetd | 18 ++++++++++ tftp.spec | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 120 insertions(+) create mode 100644 tftp-xinetd create mode 100644 tftp.spec diff --git a/README.md b/README.md index f4b5124..d2826a1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # tftp +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. + diff --git a/tftp-xinetd b/tftp-xinetd new file mode 100644 index 0000000..d04b48a --- /dev/null +++ b/tftp-xinetd @@ -0,0 +1,18 @@ +# default: off +# description: The tftp server serves files using the trivial file transfer \ +# protocol. The tftp protocol is often used to boot diskless \ +# workstations, download configuration files to network-aware printers, \ +# and to start the installation process for some operating systems. +service tftp +{ + socket_type = dgram + protocol = udp + wait = yes + user = root + server = /usr/sbin/in.tftpd + server_args = -s /var/lib/tftpboot + disable = yes + per_source = 11 + cps = 100 2 + flags = IPv4 +} diff --git a/tftp.spec b/tftp.spec new file mode 100644 index 0000000..40944ed --- /dev/null +++ b/tftp.spec @@ -0,0 +1,98 @@ +%define nobodygroupid 65013 +%define nobodyuserid 65013 +Name: tftp +Version: 5.1 +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: http://www.kernel.org/pub/software/network/tftp/ +Source: http://www.kernel.org/pub/software/network/tftp/tftp-hpa-%{version}.tar.bz2 +Source1: tftp-xinetd +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libwrap-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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). +Requires: xinetd >= 2.3.11 + +%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. + +%prep +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%setup -q -n tftp-hpa-%{version} + +%build +%configure +%make + +%install +make INSTALLROOT=%{buildroot} install +mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d +cp %{SOURCE1} %{buildroot}%{_sysconfdir}/xinetd.d/tftpd +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 + +%files +%defattr(-,root,root) +%{_bindir}/tftp +%{_mandir}/man1/* + +%files server +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/xinetd.d/tftpd +%{_sbindir}/in.tftpd +%{_mandir}/man8/* +%dir %attr(0750,nobody,nobody) %{_localstatedir}/lib/tftpboot + +%changelog +* 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