]> git.pld-linux.org Git - packages/atftp.git/blob - atftp.spec
- converted to UTF-8
[packages/atftp.git] / atftp.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:           atftp
7 Version:        0.7
8 Release:        10
9 License:        GPL
10 Group:          Applications/Networking
11 Source0:        ftp://ftp.mamalinux.com/pub/atftp/%{name}-%{version}.tar.gz
12 # Source0-md5:  3b27365772d918050b2251d98a9c7c82
13 Source1:        %{name}d.inetd
14 Source2:        %{name}d.init
15 Source3:        %{name}d.sysconfig
16 Patch0:         %{name}-debian.patch
17 Patch1:         %{name}-tinfo.patch
18 Patch2:         %{name}-clk.patch
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  libtool
22 BuildRequires:  libwrap-devel
23 BuildRequires:  rpmbuild(macros) >= 1.268
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
30 %description -l de.UTF-8
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
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.
40
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ę
44 tftp klienta.
45
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.
50
51 %package -n atftpd-common
52 Summary:        Daemon for the trivial file transfer protocol (tftp)
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
57 Group:          Networking/Daemons
58 Requires(postun):       /usr/sbin/userdel
59 Requires(pre):  /bin/id
60 Requires(pre):  /usr/sbin/useradd
61 Provides:       user(tftp)
62
63 %description -n atftpd-common
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
70 %description -n atftpd-common -l de.UTF-8
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
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.
80
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.
86
87 %package -n atftpd-inetd
88 Summary:        inetd configs for atftpd
89 Summary(pl.UTF-8):   Pliki konfiguracyjne do użycia atftpd poprzez inetd
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
104 %description -n atftpd-inetd -l pl.UTF-8
105 Pliki konfiguracyjna atftpd do startowania demona poprzez inetd.
106
107 %package -n atftpd-standalone
108 Summary:        Standalone daemon configs for atftpd
109 Summary(pl.UTF-8):   Pliki konfiguracyjne do startowania atftpd w trybie standalone
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
124 %description -n atftpd-standalone -l pl.UTF-8
125 Pliki konfiguracyjne atftpd do startowania demona w trybie
126 standalone.
127
128 %prep
129 %setup -q
130 %patch0 -p1
131 %patch1 -p1
132 %patch2 -p1
133
134 %build
135 sed -i -e 's#argz.h##g' Makefile*
136 rm -f missing argz.h
137 %{__libtoolize}
138 %{__aclocal}
139 %{__automake}
140 %{__autoconf}
141 %configure
142 %{__make}
143
144 %install
145 rm -rf $RPM_BUILD_ROOT
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}
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
156 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/atftpd
157 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/atftpd
158
159 %clean
160 rm -rf $RPM_BUILD_ROOT
161
162 %pre -n atftpd-common
163 %useradd -u 15 -r -d /var/lib/tftp -s /bin/false -c "TFTP User" -g ftp tftp
164
165 %postun -n atftpd-common
166 if [ "$1" = "0" ]; then
167         %userremove tftp
168 fi
169
170 %post -n atftpd-inetd
171 %service -q rc-inetd reload
172
173 %postun -n atftpd-inetd
174 if [ "$1" = "0" ]; then
175         %service -q rc-inetd reload
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
186 fi
187
188 %files
189 %defattr(644,root,root,755)
190 %attr(755,root,root) %{_bindir}/*
191 %{_mandir}/man1/*
192
193 %files -n atftpd-common
194 %defattr(644,root,root,755)
195 %doc README FAQ
196 %attr(755,root,root) %{_sbindir}/*
197 %attr(750,tftp,root) %dir /var/lib/tftp
198 %{_mandir}/man8/*
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
This page took 0.069524 seconds and 3 git commands to generate.