automatic update by autodist [release 5.1-1mamba;Fri Jun 24 2011]

This commit is contained in:
Automatic Build System 2024-01-05 18:28:20 +01:00
parent 42d341cec8
commit 516d223c81
3 changed files with 120 additions and 0 deletions

View File

@ -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.

18
tftp-xinetd Normal file
View File

@ -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
}

98
tftp.spec Normal file
View File

@ -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 <silvan.calarco@mambasoft.it>
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 <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