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: https://www.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 Patch8: tftp-enhanced-logging.patch
26 Patch9: tftp-hpa-5.2-gcc10.patch
27 URL: http://freshmeat.net/projects/tftp-hpa/
28 BuildRequires: readline-devel
29 BuildRequires: rpmbuild(macros) >= 1.268
30 Obsoletes: inetutils-tftp
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 The Trivial File Transfer Protocol (TFTP) is normally used only for
36 booting diskless workstations. This package contains TFTP client.
38 %description -l de.UTF-8
39 Das trivial file transfer protocol (TFTP) wird in der Regel nur zum
40 Booten von disklosen Workstations benutzt. Es bietet nur geringe
41 Sicherheit und sollte nur im Bedarfsfall aktiviert werden.
43 %description -l fr.UTF-8
44 Le « trivial file transfer protocol » (TFTP) est normalement utilisé
45 uniquement pour démarrer les stations de travail sans disque. Il offre
46 très peu de sécurité et ne devrait pas être activé sauf si c'est
49 %description -l pl.UTF-8
50 TFTP (Trivial File Transfer Protocol) jest używany głównie do
51 startowania stacji bezdyskowych z sieci. Pakiet ten zawiera aplikację
54 %description -l tr.UTF-8
55 İlkel dosya aktarım protokolu genelde disksiz iş istasyonlarının ağ
56 üzerinden açılmalarında kullanılır. Güvenlik denetimleri çok az
57 olduğundan zorunlu kalmadıkça çalıştırılmamalıdır.
59 %package -n tftpd-hpa-common
60 Summary: Daemon for the trivial file transfer protocol (TFTP)
61 Summary(de.UTF-8): Dämon für das 'trivial file transfer protocol (TFTP)'
62 Summary(fr.UTF-8): Démon pour le « trivial file transfer protocol » (TFTP)
63 Summary(pl.UTF-8): Serwer TFTP (Trivial File Transfer Protocol)
64 Summary(tr.UTF-8): İlkel dosya aktarım protokolu (TFTP) için sunucu ve istemci
65 Group: Networking/Daemons/FTP
66 Requires(postun): /usr/sbin/userdel
67 Requires(pre): /bin/id
68 Requires(pre): /usr/sbin/useradd
72 %description -n tftpd-hpa-common
73 The Trivial File Transfer Protocol (TFTP) is normally used only for
74 booting diskless workstations. The tftp-hpa package provides the user
75 interface for TFTP, which allows users to transfer files to and from a
76 remote machine. It provides very little security, and should not be
77 enabled unless it is needed.
79 %description -n tftpd-hpa-common -l de.UTF-8
80 Das trivial file transfer protocol (TFTP) wird in der Regel nur zum
81 Booten von disklosen Workstations benutzt. Es bietet nur geringe
82 Sicherheit und sollte nur im Bedarfsfall aktiviert werden.
84 %description -n tftpd-hpa-common -l fr.UTF-8
85 Le « trivial file transfer protocol » (TFTP) est normalement utilisé
86 uniquement pour démarrer les stations de travail sans disque. Il offre
87 très peu de sécurité et ne devrait pas être activé sauf si c'est
90 %description -n tftpd-hpa-common -l pl.UTF-8
91 TFTP (Trivial File Transfer Protocol) jest używany głównie do
92 startowania stacji bezdyskowych z sieci. Serwer TFTP powinien być
93 instalowany tylko wtedy, kiedy zachodzi taka konieczność ponieważ
94 należy on do aplikacji o niskim poziomie bezpieczeństwa.
96 %package -n tftpd-hpa-inetd
97 Summary: inetd configs for tftpd-hpa
98 Summary(pl.UTF-8): Pliki konfiguracyjne do użycia tftpd-hpa poprzez inetd
99 Group: Networking/Daemons/FTP
100 Requires: rc-inetd >= 0.8.1
101 Requires: tftpd-hpa-common = %{version}-%{release}
104 Obsoletes: inetutils-tftpd
105 Obsoletes: tftp-server
110 %description -n tftpd-hpa-inetd
111 tftpd-hpa configs for running from inetd.
113 %description -n tftpd-hpa-inetd -l pl.UTF-8
114 Pliki konfiguracyjna tftpd-hpa do startowania demona poprzez inetd.
116 %package -n tftpd-hpa-standalone
117 Summary: Standalone daemon configs for tftpd-hpa
118 Summary(pl.UTF-8): Pliki konfiguracyjne do startowania tftpd-hpa w trybie standalone
119 Group: Networking/Daemons/FTP
121 Requires: tftpd-hpa-common = %{version}-%{release}
124 Obsoletes: inetutils-tftpd
125 Obsoletes: tftp-server
130 %description -n tftpd-hpa-standalone
131 tftpd-hpa configs for running as a standalone daemon.
133 %description -n tftpd-hpa-standalone -l pl.UTF-8
134 Pliki konfiguracyjne tftpd-hpa do startowania demona w trybie
140 %patch1 -p1 -b .tzfix
141 %patch2 -p1 -b .tftpboot
142 %patch3 -p1 -b .chk_retcodes
143 %patch4 -p1 -b .fortify-strcpy-crash
144 %patch5 -p1 -b .cmd_arg
145 %patch6 -p1 -b .stats
146 %patch7 -p1 -b .pktinfo
156 rm -rf $RPM_BUILD_ROOT
157 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man{1,8}} \
158 $RPM_BUILD_ROOT{/etc/sysconfig/rc-inetd,/etc/rc.d/init.d} \
159 $RPM_BUILD_ROOT/var/lib/tftp
162 INSTALLROOT=$RPM_BUILD_ROOT \
165 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/tftpd
166 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/tftpd-hpa
167 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/tftpd-hpa
169 mv -f $RPM_BUILD_ROOT%{_sbindir}/in.tftpd $RPM_BUILD_ROOT%{_sbindir}/tftpd
170 mv -f $RPM_BUILD_ROOT%{_mandir}/man8/in.tftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/tftpd.8
173 rm -rf $RPM_BUILD_ROOT
175 %pre -n tftpd-hpa-common
176 %groupadd -P tftpd-hpa -g 59 -r -f tftp
177 %useradd -P tftpd-hpa -u 15 -r -d /var/lib/tftp -s /bin/false -c "TFTP User" -g tftp tftp
179 %postun -n tftpd-hpa-common
180 if [ "$1" = "0" ]; then
185 %post -n tftpd-hpa-inetd
186 %service -q rc-inetd reload
188 %postun -n tftpd-hpa-inetd
189 if [ "$1" = "0" ]; then
190 %service -q rc-inetd reload
193 %post -n tftpd-hpa-standalone
194 /sbin/chkconfig --add tftpd-hpa
195 %service tftpd-hpa restart
197 %preun -n tftpd-hpa-standalone
198 if [ "$1" = "0" ]; then
199 %service tftpd-hpa stop
200 /sbin/chkconfig --del tftpd-hpa
204 %defattr(644,root,root,755)
206 %attr(755,root,root) %{_bindir}/*
209 %files -n tftpd-hpa-common
210 %defattr(644,root,root,755)
211 %attr(755,root,root) %{_sbindir}/*
212 %attr(750,tftp,root) %dir /var/lib/tftp
215 %files -n tftpd-hpa-inetd
216 %defattr(644,root,root,755)
217 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/tftpd
219 %files -n tftpd-hpa-standalone
220 %defattr(644,root,root,755)
221 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/tftpd-hpa
222 %attr(754,root,root) /etc/rc.d/init.d/tftpd-hpa