]>
Commit | Line | Data |
---|---|---|
4b5838f1 | 1 | Summary: Client for the Trivial File Transfer Protocol (TFTP) |
9043c9a3 JR |
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 | |
4b5838f1 | 6 | Name: atftp |
8dc01274 | 7 | Version: 0.7 |
5b57b796 | 8 | Release: 10 |
4b5838f1 | 9 | License: GPL |
10 | Group: Applications/Networking | |
7bb56b12 | 11 | Source0: ftp://ftp.mamalinux.com/pub/atftp/%{name}-%{version}.tar.gz |
8dc01274 | 12 | # Source0-md5: 3b27365772d918050b2251d98a9c7c82 |
6ef28b5a | 13 | Source1: %{name}d.inetd |
44540900 | 14 | Source2: %{name}d.init |
15 | Source3: %{name}d.sysconfig | |
5b57b796 AM |
16 | Patch0: %{name}-debian.patch |
17 | Patch1: %{name}-tinfo.patch | |
18 | Patch2: %{name}-clk.patch | |
be47da68 | 19 | BuildRequires: autoconf |
20 | BuildRequires: automake | |
be47da68 | 21 | BuildRequires: libtool |
057a9039 ER |
22 | BuildRequires: libwrap-devel |
23 | BuildRequires: rpmbuild(macros) >= 1.268 | |
4b5838f1 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4b5838f1 | 25 | |
26 | %description | |
27 | The Trivial File Transfer Protocol (TFTP) is normally used only for | |
28 | booting diskless workstations. This package contains tftp client. | |
29 | ||
9043c9a3 | 30 | %description -l de.UTF-8 |
4b5838f1 | 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. | |
34 | ||
9043c9a3 JR |
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 | |
39 | nécessaire. | |
4b5838f1 | 40 | |
9043c9a3 JR |
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ę | |
4b5838f1 | 44 | tftp klienta. |
45 | ||
9043c9a3 JR |
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. | |
4b5838f1 | 50 | |
44540900 | 51 | %package -n atftpd-common |
4b5838f1 | 52 | Summary: Daemon for the trivial file transfer protocol (tftp) |
9043c9a3 JR |
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 | |
4b5838f1 | 57 | Group: Networking/Daemons |
057a9039 | 58 | Requires(postun): /usr/sbin/userdel |
4b5838f1 | 59 | Requires(pre): /bin/id |
60 | Requires(pre): /usr/sbin/useradd | |
755b58f7 | 61 | Provides: user(tftp) |
4b5838f1 | 62 | |
44540900 | 63 | %description -n atftpd-common |
4b5838f1 | 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. | |
69 | ||
9043c9a3 | 70 | %description -n atftpd-common -l de.UTF-8 |
4b5838f1 | 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. | |
74 | ||
9043c9a3 JR |
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 | |
79 | nécessaire. | |
4b5838f1 | 80 | |
9043c9a3 JR |
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. | |
4b5838f1 | 86 | |
44540900 | 87 | %package -n atftpd-inetd |
88 | Summary: inetd configs for atftpd | |
9043c9a3 | 89 | Summary(pl.UTF-8): Pliki konfiguracyjne do użycia atftpd poprzez inetd |
44540900 | 90 | Group: Daemons |
91 | Requires: atftpd-common = %{epoch}:%{version}-%{release} | |
92 | Requires: rc-inetd >= 0.8.1 | |
93 | Provides: tftpdaemon | |
94 | Obsoletes: atftpd | |
95 | Obsoletes: inetutils-tftpd | |
96 | Obsoletes: tftp-server | |
97 | Obsoletes: tftpd | |
98 | Obsoletes: tftpd-hpa | |
99 | Obsoletes: utftpd | |
100 | ||
101 | %description -n atftpd-inetd | |
102 | atftpd configs for running from inetd. | |
103 | ||
9043c9a3 | 104 | %description -n atftpd-inetd -l pl.UTF-8 |
44540900 | 105 | Pliki konfiguracyjna atftpd do startowania demona poprzez inetd. |
106 | ||
107 | %package -n atftpd-standalone | |
108 | Summary: Standalone daemon configs for atftpd | |
9043c9a3 | 109 | Summary(pl.UTF-8): Pliki konfiguracyjne do startowania atftpd w trybie standalone |
44540900 | 110 | Group: Daemons |
111 | Requires: atftpd-common = %{epoch}:%{version}-%{release} | |
112 | Requires: rc-scripts | |
113 | Provides: tftpdaemon | |
114 | Obsoletes: atftpd | |
115 | Obsoletes: inetutils-tftpd | |
116 | Obsoletes: tftp-server | |
117 | Obsoletes: tftpd | |
118 | Obsoletes: tftpd-hpa | |
119 | Obsoletes: utftpd | |
120 | ||
121 | %description -n atftpd-standalone | |
122 | atftpd configs for running as a standalone daemon. | |
123 | ||
9043c9a3 | 124 | %description -n atftpd-standalone -l pl.UTF-8 |
44540900 | 125 | Pliki konfiguracyjne atftpd do startowania demona w trybie |
126 | standalone. | |
127 | ||
4b5838f1 | 128 | %prep |
540a52dd | 129 | %setup -q |
5b57b796 AM |
130 | %patch0 -p1 |
131 | %patch1 -p1 | |
132 | %patch2 -p1 | |
4b5838f1 | 133 | |
134 | %build | |
1feb11b2 AM |
135 | sed -i -e 's#argz.h##g' Makefile* |
136 | rm -f missing argz.h | |
be47da68 | 137 | %{__libtoolize} |
138 | %{__aclocal} | |
139 | %{__automake} | |
140 | %{__autoconf} | |
141 | %configure | |
4b5838f1 | 142 | %{__make} |
143 | ||
144 | %install | |
145 | rm -rf $RPM_BUILD_ROOT | |
44540900 | 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} | |
4b5838f1 | 149 | |
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/ | |
154 | ||
155 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/tftpd | |
44540900 | 156 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/atftpd |
157 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/atftpd | |
4b5838f1 | 158 | |
159 | %clean | |
160 | rm -rf $RPM_BUILD_ROOT | |
161 | ||
44540900 | 162 | %pre -n atftpd-common |
492fd5ea | 163 | %useradd -u 15 -r -d /var/lib/tftp -s /bin/false -c "TFTP User" -g ftp tftp |
4b5838f1 | 164 | |
44540900 | 165 | %postun -n atftpd-common |
166 | if [ "$1" = "0" ]; then | |
167 | %userremove tftp | |
168 | fi | |
169 | ||
170 | %post -n atftpd-inetd | |
057a9039 | 171 | %service -q rc-inetd reload |
4b5838f1 | 172 | |
44540900 | 173 | %postun -n atftpd-inetd |
4b5838f1 | 174 | if [ "$1" = "0" ]; then |
057a9039 | 175 | %service -q rc-inetd reload |
44540900 | 176 | fi |
177 | ||
178 | %post -n atftpd-standalone | |
179 | /sbin/chkconfig --add atftpd | |
180 | %service atftpd restart | |
181 | ||
182 | %preun | |
183 | if [ "$1" = "0" ]; then | |
184 | %service atftpd stop | |
185 | /sbin/chkconfig --del atftpd | |
4b5838f1 | 186 | fi |
187 | ||
188 | %files | |
189 | %defattr(644,root,root,755) | |
190 | %attr(755,root,root) %{_bindir}/* | |
191 | %{_mandir}/man1/* | |
192 | ||
44540900 | 193 | %files -n atftpd-common |
4b5838f1 | 194 | %defattr(644,root,root,755) |
195 | %doc README FAQ | |
196 | %attr(755,root,root) %{_sbindir}/* | |
4b5838f1 | 197 | %attr(750,tftp,root) %dir /var/lib/tftp |
198 | %{_mandir}/man8/* | |
44540900 | 199 | |
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 | |
203 | ||
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 |