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: http://downloads.sourceforge.net/project/atftp/%{name}-%{version}.tar.gz
12 # Source0-md5: eb358eb1af10ae5dc51095cd10b6738b
13 Source1: %{name}d.inetd
14 Source2: %{name}d.init
15 Source3: %{name}d.sysconfig
16 Patch0: %{name}-tinfo.patch
17 Patch1: %{name}-clk.patch
18 Patch2: no-inline.patch
19 URL: http://sourceforge.net/projects/atftp/
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: libtool
23 BuildRequires: libwrap-devel
24 BuildRequires: readline-devel
25 BuildRequires: rpmbuild(macros) >= 1.268
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 The Trivial File Transfer Protocol (TFTP) is normally used only for
30 booting diskless workstations. This package contains tftp client.
32 %description -l de.UTF-8
33 Das trivial file transfer protocol (tftp) wird in der Regel nur zum
34 Booten von disklosen Workstations benutzt. Es bietet nur geringe
35 Sicherheit und sollte nur im Bedarfsfall aktiviert werden.
37 %description -l fr.UTF-8
38 Le « trivial file transfer protocol » (tftp) est normalement utilisé
39 uniquement pour démarrer les stations de travail sans disque. Il offre
40 très peu de sécurité et ne devrait pas être activé sauf si c'est
43 %description -l pl.UTF-8
44 Tftp (trivial file transfer protocol) jest używany głównie do
45 startowania stacji bezdyskowych z sieci. Pakiet ten zawiera aplikację
48 %description -l tr.UTF-8
49 İlkel dosya aktarım protokolu genelde disksiz iş istasyonlarının ağ
50 üzerinden açılmalarında kullanılır. Güvenlik denetimleri çok az
51 olduğundan zorunlu kalmadıkça çalıştırılmamalıdır.
53 %package -n atftpd-common
54 Summary: Daemon for the trivial file transfer protocol (tftp)
55 Summary(de.UTF-8): Dämon für das 'trivial file transfer protocol (tftp)'
56 Summary(fr.UTF-8): Démon pour le « trivial file transfer protocol » (tftp)
57 Summary(pl.UTF-8): Serwer tftp (trivial file transfer protocol)
58 Summary(tr.UTF-8): İlkel dosya aktarım protokolu (TFTP) için sunucu ve istemci
59 Group: Networking/Daemons/FTP
60 Requires(postun): /usr/sbin/userdel
61 Requires(pre): /bin/id
62 Requires(pre): /usr/sbin/useradd
65 %description -n atftpd-common
66 The Trivial File Transfer Protocol (TFTP) is normally used only for
67 booting diskless workstations. The tftp package provides the user
68 interface for TFTP, which allows users to transfer files to and from a
69 remote machine. It provides very little security, and should not be
70 enabled unless it is needed.
72 %description -n atftpd-common -l de.UTF-8
73 Das trivial file transfer protocol (tftp) wird in der Regel nur zum
74 Booten von disklosen Workstations benutzt. Es bietet nur geringe
75 Sicherheit und sollte nur im Bedarfsfall aktiviert werden.
77 %description -n atftpd-common -l fr.UTF-8
78 Le « trivial file transfer protocol » (tftp) est normalement utilisé
79 uniquement pour démarrer les stations de travail sans disque. Il offre
80 très peu de sécurité et ne devrait pas être activé sauf si c'est
83 %description -n atftpd-common -l pl.UTF-8
84 TFTP (Trivial File Transfer Protocol) jest używany głównie do
85 startowania stacji bezdyskowych z sieci. Serwer tftp powinien być
86 instalowany tylko wtedy, kiedy zachodzi taka konieczność ponieważ
87 należy on do aplikacji o niskim poziomie bezpieczeństwa.
89 %package -n atftpd-inetd
90 Summary: inetd configs for atftpd
91 Summary(pl.UTF-8): Pliki konfiguracyjne do użycia atftpd poprzez inetd
92 Group: Networking/Daemons/FTP
93 Requires: atftpd-common = %{epoch}:%{version}-%{release}
94 Requires: rc-inetd >= 0.8.1
97 Obsoletes: inetutils-tftpd
98 Obsoletes: tftp-server
103 %description -n atftpd-inetd
104 atftpd configs for running from inetd.
106 %description -n atftpd-inetd -l pl.UTF-8
107 Pliki konfiguracyjna atftpd do startowania demona poprzez inetd.
109 %package -n atftpd-standalone
110 Summary: Standalone daemon configs for atftpd
111 Summary(pl.UTF-8): Pliki konfiguracyjne do startowania atftpd w trybie standalone
112 Group: Networking/Daemons/FTP
113 Requires: atftpd-common = %{epoch}:%{version}-%{release}
117 Obsoletes: inetutils-tftpd
118 Obsoletes: tftp-server
123 %description -n atftpd-standalone
124 atftpd configs for running as a standalone daemon.
126 %description -n atftpd-standalone -l pl.UTF-8
127 Pliki konfiguracyjne atftpd do startowania demona w trybie
136 sed -i -e 's#AM_CONFIG_HEADER#AC_CONFIG_HEADERS#g' configure.ac
137 sed -i -e 's#CFLAGS="-g -Wall -D_REENTRANT"##g' configure.ac
146 --enable-libreadline \
153 rm -rf $RPM_BUILD_ROOT
154 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},/var/lib/tftp} \
155 $RPM_BUILD_ROOT{%{_mandir}/man{1,8},} \
156 $RPM_BUILD_ROOT{/etc/sysconfig/rc-inetd,/etc/rc.d/init.d}
159 DESTDIR=$RPM_BUILD_ROOT
161 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/tftpd
162 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/atftpd
163 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/atftpd
166 rm -rf $RPM_BUILD_ROOT
168 %pre -n atftpd-common
169 %useradd -u 15 -r -d /var/lib/tftp -s /bin/false -c "TFTP User" -g ftp tftp
171 %postun -n atftpd-common
172 if [ "$1" = "0" ]; then
176 %post -n atftpd-inetd
177 %service -q rc-inetd reload
179 %postun -n atftpd-inetd
180 if [ "$1" = "0" ]; then
181 %service -q rc-inetd reload
184 %post -n atftpd-standalone
185 /sbin/chkconfig --add atftpd
186 %service atftpd restart
189 if [ "$1" = "0" ]; then
191 /sbin/chkconfig --del atftpd
195 %defattr(644,root,root,755)
196 %attr(755,root,root) %{_bindir}/*
199 %files -n atftpd-common
200 %defattr(644,root,root,755)
202 %attr(755,root,root) %{_sbindir}/*
203 %attr(750,tftp,root) %dir /var/lib/tftp
206 %files -n atftpd-inetd
207 %defattr(644,root,root,755)
208 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/tftpd
210 %files -n atftpd-standalone
211 %defattr(644,root,root,755)
212 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/atftpd
213 %attr(754,root,root) /etc/rc.d/init.d/atftpd