]> git.pld-linux.org Git - packages/tftp-hpa.git/blob - tftp-hpa.spec
3f00c6d91a0bfaf2c1d89da3f3fe6896550cf3bf
[packages/tftp-hpa.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:        3
9 License:        BSD
10 Group:          Applications/Networking
11 Source0:        ftp://ftp.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 URL:            http://freshmeat.net/projects/tftp-hpa/
26 BuildRequires:  readline-devel
27 BuildRequires:  rpmbuild(macros) >= 1.268
28 Obsoletes:      inetutils-tftp
29 Obsoletes:      tftp
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 The Trivial File Transfer Protocol (TFTP) is normally used only for
34 booting diskless workstations. This package contains TFTP client.
35
36 %description -l de.UTF-8
37 Das trivial file transfer protocol (TFTP) wird in der Regel nur zum
38 Booten von disklosen Workstations benutzt. Es bietet nur geringe
39 Sicherheit und sollte nur im Bedarfsfall aktiviert werden.
40
41 %description -l fr.UTF-8
42 Le « trivial file transfer protocol » (TFTP) est normalement utilisé
43 uniquement pour démarrer les stations de travail sans disque. Il offre
44 très peu de sécurité et ne devrait pas être activé sauf si c'est
45 nécessaire.
46
47 %description -l pl.UTF-8
48 TFTP (Trivial File Transfer Protocol) jest używany głównie do
49 startowania stacji bezdyskowych z sieci. Pakiet ten zawiera aplikację
50 TFTP klienta.
51
52 %description -l tr.UTF-8
53 İlkel dosya aktarım protokolu genelde disksiz iş istasyonlarının ağ
54 üzerinden açılmalarında kullanılır. Güvenlik denetimleri çok az
55 olduğundan zorunlu kalmadıkça çalıştırılmamalıdır.
56
57 %package -n tftpd-hpa-common
58 Summary:        Daemon for the trivial file transfer protocol (TFTP)
59 Summary(de.UTF-8):      Dämon für das 'trivial file transfer protocol (TFTP)'
60 Summary(fr.UTF-8):      Démon pour le « trivial file transfer protocol » (TFTP)
61 Summary(pl.UTF-8):      Serwer TFTP (Trivial File Transfer Protocol)
62 Summary(tr.UTF-8):      İlkel dosya aktarım protokolu (TFTP) için sunucu ve istemci
63 Group:          Networking/Daemons/FTP
64 Requires(postun):       /usr/sbin/userdel
65 Requires(pre):  /bin/id
66 Requires(pre):  /usr/sbin/useradd
67 Provides:       group(tftp)
68 Provides:       user(tftp)
69
70 %description -n tftpd-hpa-common
71 The Trivial File Transfer Protocol (TFTP) is normally used only for
72 booting diskless workstations. The tftp-hpa package provides the user
73 interface for TFTP, which allows users to transfer files to and from a
74 remote machine. It provides very little security, and should not be
75 enabled unless it is needed.
76
77 %description -n tftpd-hpa-common -l de.UTF-8
78 Das trivial file transfer protocol (TFTP) wird in der Regel nur zum
79 Booten von disklosen Workstations benutzt. Es bietet nur geringe
80 Sicherheit und sollte nur im Bedarfsfall aktiviert werden.
81
82 %description -n tftpd-hpa-common -l fr.UTF-8
83 Le « trivial file transfer protocol » (TFTP) est normalement utilisé
84 uniquement pour démarrer les stations de travail sans disque. Il offre
85 très peu de sécurité et ne devrait pas être activé sauf si c'est
86 nécessaire.
87
88 %description -n tftpd-hpa-common -l pl.UTF-8
89 TFTP (Trivial File Transfer Protocol) jest używany głównie do
90 startowania stacji bezdyskowych z sieci. Serwer TFTP powinien być
91 instalowany tylko wtedy, kiedy zachodzi taka konieczność ponieważ
92 należy on do aplikacji o niskim poziomie bezpieczeństwa.
93
94 %package -n tftpd-hpa-inetd
95 Summary:        inetd configs for tftpd-hpa
96 Summary(pl.UTF-8):      Pliki konfiguracyjne do użycia tftpd-hpa poprzez inetd
97 Group:          Networking/Daemons/FTP
98 Requires:       rc-inetd >= 0.8.1
99 Requires:       tftpd-hpa-common = %{version}-%{release}
100 Provides:       tftpdaemon
101 Obsoletes:      atftpd
102 Obsoletes:      inetutils-tftpd
103 Obsoletes:      tftp-server
104 Obsoletes:      tftpd
105 Obsoletes:      tftpd-hpa
106 Obsoletes:      utftpd
107
108 %description -n tftpd-hpa-inetd
109 tftpd-hpa configs for running from inetd.
110
111 %description -n tftpd-hpa-inetd -l pl.UTF-8
112 Pliki konfiguracyjna tftpd-hpa do startowania demona poprzez inetd.
113
114 %package -n tftpd-hpa-standalone
115 Summary:        Standalone daemon configs for tftpd-hpa
116 Summary(pl.UTF-8):      Pliki konfiguracyjne do startowania tftpd-hpa w trybie standalone
117 Group:          Networking/Daemons/FTP
118 Requires:       rc-scripts
119 Requires:       tftpd-hpa-common = %{version}-%{release}
120 Provides:       tftpdaemon
121 Obsoletes:      atftpd
122 Obsoletes:      inetutils-tftpd
123 Obsoletes:      tftp-server
124 Obsoletes:      tftpd
125 Obsoletes:      tftpd-hpa
126 Obsoletes:      utftpd
127
128 %description -n tftpd-hpa-standalone
129 tftpd-hpa configs for running as a standalone daemon.
130
131 %description -n tftpd-hpa-standalone -l pl.UTF-8
132 Pliki konfiguracyjne tftpd-hpa do startowania demona w trybie
133 standalone.
134
135 %prep
136 %setup -q
137 %patch0 -p1 -b .zero
138 %patch1 -p1 -b .tzfix
139 %patch2 -p1 -b .tftpboot
140 %patch3 -p1 -b .chk_retcodes
141 %patch4 -p1 -b .fortify-strcpy-crash
142 %patch5 -p1 -b .cmd_arg
143 %patch6 -p1 -b .stats
144 %patch7 -p1 -b .pktinfo
145
146 %build
147 %configure
148
149 %{__make}
150
151 %install
152 rm -rf $RPM_BUILD_ROOT
153 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man{1,8}} \
154         $RPM_BUILD_ROOT{/etc/sysconfig/rc-inetd,/etc/rc.d/init.d} \
155         $RPM_BUILD_ROOT/var/lib/tftp
156
157 %{__make} install \
158         INSTALLROOT=$RPM_BUILD_ROOT \
159         MANDIR=%{_mandir}
160
161 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/tftpd
162 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/tftpd-hpa
163 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/tftpd-hpa
164
165 mv -f $RPM_BUILD_ROOT%{_sbindir}/in.tftpd $RPM_BUILD_ROOT%{_sbindir}/tftpd
166 mv -f $RPM_BUILD_ROOT%{_mandir}/man8/in.tftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/tftpd.8
167
168 %clean
169 rm -rf $RPM_BUILD_ROOT
170
171 %pre -n tftpd-hpa-common
172 %groupadd -P tftpd-hpa -g 59 -r -f tftp
173 %useradd -P tftpd-hpa -u 15 -r -d /var/lib/tftp -s /bin/false -c "TFTP User" -g tftp tftp
174
175 %postun -n tftpd-hpa-common
176 if [ "$1" = "0" ]; then
177         %userremove tftp
178         %groupremove tftp
179 fi
180
181 %post -n tftpd-hpa-inetd
182 %service -q rc-inetd reload
183
184 %postun -n tftpd-hpa-inetd
185 if [ "$1" = "0" ]; then
186         %service -q rc-inetd reload
187 fi
188
189 %post -n tftpd-hpa-standalone
190 /sbin/chkconfig --add tftpd-hpa
191 %service tftpd-hpa restart
192
193 %preun -n tftpd-hpa-standalone
194 if [ "$1" = "0" ]; then
195         %service tftpd-hpa stop
196         /sbin/chkconfig --del tftpd-hpa
197 fi
198
199 %files
200 %defattr(644,root,root,755)
201 %doc CHANGES README
202 %attr(755,root,root) %{_bindir}/*
203 %{_mandir}/man1/*
204
205 %files -n tftpd-hpa-common
206 %defattr(644,root,root,755)
207 %attr(755,root,root) %{_sbindir}/*
208 %attr(750,tftp,root) %dir /var/lib/tftp
209 %{_mandir}/man8/*
210
211 %files -n tftpd-hpa-inetd
212 %defattr(644,root,root,755)
213 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/tftpd
214
215 %files -n tftpd-hpa-standalone
216 %defattr(644,root,root,755)
217 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/tftpd-hpa
218 %attr(754,root,root) /etc/rc.d/init.d/tftpd-hpa
This page took 0.082509 seconds and 2 git commands to generate.