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