]> git.pld-linux.org Git - SPECS.git/blob - tftp-hpa.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / tftp-hpa.spec
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
6 Name:           tftp-hpa
7 Version:        5.2
8 Release:        8
9 License:        BSD
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
16 # from FC
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
31 Obsoletes:      tftp
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 The Trivial File Transfer Protocol (TFTP) is normally used only for
36 booting diskless workstations. This package contains TFTP client.
37
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.
42
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
47 nécessaire.
48
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ę
52 TFTP klienta.
53
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.
58
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
69 Provides:       group(tftp)
70 Provides:       user(tftp)
71
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.
78
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.
83
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
88 nécessaire.
89
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.
95
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}
102 Provides:       tftpdaemon
103 Obsoletes:      atftpd
104 Obsoletes:      inetutils-tftpd
105 Obsoletes:      tftp-server
106 Obsoletes:      tftpd
107 Obsoletes:      tftpd-hpa
108 Obsoletes:      utftpd
109
110 %description -n tftpd-hpa-inetd
111 tftpd-hpa configs for running from inetd.
112
113 %description -n tftpd-hpa-inetd -l pl.UTF-8
114 Pliki konfiguracyjna tftpd-hpa do startowania demona poprzez inetd.
115
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
120 Requires:       rc-scripts
121 Requires:       tftpd-hpa-common = %{version}-%{release}
122 Provides:       tftpdaemon
123 Obsoletes:      atftpd
124 Obsoletes:      inetutils-tftpd
125 Obsoletes:      tftp-server
126 Obsoletes:      tftpd
127 Obsoletes:      tftpd-hpa
128 Obsoletes:      utftpd
129
130 %description -n tftpd-hpa-standalone
131 tftpd-hpa configs for running as a standalone daemon.
132
133 %description -n tftpd-hpa-standalone -l pl.UTF-8
134 Pliki konfiguracyjne tftpd-hpa do startowania demona w trybie
135 standalone.
136
137 %prep
138 %setup -q
139 %patch0 -p1 -b .zero
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
147 %patch8 -p1
148 %patch9 -p1
149
150 %build
151 %configure
152
153 %{__make}
154
155 %install
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
160
161 %{__make} install \
162         INSTALLROOT=$RPM_BUILD_ROOT \
163         MANDIR=%{_mandir}
164
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
168
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
171
172 %clean
173 rm -rf $RPM_BUILD_ROOT
174
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
178
179 %postun -n tftpd-hpa-common
180 if [ "$1" = "0" ]; then
181         %userremove tftp
182         %groupremove tftp
183 fi
184
185 %post -n tftpd-hpa-inetd
186 %service -q rc-inetd reload
187
188 %postun -n tftpd-hpa-inetd
189 if [ "$1" = "0" ]; then
190         %service -q rc-inetd reload
191 fi
192
193 %post -n tftpd-hpa-standalone
194 /sbin/chkconfig --add tftpd-hpa
195 %service tftpd-hpa restart
196
197 %preun -n tftpd-hpa-standalone
198 if [ "$1" = "0" ]; then
199         %service tftpd-hpa stop
200         /sbin/chkconfig --del tftpd-hpa
201 fi
202
203 %files
204 %defattr(644,root,root,755)
205 %doc CHANGES README
206 %attr(755,root,root) %{_bindir}/*
207 %{_mandir}/man1/*
208
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
213 %{_mandir}/man8/*
214
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
218
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
This page took 1.361698 seconds and 3 git commands to generate.