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.kernel.org/pub/software/network/tftp/tftp-hpa/%{name}-%{version}.tar.xz
12 # Source0-md5: e86f58164166804e8ae5a46010f29317
13 Source1: tftpd-hpa.inetd
14 Source2: tftpd-hpa.init
15 Source3: tftpd-hpa.sysconfig
17 Patch0: tftp-0.40-remap.patch
18 Patch1: %{name}-0.39-tzfix.patch
19 Patch2: tftp-0.42-tftpboot.patch
20 Patch3: tftp-0.49-chk_retcodes.patch
21 Patch4: %{name}-0.49-fortify-strcpy-crash.patch
22 Patch5: tftp-0.49-cmd_arg.patch
23 Patch6: %{name}-0.49-stats.patch
24 Patch7: %{name}-5.2-pktinfo.patch
25 URL: http://freshmeat.net/projects/tftp-hpa/
26 BuildRequires: readline-devel
27 BuildRequires: rpmbuild(macros) >= 1.268
28 Obsoletes: inetutils-tftp
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 The Trivial File Transfer Protocol (TFTP) is normally used only for
34 booting diskless workstations. This package contains TFTP client.
36 %description -l de.UTF-8
37 Das trivial file transfer protocol (TFTP) wird in der Regel nur zum
38 Booten von disklosen Workstations benutzt. Es bietet nur geringe
39 Sicherheit und sollte nur im Bedarfsfall aktiviert werden.
41 %description -l fr.UTF-8
42 Le « trivial file transfer protocol » (TFTP) est normalement utilisé
43 uniquement pour démarrer les stations de travail sans disque. Il offre
44 très peu de sécurité et ne devrait pas être activé sauf si c'est
47 %description -l pl.UTF-8
48 TFTP (Trivial File Transfer Protocol) jest używany głównie do
49 startowania stacji bezdyskowych z sieci. Pakiet ten zawiera aplikację
52 %description -l tr.UTF-8
53 İlkel dosya aktarım protokolu genelde disksiz iş istasyonlarının ağ
54 üzerinden açılmalarında kullanılır. Güvenlik denetimleri çok az
55 olduğundan zorunlu kalmadıkça çalıştırılmamalıdır.
57 %package -n tftpd-hpa-common
58 Summary: Daemon for the trivial file transfer protocol (TFTP)
59 Summary(de.UTF-8): Dämon für das 'trivial file transfer protocol (TFTP)'
60 Summary(fr.UTF-8): Démon pour le « trivial file transfer protocol » (TFTP)
61 Summary(pl.UTF-8): Serwer TFTP (Trivial File Transfer Protocol)
62 Summary(tr.UTF-8): İlkel dosya aktarım protokolu (TFTP) için sunucu ve istemci
63 Group: Networking/Daemons/FTP
64 Requires(postun): /usr/sbin/userdel
65 Requires(pre): /bin/id
66 Requires(pre): /usr/sbin/useradd
70 %description -n tftpd-hpa-common
71 The Trivial File Transfer Protocol (TFTP) is normally used only for
72 booting diskless workstations. The tftp-hpa package provides the user
73 interface for TFTP, which allows users to transfer files to and from a
74 remote machine. It provides very little security, and should not be
75 enabled unless it is needed.
77 %description -n tftpd-hpa-common -l de.UTF-8
78 Das trivial file transfer protocol (TFTP) wird in der Regel nur zum
79 Booten von disklosen Workstations benutzt. Es bietet nur geringe
80 Sicherheit und sollte nur im Bedarfsfall aktiviert werden.
82 %description -n tftpd-hpa-common -l fr.UTF-8
83 Le « trivial file transfer protocol » (TFTP) est normalement utilisé
84 uniquement pour démarrer les stations de travail sans disque. Il offre
85 très peu de sécurité et ne devrait pas être activé sauf si c'est
88 %description -n tftpd-hpa-common -l pl.UTF-8
89 TFTP (Trivial File Transfer Protocol) jest używany głównie do
90 startowania stacji bezdyskowych z sieci. Serwer TFTP powinien być
91 instalowany tylko wtedy, kiedy zachodzi taka konieczność ponieważ
92 należy on do aplikacji o niskim poziomie bezpieczeństwa.
94 %package -n tftpd-hpa-inetd
95 Summary: inetd configs for tftpd-hpa
96 Summary(pl.UTF-8): Pliki konfiguracyjne do użycia tftpd-hpa poprzez inetd
97 Group: Networking/Daemons/FTP
98 Requires: rc-inetd >= 0.8.1
99 Requires: tftpd-hpa-common = %{version}-%{release}
102 Obsoletes: inetutils-tftpd
103 Obsoletes: tftp-server
108 %description -n tftpd-hpa-inetd
109 tftpd-hpa configs for running from inetd.
111 %description -n tftpd-hpa-inetd -l pl.UTF-8
112 Pliki konfiguracyjna tftpd-hpa do startowania demona poprzez inetd.
114 %package -n tftpd-hpa-standalone
115 Summary: Standalone daemon configs for tftpd-hpa
116 Summary(pl.UTF-8): Pliki konfiguracyjne do startowania tftpd-hpa w trybie standalone
117 Group: Networking/Daemons/FTP
119 Requires: tftpd-hpa-common = %{version}-%{release}
122 Obsoletes: inetutils-tftpd
123 Obsoletes: tftp-server
128 %description -n tftpd-hpa-standalone
129 tftpd-hpa configs for running as a standalone daemon.
131 %description -n tftpd-hpa-standalone -l pl.UTF-8
132 Pliki konfiguracyjne tftpd-hpa do startowania demona w trybie
138 %patch1 -p1 -b .tzfix
139 %patch2 -p1 -b .tftpboot
140 %patch3 -p1 -b .chk_retcodes
141 %patch4 -p1 -b .fortify-strcpy-crash
142 %patch5 -p1 -b .cmd_arg
143 %patch6 -p1 -b .stats
144 %patch7 -p1 -b .pktinfo
152 rm -rf $RPM_BUILD_ROOT
153 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man{1,8}} \
154 $RPM_BUILD_ROOT{/etc/sysconfig/rc-inetd,/etc/rc.d/init.d} \
155 $RPM_BUILD_ROOT/var/lib/tftp
158 INSTALLROOT=$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/tftpd-hpa
163 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/tftpd-hpa
165 mv -f $RPM_BUILD_ROOT%{_sbindir}/in.tftpd $RPM_BUILD_ROOT%{_sbindir}/tftpd
166 mv -f $RPM_BUILD_ROOT%{_mandir}/man8/in.tftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/tftpd.8
169 rm -rf $RPM_BUILD_ROOT
171 %pre -n tftpd-hpa-common
172 %groupadd -P tftpd-hpa -g 59 -r -f tftp
173 %useradd -P tftpd-hpa -u 15 -r -d /var/lib/tftp -s /bin/false -c "TFTP User" -g tftp tftp
175 %postun -n tftpd-hpa-common
176 if [ "$1" = "0" ]; then
181 %post -n tftpd-hpa-inetd
182 %service -q rc-inetd reload
184 %postun -n tftpd-hpa-inetd
185 if [ "$1" = "0" ]; then
186 %service -q rc-inetd reload
189 %post -n tftpd-hpa-standalone
190 /sbin/chkconfig --add tftpd-hpa
191 %service tftpd-hpa restart
193 %preun -n tftpd-hpa-standalone
194 if [ "$1" = "0" ]; then
195 %service tftpd-hpa stop
196 /sbin/chkconfig --del tftpd-hpa
200 %defattr(644,root,root,755)
202 %attr(755,root,root) %{_bindir}/*
205 %files -n tftpd-hpa-common
206 %defattr(644,root,root,755)
207 %attr(755,root,root) %{_sbindir}/*
208 %attr(750,tftp,root) %dir /var/lib/tftp
211 %files -n tftpd-hpa-inetd
212 %defattr(644,root,root,755)
213 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/tftpd
215 %files -n tftpd-hpa-standalone
216 %defattr(644,root,root,755)
217 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/tftpd-hpa
218 %attr(754,root,root) /etc/rc.d/init.d/tftpd-hpa