]>
Commit | Line | Data |
---|---|---|
4b5838f1 | 1 | Summary: Client for the Trivial File Transfer Protocol (TFTP) |
fe7e8303 ER |
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 |
06599462 AM |
7 | Version: 0.7.1 |
8 | Release: 1 | |
4b5838f1 | 9 | License: GPL |
10 | Group: Applications/Networking | |
06599462 AM |
11 | Source0: http://downloads.sourceforge.net/project/atftp/%{name}-%{version}.tar.gz |
12 | # Source0-md5: 367bf401965fbed04585b1229c2191a8 | |
6ef28b5a | 13 | Source1: %{name}d.inetd |
44540900 | 14 | Source2: %{name}d.init |
15 | Source3: %{name}d.sysconfig | |
06599462 AM |
16 | Patch0: %{name}-tinfo.patch |
17 | Patch1: %{name}-clk.patch | |
18 | URL: http://sourceforge.net/projects/atftp/ | |
be47da68 | 19 | BuildRequires: autoconf |
20 | BuildRequires: automake | |
be47da68 | 21 | BuildRequires: libtool |
057a9039 | 22 | BuildRequires: libwrap-devel |
06599462 | 23 | BuildRequires: readline-devel |
057a9039 | 24 | BuildRequires: rpmbuild(macros) >= 1.268 |
4b5838f1 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4b5838f1 | 26 | |
27 | %description | |
28 | The Trivial File Transfer Protocol (TFTP) is normally used only for | |
29 | booting diskless workstations. This package contains tftp client. | |
30 | ||
9043c9a3 | 31 | %description -l de.UTF-8 |
4b5838f1 | 32 | Das trivial file transfer protocol (tftp) wird in der Regel nur zum |
33 | Booten von disklosen Workstations benutzt. Es bietet nur geringe | |
34 | Sicherheit und sollte nur im Bedarfsfall aktiviert werden. | |
35 | ||
9043c9a3 JR |
36 | %description -l fr.UTF-8 |
37 | Le « trivial file transfer protocol » (tftp) est normalement utilisé | |
38 | uniquement pour démarrer les stations de travail sans disque. Il offre | |
39 | très peu de sécurité et ne devrait pas être activé sauf si c'est | |
40 | nécessaire. | |
4b5838f1 | 41 | |
9043c9a3 JR |
42 | %description -l pl.UTF-8 |
43 | Tftp (trivial file transfer protocol) jest używany głównie do | |
44 | startowania stacji bezdyskowych z sieci. Pakiet ten zawiera aplikację | |
4b5838f1 | 45 | tftp klienta. |
46 | ||
9043c9a3 JR |
47 | %description -l tr.UTF-8 |
48 | İlkel dosya aktarım protokolu genelde disksiz iş istasyonlarının ağ | |
49 | üzerinden açılmalarında kullanılır. Güvenlik denetimleri çok az | |
50 | olduğundan zorunlu kalmadıkça çalıştırılmamalıdır. | |
4b5838f1 | 51 | |
44540900 | 52 | %package -n atftpd-common |
4b5838f1 | 53 | Summary: Daemon for the trivial file transfer protocol (tftp) |
fe7e8303 ER |
54 | Summary(de.UTF-8): Dämon für das 'trivial file transfer protocol (tftp)' |
55 | Summary(fr.UTF-8): Démon pour le « trivial file transfer protocol » (tftp) | |
56 | Summary(pl.UTF-8): Serwer tftp (trivial file transfer protocol) | |
57 | Summary(tr.UTF-8): İlkel dosya aktarım protokolu (TFTP) için sunucu ve istemci | |
a737495c | 58 | Group: Networking/Daemons/FTP |
057a9039 | 59 | Requires(postun): /usr/sbin/userdel |
4b5838f1 | 60 | Requires(pre): /bin/id |
61 | Requires(pre): /usr/sbin/useradd | |
755b58f7 | 62 | Provides: user(tftp) |
4b5838f1 | 63 | |
44540900 | 64 | %description -n atftpd-common |
4b5838f1 | 65 | The Trivial File Transfer Protocol (TFTP) is normally used only for |
66 | booting diskless workstations. The tftp package provides the user | |
67 | interface for TFTP, which allows users to transfer files to and from a | |
68 | remote machine. It provides very little security, and should not be | |
69 | enabled unless it is needed. | |
70 | ||
9043c9a3 | 71 | %description -n atftpd-common -l de.UTF-8 |
4b5838f1 | 72 | Das trivial file transfer protocol (tftp) wird in der Regel nur zum |
73 | Booten von disklosen Workstations benutzt. Es bietet nur geringe | |
74 | Sicherheit und sollte nur im Bedarfsfall aktiviert werden. | |
75 | ||
9043c9a3 JR |
76 | %description -n atftpd-common -l fr.UTF-8 |
77 | Le « trivial file transfer protocol » (tftp) est normalement utilisé | |
78 | uniquement pour démarrer les stations de travail sans disque. Il offre | |
79 | très peu de sécurité et ne devrait pas être activé sauf si c'est | |
80 | nécessaire. | |
4b5838f1 | 81 | |
9043c9a3 JR |
82 | %description -n atftpd-common -l pl.UTF-8 |
83 | TFTP (Trivial File Transfer Protocol) jest używany głównie do | |
84 | startowania stacji bezdyskowych z sieci. Serwer tftp powinien być | |
85 | instalowany tylko wtedy, kiedy zachodzi taka konieczność ponieważ | |
86 | należy on do aplikacji o niskim poziomie bezpieczeństwa. | |
4b5838f1 | 87 | |
44540900 | 88 | %package -n atftpd-inetd |
89 | Summary: inetd configs for atftpd | |
fe7e8303 | 90 | Summary(pl.UTF-8): Pliki konfiguracyjne do użycia atftpd poprzez inetd |
a737495c | 91 | Group: Networking/Daemons/FTP |
44540900 | 92 | Requires: atftpd-common = %{epoch}:%{version}-%{release} |
93 | Requires: rc-inetd >= 0.8.1 | |
94 | Provides: tftpdaemon | |
95 | Obsoletes: atftpd | |
96 | Obsoletes: inetutils-tftpd | |
97 | Obsoletes: tftp-server | |
98 | Obsoletes: tftpd | |
99 | Obsoletes: tftpd-hpa | |
100 | Obsoletes: utftpd | |
101 | ||
102 | %description -n atftpd-inetd | |
103 | atftpd configs for running from inetd. | |
104 | ||
9043c9a3 | 105 | %description -n atftpd-inetd -l pl.UTF-8 |
44540900 | 106 | Pliki konfiguracyjna atftpd do startowania demona poprzez inetd. |
107 | ||
108 | %package -n atftpd-standalone | |
109 | Summary: Standalone daemon configs for atftpd | |
fe7e8303 | 110 | Summary(pl.UTF-8): Pliki konfiguracyjne do startowania atftpd w trybie standalone |
a737495c | 111 | Group: Networking/Daemons/FTP |
44540900 | 112 | Requires: atftpd-common = %{epoch}:%{version}-%{release} |
113 | Requires: rc-scripts | |
114 | Provides: tftpdaemon | |
115 | Obsoletes: atftpd | |
116 | Obsoletes: inetutils-tftpd | |
117 | Obsoletes: tftp-server | |
118 | Obsoletes: tftpd | |
119 | Obsoletes: tftpd-hpa | |
120 | Obsoletes: utftpd | |
121 | ||
122 | %description -n atftpd-standalone | |
123 | atftpd configs for running as a standalone daemon. | |
124 | ||
9043c9a3 | 125 | %description -n atftpd-standalone -l pl.UTF-8 |
44540900 | 126 | Pliki konfiguracyjne atftpd do startowania demona w trybie |
127 | standalone. | |
128 | ||
4b5838f1 | 129 | %prep |
540a52dd | 130 | %setup -q |
5b57b796 AM |
131 | %patch0 -p1 |
132 | %patch1 -p1 | |
06599462 AM |
133 | |
134 | sed -i -e 's#AM_CONFIG_HEADER#AC_CONFIG_HEADERS#g' configure.ac | |
135 | sed -i -e 's#CFLAGS="-g -Wall -D_REENTRANT"##g' configure.ac | |
4b5838f1 | 136 | |
137 | %build | |
be47da68 | 138 | %{__libtoolize} |
139 | %{__aclocal} | |
140 | %{__automake} | |
141 | %{__autoconf} | |
06599462 AM |
142 | |
143 | %configure \ | |
144 | --enable-libreadline \ | |
145 | --enable-libwrap \ | |
146 | --enable-libpcre \ | |
147 | --enable-mtftp | |
4b5838f1 | 148 | %{__make} |
149 | ||
150 | %install | |
151 | rm -rf $RPM_BUILD_ROOT | |
44540900 | 152 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},/var/lib/tftp} \ |
153 | $RPM_BUILD_ROOT{%{_mandir}/man{1,8},} \ | |
154 | $RPM_BUILD_ROOT{/etc/sysconfig/rc-inetd,/etc/rc.d/init.d} | |
4b5838f1 | 155 | |
06599462 AM |
156 | %{__make} install \ |
157 | DESTDIR=$RPM_BUILD_ROOT | |
4b5838f1 | 158 | |
159 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/tftpd | |
44540900 | 160 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/atftpd |
161 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/atftpd | |
4b5838f1 | 162 | |
163 | %clean | |
164 | rm -rf $RPM_BUILD_ROOT | |
165 | ||
44540900 | 166 | %pre -n atftpd-common |
492fd5ea | 167 | %useradd -u 15 -r -d /var/lib/tftp -s /bin/false -c "TFTP User" -g ftp tftp |
4b5838f1 | 168 | |
44540900 | 169 | %postun -n atftpd-common |
170 | if [ "$1" = "0" ]; then | |
171 | %userremove tftp | |
172 | fi | |
173 | ||
174 | %post -n atftpd-inetd | |
057a9039 | 175 | %service -q rc-inetd reload |
4b5838f1 | 176 | |
44540900 | 177 | %postun -n atftpd-inetd |
4b5838f1 | 178 | if [ "$1" = "0" ]; then |
057a9039 | 179 | %service -q rc-inetd reload |
44540900 | 180 | fi |
181 | ||
182 | %post -n atftpd-standalone | |
183 | /sbin/chkconfig --add atftpd | |
184 | %service atftpd restart | |
185 | ||
186 | %preun | |
187 | if [ "$1" = "0" ]; then | |
a737495c TP |
188 | %service atftpd stop |
189 | /sbin/chkconfig --del atftpd | |
4b5838f1 | 190 | fi |
191 | ||
192 | %files | |
193 | %defattr(644,root,root,755) | |
194 | %attr(755,root,root) %{_bindir}/* | |
195 | %{_mandir}/man1/* | |
196 | ||
44540900 | 197 | %files -n atftpd-common |
4b5838f1 | 198 | %defattr(644,root,root,755) |
199 | %doc README FAQ | |
200 | %attr(755,root,root) %{_sbindir}/* | |
4b5838f1 | 201 | %attr(750,tftp,root) %dir /var/lib/tftp |
202 | %{_mandir}/man8/* | |
44540900 | 203 | |
204 | %files -n atftpd-inetd | |
205 | %defattr(644,root,root,755) | |
206 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/tftpd | |
207 | ||
208 | %files -n atftpd-standalone | |
209 | %defattr(644,root,root,755) | |
210 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/atftpd | |
211 | %attr(754,root,root) /etc/rc.d/init.d/atftpd |