1 Summary: Client for the Trivial File Transfer Protocol (TFTP)
2 Summary(de): Client für das 'trivial file transfer protocol (tftp)'
3 Summary(fr): Client pour le « trivial file transfer protocol » (tftp)
4 Summary(pl): Klient TFTP (Trivial File Transfer Protocol)
5 Summary(tr): Ýlkel dosya aktarým protokolu (TFTP) için sunucu ve istemci
10 Group: Applications/Networking
11 Source0: ftp://ftp.mamalinux.com/pub/atftp/%{name}-%{version}.tar.gz
12 # Source0-md5: b3b8d4b7e558046adfcaef180ae77c4f
14 BuildRequires: libwrap-devel
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 The Trivial File Transfer Protocol (TFTP) is normally used only for
21 booting diskless workstations. This package contains tftp client.
24 Das trivial file transfer protocol (tftp) wird in der Regel nur zum
25 Booten von disklosen Workstations benutzt. Es bietet nur geringe
26 Sicherheit und sollte nur im Bedarfsfall aktiviert werden.
29 Le « trivial file transfer protocol » (tftp) est normalement utilisé
30 uniquement pour démarrer les stations de travail sans disque. Il offre
31 très peu de sécurité et ne devrait pas être activé sauf si c'est
35 Tftp (trivial file transfer protocol) jest u¿ywany g³ównie do
36 startowania stacji bezdyskowych z sieci. Pakiet ten zawiera aplikacjê
40 Ýlkel dosya aktarým protokolu genelde disksiz iþ istasyonlarýnýn að
41 üzerinden açýlmalarýnda kullanýlýr. Güvenlik denetimleri çok az
42 olduðundan zorunlu kalmadýkça çalýþtýrýlmamalýdýr.
45 Summary: Daemon for the trivial file transfer protocol (tftp)
46 Summary(de): Dämon für das 'trivial file transfer protocol (tftp)'
47 Summary(fr): Démon pour le « trivial file transfer protocol » (tftp)
48 Summary(pl): Serwer tftp (trivial file transfer protocol)
49 Summary(tr): Ýlkel dosya aktarým protokolu (TFTP) için sunucu ve istemci
50 Group: Networking/Daemons
51 PreReq: rc-inetd >= 0.8.1
52 Requires(pre): /bin/id
53 Requires(pre): /usr/sbin/useradd
54 Requires(postun): /usr/sbin/userdel
57 Obsoletes: tftp-server
60 %description -n atftpd
61 The Trivial File Transfer Protocol (TFTP) is normally used only for
62 booting diskless workstations. The tftp package provides the user
63 interface for TFTP, which allows users to transfer files to and from a
64 remote machine. It provides very little security, and should not be
65 enabled unless it is needed.
67 %description -n atftpd -l de
68 Das trivial file transfer protocol (tftp) wird in der Regel nur zum
69 Booten von disklosen Workstations benutzt. Es bietet nur geringe
70 Sicherheit und sollte nur im Bedarfsfall aktiviert werden.
72 %description -n atftpd -l fr
73 Le « trivial file transfer protocol » (tftp) est normalement utilisé
74 uniquement pour démarrer les stations de travail sans disque. Il offre
75 très peu de sécurité et ne devrait pas être activé sauf si c'est
78 %description -n atftpd -l pl
79 TFTP (Trivial File Transfer Protocol) jest u¿ywany g³ównie do
80 startowania stacji bezdyskowych z sieci. Serwer tftp powinien byæ
81 instalowany tylko wtedy, kiedy zachodzi taka konieczno¶æ poniewa¿
82 nale¿y on do aplikacji o niskim poziomie bezpieczeñstwa.
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT/{%{_bindir},%{_sbindir},/etc/sysconfig/rc-inetd} \
95 $RPM_BUILD_ROOT{%{_mandir}/man{1,8},/var/lib/tftp}
97 install atftpd $RPM_BUILD_ROOT%{_sbindir}
98 install atftp $RPM_BUILD_ROOT%{_bindir}
99 install *.8 $RPM_BUILD_ROOT%{_mandir}/man8/
100 install *.1 $RPM_BUILD_ROOT%{_mandir}/man1/
102 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/tftpd
105 rm -rf $RPM_BUILD_ROOT
108 if [ -n "`id -u tftp 2>/dev/null`" ]; then
109 if [ "`id -u tftp`" != "15" ]; then
110 echo "Error: user tftp doesn't have uid=15. Correct this before installing tftpd." 1>&2
114 echo "Adding user tftp UID=15."
115 /usr/sbin/useradd -u 15 -r -d /var/lib/tftp -s /bin/false -c "TFTP User" -g ftp tftp 1>&2
119 if [ -f /var/lock/subsys/rc-inetd ]; then
120 /etc/rc.d/init.d/rc-inetd reload 1>&2
122 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server." 1>&2
126 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
127 /etc/rc.d/init.d/rc-inetd reload
129 if [ "$1" = "0" ]; then
130 echo "Removing user tftp."
131 /usr/sbin/userdel tftp
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_bindir}/*
140 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_sbindir}/*
143 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rc-inetd/tftpd
144 %attr(750,tftp,root) %dir /var/lib/tftp