1 Summary: Client for the Trivial File Transfer Protocol (TFTP)
2 Summary(de.UTF-8): Client für das 'trivial file transfer protocol (tftp)'
3 Summary(fr.UTF-8): Client pour le « trivial file transfer protocol » (tftp)
4 Summary(pl.UTF-8): Klient TFTP (Trivial File Transfer Protocol)
5 Summary(tr.UTF-8): İ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: 3b27365772d918050b2251d98a9c7c82
13 Source1: %{name}d.inetd
14 Source2: %{name}d.init
15 Source3: %{name}d.sysconfig
16 Patch0: %{name}-debian.patch
17 Patch1: %{name}-tinfo.patch
18 Patch2: %{name}-clk.patch
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: libtool
22 BuildRequires: libwrap-devel
23 BuildRequires: rpmbuild(macros) >= 1.268
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 The Trivial File Transfer Protocol (TFTP) is normally used only for
28 booting diskless workstations. This package contains tftp client.
30 %description -l de.UTF-8
31 Das trivial file transfer protocol (tftp) wird in der Regel nur zum
32 Booten von disklosen Workstations benutzt. Es bietet nur geringe
33 Sicherheit und sollte nur im Bedarfsfall aktiviert werden.
35 %description -l fr.UTF-8
36 Le « trivial file transfer protocol » (tftp) est normalement utilisé
37 uniquement pour démarrer les stations de travail sans disque. Il offre
38 très peu de sécurité et ne devrait pas être activé sauf si c'est
41 %description -l pl.UTF-8
42 Tftp (trivial file transfer protocol) jest używany głównie do
43 startowania stacji bezdyskowych z sieci. Pakiet ten zawiera aplikację
46 %description -l tr.UTF-8
47 İlkel dosya aktarım protokolu genelde disksiz iş istasyonlarının ağ
48 üzerinden açılmalarında kullanılır. Güvenlik denetimleri çok az
49 olduğundan zorunlu kalmadıkça çalıştırılmamalıdır.
51 %package -n atftpd-common
52 Summary: Daemon for the trivial file transfer protocol (tftp)
53 Summary(de.UTF-8): Dämon für das 'trivial file transfer protocol (tftp)'
54 Summary(fr.UTF-8): Démon pour le « trivial file transfer protocol » (tftp)
55 Summary(pl.UTF-8): Serwer tftp (trivial file transfer protocol)
56 Summary(tr.UTF-8): İlkel dosya aktarım protokolu (TFTP) için sunucu ve istemci
57 Group: Networking/Daemons
58 Requires(postun): /usr/sbin/userdel
59 Requires(pre): /bin/id
60 Requires(pre): /usr/sbin/useradd
63 %description -n atftpd-common
64 The Trivial File Transfer Protocol (TFTP) is normally used only for
65 booting diskless workstations. The tftp package provides the user
66 interface for TFTP, which allows users to transfer files to and from a
67 remote machine. It provides very little security, and should not be
68 enabled unless it is needed.
70 %description -n atftpd-common -l de.UTF-8
71 Das trivial file transfer protocol (tftp) wird in der Regel nur zum
72 Booten von disklosen Workstations benutzt. Es bietet nur geringe
73 Sicherheit und sollte nur im Bedarfsfall aktiviert werden.
75 %description -n atftpd-common -l fr.UTF-8
76 Le « trivial file transfer protocol » (tftp) est normalement utilisé
77 uniquement pour démarrer les stations de travail sans disque. Il offre
78 très peu de sécurité et ne devrait pas être activé sauf si c'est
81 %description -n atftpd-common -l pl.UTF-8
82 TFTP (Trivial File Transfer Protocol) jest używany głównie do
83 startowania stacji bezdyskowych z sieci. Serwer tftp powinien być
84 instalowany tylko wtedy, kiedy zachodzi taka konieczność ponieważ
85 należy on do aplikacji o niskim poziomie bezpieczeństwa.
87 %package -n atftpd-inetd
88 Summary: inetd configs for atftpd
89 Summary(pl.UTF-8): Pliki konfiguracyjne do użycia atftpd poprzez inetd
91 Requires: atftpd-common = %{epoch}:%{version}-%{release}
92 Requires: rc-inetd >= 0.8.1
95 Obsoletes: inetutils-tftpd
96 Obsoletes: tftp-server
101 %description -n atftpd-inetd
102 atftpd configs for running from inetd.
104 %description -n atftpd-inetd -l pl.UTF-8
105 Pliki konfiguracyjna atftpd do startowania demona poprzez inetd.
107 %package -n atftpd-standalone
108 Summary: Standalone daemon configs for atftpd
109 Summary(pl.UTF-8): Pliki konfiguracyjne do startowania atftpd w trybie standalone
111 Requires: atftpd-common = %{epoch}:%{version}-%{release}
115 Obsoletes: inetutils-tftpd
116 Obsoletes: tftp-server
121 %description -n atftpd-standalone
122 atftpd configs for running as a standalone daemon.
124 %description -n atftpd-standalone -l pl.UTF-8
125 Pliki konfiguracyjne atftpd do startowania demona w trybie
135 sed -i -e 's#argz.h##g' Makefile*
145 rm -rf $RPM_BUILD_ROOT
146 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},/var/lib/tftp} \
147 $RPM_BUILD_ROOT{%{_mandir}/man{1,8},} \
148 $RPM_BUILD_ROOT{/etc/sysconfig/rc-inetd,/etc/rc.d/init.d}
150 install atftpd $RPM_BUILD_ROOT%{_sbindir}
151 install atftp $RPM_BUILD_ROOT%{_bindir}
152 install *.8 $RPM_BUILD_ROOT%{_mandir}/man8/
153 install *.1 $RPM_BUILD_ROOT%{_mandir}/man1/
155 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/tftpd
156 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/atftpd
157 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/atftpd
160 rm -rf $RPM_BUILD_ROOT
162 %pre -n atftpd-common
163 %useradd -u 15 -r -d /var/lib/tftp -s /bin/false -c "TFTP User" -g ftp tftp
165 %postun -n atftpd-common
166 if [ "$1" = "0" ]; then
170 %post -n atftpd-inetd
171 %service -q rc-inetd reload
173 %postun -n atftpd-inetd
174 if [ "$1" = "0" ]; then
175 %service -q rc-inetd reload
178 %post -n atftpd-standalone
179 /sbin/chkconfig --add atftpd
180 %service atftpd restart
183 if [ "$1" = "0" ]; then
185 /sbin/chkconfig --del atftpd
189 %defattr(644,root,root,755)
190 %attr(755,root,root) %{_bindir}/*
193 %files -n atftpd-common
194 %defattr(644,root,root,755)
196 %attr(755,root,root) %{_sbindir}/*
197 %attr(750,tftp,root) %dir /var/lib/tftp
200 %files -n atftpd-inetd
201 %defattr(644,root,root,755)
202 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/tftpd
204 %files -n atftpd-standalone
205 %defattr(644,root,root,755)
206 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/atftpd
207 %attr(754,root,root) /etc/rc.d/init.d/atftpd