]> git.pld-linux.org Git - packages/openssh.git/blob - openssh.spec
- merge translations from Conectiva.
[packages/openssh.git] / openssh.spec
1 #
2 # Conditional build:    
3 # _without_gnome - without gnome-askpass utility
4 # _without_embed - don't build uClibc version
5
6 Summary:        OpenSSH free Secure Shell (SSH) implementation
7 Summary(es):    Implementación libre de SSH
8 Summary(pl):    Publicznie dostêpna implementacja bezpiecznego shella (SSH)
9 Summary(pt_BR): Implementação livre do SSH
10 Name:           openssh
11 Version:        3.0.2p1
12 Release:        2
13 License:        BSD
14 Group:          Applications/Networking
15 Group(de):      Applikationen/Netzwerkwesen
16 Group(pl):      Aplikacje/Sieciowe
17 Source0:        ftp://ftp.ca.openbsd.org/pub/OpenBSD/OpenSSH/portable/%{name}-%{version}.tar.gz
18 Source1:        %{name}d.conf
19 Source2:        %{name}.conf
20 Source3:        %{name}d.init
21 Source4:        %{name}d.pamd
22 Source5:        %{name}.sysconfig
23 Source6:        passwd.pamd
24 Patch0:         %{name}-libwrap.patch
25 Patch1:         %{name}-no_libnsl.patch
26 Patch2:         %{name}-no-openssl-ver-check.patch
27 Patch3:         %{name}-set_12.patch
28 URL:            http://www.openssh.com/
29 BuildRequires:  XFree86-devel
30 BuildRequires:  autoconf
31 BuildRequires:  automake
32 %{!?_without_gnome:BuildRequires: gnome-libs-devel}
33 BuildRequires:  openssl-devel >= 0.9.6a
34 BuildRequires:  pam-devel
35 BuildRequires:  zlib-devel
36 BuildRequires:  libwrap-devel
37 BuildRequires:  perl
38 %if %{!?_without_embed:1}%{?_without_embed:0}
39 BuildRequires:  uClibc-devel
40 BuildRequires:  uClibc-static
41 BuildRequires:  openssl-devel-embed
42 BuildRequires:  zlib-devel-embed
43 %endif
44 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 Prereq:         openssl
46 Obsoletes:      ssh
47
48 %define embed_path      /usr/lib/embed
49 %define embed_cc        %{_arch}-uclibc-cc
50 %define embed_cflags    %{rpmcflags} -Os
51
52 %define embed_binaries  ssh scp sshd ssh-keygen
53
54 %define         _sysconfdir     /etc/ssh
55 %define         _libexecdir     %{_libdir}/%{name}
56
57 %description
58 Ssh (Secure Shell) a program for logging into a remote machine and for
59 executing commands in a remote machine. It is intended to replace
60 rlogin and rsh, and provide secure encrypted communications between
61 two untrusted hosts over an insecure network. X11 connections and
62 arbitrary TCP/IP ports can also be forwarded over the secure channel.
63
64 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
65 it up to date in terms of security and features, as well as removing
66 all patented algorithms to seperate libraries (OpenSSL).
67
68 This package includes the core files necessary for both the OpenSSH
69 client and server. To make this package useful, you should also
70 install openssh-clients, openssh-server, or both.
71
72 %description -l es
73 SSH es un programa para accesar y ejecutar órdenes en computadores
74 remotos. Sustituye rlogin y rsh, y suministra un canal de comunicación
75 seguro entre dos servidores en una red insegura. Conexiones X11 y
76 puertas TCP/IP arbitrárias también pueden ser usadas por el canal
77 seguro.
78
79 OpenSSH es el resultado del trabajo del equipo de OpenBSD para
80 continuar la última versión gratuita de SSH, actualizándolo en
81 términos de seguridad y recursos,así también eliminando todos los
82 algoritmos patentados y colocándolos en bibliotecas separadas
83 (OpenSSL).
84
85 Este paquete contiene "port" para Linux de OpenSSH. Se debe instalar
86 también el paquete openssh-clients u openssh-server o ambos.
87
88 %description -l pl
89 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
90 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
91 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
92 pomiedzy dwoma hostami.
93
94 %description -l pt_BR
95 SSH é um programa para acessar e executar comandos em máquinas
96 remotas. Ele substitui rlogin e rsh, e provem um canal de comunicação
97 seguro entre dois hosts em uma rede insegura. Conexões X11 e portas
98 TCP/IP arbitrárias também podem ser usadas pelo canal seguro.
99
100 OpenSSH é o resultado do trabalho da equipe do OpenBSD em continuar a
101 última versão gratuita do SSH, atualizando-o em termos de segurança e
102 recursos, assim como removendo todos os algoritmos patenteados e
103 colocando-os em bibliotecas separadas (OpenSSL).
104
105 Esse pacote contém o "port" pra Linux do OpenSSH. Você deve instalar
106 também ou o pacote openssh-clients, ou o openssh-server, ou ambos.
107
108 %package clients
109 Summary:        OpenSSH Secure Shell protocol clients
110 Summary(es):    Clientes de OpenSSH
111 Summary(pl):    Klienci protoko³u Secure Shell
112 Summary(pt_BR): Clientes do OpenSSH
113 Requires:       openssh
114 Group:          Applications/Networking
115 Group(de):      Applikationen/Netzwerkwesen
116 Group(pl):      Aplikacje/Sieciowe
117 Obsoletes:      ssh-clients
118 Requires:       %{name} = %{version}
119
120 %description clients
121 Ssh (Secure Shell) a program for logging into a remote machine and for
122 executing commands in a remote machine. It is intended to replace
123 rlogin and rsh, and provide secure encrypted communications between
124 two untrusted hosts over an insecure network. X11 connections and
125 arbitrary TCP/IP ports can also be forwarded over the secure channel.
126
127 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
128 it up to date in terms of security and features, as well as removing
129 all patented algorithms to seperate libraries (OpenSSL).
130
131 This package includes the clients necessary to make encrypted
132 connections to SSH servers.
133
134 %description -l es clients
135 Este paquete incluye los clientes que se necesitan para hacer
136 conexiones codificadas con servidores SSH.
137
138 %description -l pl clients
139 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
140 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
141 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
142 pomiedzy dwoma hostami.
143
144 Ten pakiet zawiera klientów s³u¿±cych do ³±czenia siê z serwerami SSH.
145
146 %description -l pt_BR clients
147 Esse pacote inclui os clientes necessários para fazer conexões
148 encriptadas com servidores SSH.
149
150 %package server
151 Summary:        OpenSSH Secure Shell protocol server (sshd)
152 Summary(es):    Servidor OpenSSH para comunicaciones codificadas
153 Summary(pl):    Serwer protoko³u Secure Shell (sshd)
154 Summary(pt_BR): Servidor OpenSSH para comunicações encriptadas
155 Requires:       openssh
156 Requires:       chkconfig >= 0.9
157 Group:          Networking/Daemons
158 Group(de):      Netzwerkwesen/Server
159 Group(pl):      Sieciowe/Serwery
160 Obsoletes:      ssh-server
161 Requires:       /bin/login
162 Requires:       util-linux
163 Prereq:         rc-scripts
164 Prereq:         /sbin/chkconfig
165 Prereq:         %{name} = %{version}
166
167 %description server
168 Ssh (Secure Shell) a program for logging into a remote machine and for
169 executing commands in a remote machine. It is intended to replace
170 rlogin and rsh, and provide secure encrypted communications between
171 two untrusted hosts over an insecure network. X11 connections and
172 arbitrary TCP/IP ports can also be forwarded over the secure channel.
173
174 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
175 it up to date in terms of security and features, as well as removing
176 all patented algorithms to seperate libraries (OpenSSL).
177
178 This package contains the secure shell daemon. The sshd is the server
179 part of the secure shell protocol and allows ssh clients to connect to
180 your host.
181
182 %description server -l es
183 Este paquete contiene el servidor SSH. sshd es la parte servidor del
184 protocolo secure shell y permite que clientes ssh se conecten a su
185 servidor.
186
187 %description server -l pl
188 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
189 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
190 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
191 pomiedzy dwoma hostami.
192
193 Ten pakiet zawiera serwer sshd (do którego mog± ³±czyæ siê klienci
194 ssh).
195
196 %description server -l pt_BR
197 Esse pacote contém o servidor SSH. O sshd é a parte servidor do
198 protocolo secure shell e permite que clientes ssh se conectem ao seu
199 host.
200
201 %package embed
202 Summary:        OpenSSH Secure Shell for embedded applications
203 Summary:        OpenSSH Secure Shell dla aplikacji wbudowanych 
204 Requires:       openssh
205 Group:          Applications/Networking
206 Group(de):      Applikationen/Netzwerkwesen
207 Group(pl):      Aplikacje/Sieciowe
208 Obsoletes:      ssh-clients
209
210 %description embed
211 OpenSSH for embedded enviroment. Client, server, scp and ssh-keygen.
212
213 %description -l pl embed
214 OpenSSH dla aplikacji wbudowanych. Klient, serwer, scp i ssh-keygen.
215
216
217 %package gnome-askpass
218 Summary:        OpenSSH GNOME passphrase dialog
219 Summary(es):    Diálogo para introducción de passphrase para GNOME
220 Summary(pl):    Odpytywacz has³a OpenSSH dla GNOME
221 Summary(pt_BR): Diálogo para entrada de passphrase para GNOME
222 Group:          Applications/Networking
223 Group(de):      Applikationen/Netzwerkwesen
224 Group(pl):      Aplikacje/Sieciowe
225 Requires:       %{name} = %{version}
226 Obsoletes:      ssh-extras
227 Obsoletes:      ssh-askpass
228 Obsoletes:      openssh-askpass
229
230 %description gnome-askpass
231 Ssh (Secure Shell) a program for logging into a remote machine and for
232 executing commands in a remote machine. It is intended to replace
233 rlogin and rsh, and provide secure encrypted communications between
234 two untrusted hosts over an insecure network. X11 connections and
235 arbitrary TCP/IP ports can also be forwarded over the secure channel.
236
237 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
238 it up to date in terms of security and features, as well as removing
239 all patented algorithms to seperate libraries (OpenSSL).
240
241 This package contains the GNOME passphrase dialog.
242
243 %description gnome-askpass -l es 
244 Este paquete contiene un programa que abre una caja de diálogo para
245 entrada de passphrase en GNOME.
246
247 %description gnome-askpass -l pl
248 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
249 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
250 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
251 pomiedzy dwoma hostami.
252
253 Ten pakiet zawiera ,,odpytywacz has³a'' dla GNOME.
254
255 %description gnome-askpass -l pt_BR
256 Esse pacote contém um programa que abre uma caixa de diálogo para
257 entrada de passphrase no GNOME.
258
259 %prep
260 %setup  -q
261 %patch0 -p1
262 %patch1 -p1
263 %patch2 -p1
264 %patch3 -p1
265
266 %build
267 aclocal
268 autoconf
269
270 %if %{!?_without_embed:1}%{?_without_embed:0}
271 %configure \
272         --without-gnome-askpass \
273         --without-pam \
274         --without-shadow \
275         --with-mantype=man \
276         --with-md5-passwords \
277         --with-ipaddr-display \
278         --with-4in6 \
279         --disable-suid-ssh \
280         --without-tcp-wrappers \
281         --with-pid-dir=%{_localstatedir}/run \
282         CC=%{embed_cc} CFLAGS="%{embed_cflags}"
283
284 echo '#define LOGIN_PROGRAM           "/bin/login"' >>config.h
285 %{__make}
286
287 for f in %{embed_binaries} ; do
288         mv -f $f $f-embed-shared
289 done
290
291 %{__make} LDFLAGS="'-static -L. -Lopenbsd-compat/'"
292
293 for f in %{embed_binaries} ; do
294         mv -f $f $f-embed-static
295 done
296
297 %{__make} distclean
298 %endif
299
300 %configure \
301         %{!?_without_gnome:--with-gnome-askpass} \
302         --with-pam \
303         --with-mantype=man \
304         --with-md5-passwords \
305         --with-ipaddr-display \
306         --with-4in6 \
307         --disable-suid-ssh \
308         --with-tcp-wrappers \
309         --with-pid-dir=%{_localstatedir}/run
310
311 echo '#define LOGIN_PROGRAM           "/bin/login"' >>config.h
312
313 %{__make}
314
315 %{!?_without_gnome:cd contrib && %{__cc} %{rpmcflags} `gnome-config --cflags gnome gnomeui gtk` } \
316 %{!?_without_gnome:     gnome-ssh-askpass.c -o gnome-ssh-askpass } \
317 %{!?_without_gnome:     `gnome-config --libs gnome gnomeui gtk` }
318
319 %install
320 rm -rf $RPM_BUILD_ROOT
321 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{pam.d,rc.d/init.d,sysconfig,security}}
322
323 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
324
325 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/sshd
326 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/passwdssh
327 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/sshd
328 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
329 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ssh_config
330 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sshd_config
331 install -d $RPM_BUILD_ROOT%{_libexecdir}/ssh
332 %{!?_without_gnome:install contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass}
333
334 rm -f   $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
335 echo ".so man1/ssh.1" > $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
336
337 gzip -9nf *.RNG TODO README OVERVIEW CREDITS Change*
338
339 touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
340
341 %if %{!?_without_embed:1}%{?_without_embed:0}
342 install -d $RPM_BUILD_ROOT/%{embed_path}/{shared,static}
343 for f in %{embed_binaries} ; do
344         install $f-embed-static $RPM_BUILD_ROOT/%{embed_path}/static/$f
345         install $f-embed-shared $RPM_BUILD_ROOT/%{embed_path}/shared/$f
346 done
347 %endif
348
349 %clean
350 rm -rf $RPM_BUILD_ROOT
351
352 %post server
353 /sbin/chkconfig --add sshd
354 if [ -f /var/lock/subsys/sshd ]; then
355         /etc/rc.d/init.d/sshd restart 1>&2
356 else
357         echo "Run \"/etc/rc.d/init.d/sshd start\" to start openssh daemon."
358 fi
359 if ! grep ssh /etc/security/passwd.conf >/dev/null 2>&1 ; then
360         echo "ssh" >> /etc/security/passwd.conf
361 fi
362
363 %preun server
364 if [ "$1" = "0" ]; then
365         if [ -f /var/lock/subsys/sshd ]; then
366                 /etc/rc.d/init.d/sshd stop 1>&2
367         fi
368         /sbin/chkconfig --del sshd
369 fi
370
371 %files
372 %defattr(644,root,root,755)
373 %doc *.gz
374 %attr(755,root,root) %{_bindir}/ssh-key*
375 %{_mandir}/man1/ssh-key*.1*
376 %dir %{_sysconfdir}
377
378 %files clients
379 %defattr(644,root,root,755)
380 %attr(0755,root,root) %{_bindir}/ssh
381 %attr(0755,root,root) %{_bindir}/slogin
382 %attr(0755,root,root) %{_bindir}/sftp
383 %attr(0755,root,root) %{_bindir}/ssh-agent
384 %attr(0755,root,root) %{_bindir}/ssh-add
385 %attr(755,root,root) %{_bindir}/scp
386 %{_mandir}/man1/scp.1*
387 %{_mandir}/man1/ssh.1*
388 %{_mandir}/man1/slogin.1*
389 %{_mandir}/man1/sftp.1*
390 %{_mandir}/man1/ssh-agent.1*
391 %{_mandir}/man1/ssh-add.1*
392 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ssh_config
393
394 %files server
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_sbindir}/sshd
397 %attr(755,root,root) %{_libexecdir}/sftp-server
398 %dir %{_libexecdir}
399 %{_mandir}/man8/sshd.8*
400 %{_mandir}/man8/sftp-server.8*
401 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sshd_config
402 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/sshd
403 %attr(640,root,root) %{_sysconfdir}/moduli
404 %attr(754,root,root) /etc/rc.d/init.d/sshd
405 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sshd
406 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.sshd
407
408 %{!?_without_gnome:%files gnome-askpass}
409 %{!?_without_gnome:%defattr(644,root,root,755)}
410 %{!?_without_gnome:%dir %{_libexecdir}/ssh}
411 %{!?_without_gnome:%attr(755,root,root) %{_libexecdir}/ssh/ssh-askpass}
412
413 %if %{!?_without_embed:1}%{?_without_embed:0}
414 %files embed
415 %defattr(644,root,root,755)
416 %attr(755,root,root) %{embed_path}/*/*
417 %endif
This page took 0.067373 seconds and 4 git commands to generate.