3 # _without_gnome - without gnome-askpass utility
4 # _without_embed - don't build uClibc version
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
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
20 Source3: %{name}d.init
21 Source4: %{name}d.pamd
22 Source5: %{name}.sysconfig
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
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
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 %define embed_path /usr/lib/embed
49 %define embed_cc %{_arch}-uclibc-cc
50 %define embed_cflags %{rpmcflags} -Os
52 %define embed_binaries ssh scp sshd ssh-keygen
54 %define _sysconfdir /etc/ssh
55 %define _libexecdir %{_libdir}/%{name}
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.
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).
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.
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
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
85 Este paquete contiene "port" para Linux de OpenSSH. Se debe instalar
86 también el paquete openssh-clients u openssh-server o ambos.
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.
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.
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).
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.
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
114 Group: Applications/Networking
115 Group(de): Applikationen/Netzwerkwesen
116 Group(pl): Aplikacje/Sieciowe
117 Obsoletes: ssh-clients
118 Requires: %{name} = %{version}
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.
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).
131 This package includes the clients necessary to make encrypted
132 connections to SSH servers.
134 %description -l es clients
135 Este paquete incluye los clientes que se necesitan para hacer
136 conexiones codificadas con servidores SSH.
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.
144 Ten pakiet zawiera klientów s³u¿±cych do ³±czenia siê z serwerami SSH.
146 %description -l pt_BR clients
147 Esse pacote inclui os clientes necessários para fazer conexões
148 encriptadas com servidores SSH.
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
156 Requires: chkconfig >= 0.9
157 Group: Networking/Daemons
158 Group(de): Netzwerkwesen/Server
159 Group(pl): Sieciowe/Serwery
160 Obsoletes: ssh-server
164 Prereq: /sbin/chkconfig
165 Prereq: %{name} = %{version}
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.
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).
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
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
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.
193 Ten pakiet zawiera serwer sshd (do którego mog± ³±czyæ siê klienci
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
202 Summary: OpenSSH Secure Shell for embedded applications
203 Summary: OpenSSH Secure Shell dla aplikacji wbudowanych
205 Group: Applications/Networking
206 Group(de): Applikationen/Netzwerkwesen
207 Group(pl): Aplikacje/Sieciowe
208 Obsoletes: ssh-clients
211 OpenSSH for embedded enviroment. Client, server, scp and ssh-keygen.
213 %description -l pl embed
214 OpenSSH dla aplikacji wbudowanych. Klient, serwer, scp i ssh-keygen.
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
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.
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).
241 This package contains the GNOME passphrase dialog.
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.
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.
253 Ten pakiet zawiera ,,odpytywacz has³a'' dla GNOME.
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.
270 %if %{!?_without_embed:1}%{?_without_embed:0}
272 --without-gnome-askpass \
276 --with-md5-passwords \
277 --with-ipaddr-display \
280 --without-tcp-wrappers \
281 --with-pid-dir=%{_localstatedir}/run \
282 CC=%{embed_cc} CFLAGS="%{embed_cflags}"
284 echo '#define LOGIN_PROGRAM "/bin/login"' >>config.h
287 for f in %{embed_binaries} ; do
288 mv -f $f $f-embed-shared
291 %{__make} LDFLAGS="'-static -L. -Lopenbsd-compat/'"
293 for f in %{embed_binaries} ; do
294 mv -f $f $f-embed-static
301 %{!?_without_gnome:--with-gnome-askpass} \
304 --with-md5-passwords \
305 --with-ipaddr-display \
308 --with-tcp-wrappers \
309 --with-pid-dir=%{_localstatedir}/run
311 echo '#define LOGIN_PROGRAM "/bin/login"' >>config.h
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` }
320 rm -rf $RPM_BUILD_ROOT
321 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{pam.d,rc.d/init.d,sysconfig,security}}
323 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
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}
334 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
335 echo ".so man1/ssh.1" > $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
337 gzip -9nf *.RNG TODO README OVERVIEW CREDITS Change*
339 touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
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
350 rm -rf $RPM_BUILD_ROOT
353 /sbin/chkconfig --add sshd
354 if [ -f /var/lock/subsys/sshd ]; then
355 /etc/rc.d/init.d/sshd restart 1>&2
357 echo "Run \"/etc/rc.d/init.d/sshd start\" to start openssh daemon."
359 if ! grep ssh /etc/security/passwd.conf >/dev/null 2>&1 ; then
360 echo "ssh" >> /etc/security/passwd.conf
364 if [ "$1" = "0" ]; then
365 if [ -f /var/lock/subsys/sshd ]; then
366 /etc/rc.d/init.d/sshd stop 1>&2
368 /sbin/chkconfig --del sshd
372 %defattr(644,root,root,755)
374 %attr(755,root,root) %{_bindir}/ssh-key*
375 %{_mandir}/man1/ssh-key*.1*
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
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_sbindir}/sshd
397 %attr(755,root,root) %{_libexecdir}/sftp-server
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
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}
413 %if %{!?_without_embed:1}%{?_without_embed:0}
415 %defattr(644,root,root,755)
416 %attr(755,root,root) %{embed_path}/*/*