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 Source0: ftp://ftp.ca.openbsd.org/pub/OpenBSD/OpenSSH/portable/%{name}-%{version}.tar.gz
16 Source1: %{name}d.conf
18 Source3: %{name}d.init
19 Source4: %{name}d.pamd
20 Source5: %{name}.sysconfig
22 Patch0: %{name}-libwrap.patch
23 Patch1: %{name}-no_libnsl.patch
24 Patch2: %{name}-no-openssl-ver-check.patch
25 Patch3: %{name}-set_12.patch
26 URL: http://www.openssh.com/
27 BuildRequires: XFree86-devel
28 BuildRequires: autoconf
29 BuildRequires: automake
30 %{!?_without_gnome:BuildRequires: gnome-libs-devel}
31 BuildRequires: openssl-devel >= 0.9.6a
32 BuildRequires: pam-devel
33 BuildRequires: zlib-devel
34 BuildRequires: libwrap-devel
36 %if %{!?_without_embed:1}%{?_without_embed:0}
37 BuildRequires: uClibc-devel
38 BuildRequires: uClibc-static
39 BuildRequires: openssl-devel-embed
40 BuildRequires: zlib-devel-embed
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 %define embed_path /usr/lib/embed
47 %define embed_cc %{_arch}-uclibc-cc
48 %define embed_cflags %{rpmcflags} -Os
50 %define embed_binaries ssh scp sshd ssh-keygen
52 %define _sysconfdir /etc/ssh
53 %define _libexecdir %{_libdir}/%{name}
56 Ssh (Secure Shell) a program for logging into a remote machine and for
57 executing commands in a remote machine. It is intended to replace
58 rlogin and rsh, and provide secure encrypted communications between
59 two untrusted hosts over an insecure network. X11 connections and
60 arbitrary TCP/IP ports can also be forwarded over the secure channel.
62 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
63 it up to date in terms of security and features, as well as removing
64 all patented algorithms to seperate libraries (OpenSSL).
66 This package includes the core files necessary for both the OpenSSH
67 client and server. To make this package useful, you should also
68 install openssh-clients, openssh-server, or both.
71 SSH es un programa para accesar y ejecutar órdenes en computadores
72 remotos. Sustituye rlogin y rsh, y suministra un canal de comunicación
73 seguro entre dos servidores en una red insegura. Conexiones X11 y
74 puertas TCP/IP arbitrárias también pueden ser usadas por el canal
77 OpenSSH es el resultado del trabajo del equipo de OpenBSD para
78 continuar la última versión gratuita de SSH, actualizándolo en
79 términos de seguridad y recursos,así también eliminando todos los
80 algoritmos patentados y colocándolos en bibliotecas separadas
83 Este paquete contiene "port" para Linux de OpenSSH. Se debe instalar
84 también el paquete openssh-clients u openssh-server o ambos.
87 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
88 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
89 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
90 pomiedzy dwoma hostami.
93 SSH é um programa para acessar e executar comandos em máquinas
94 remotas. Ele substitui rlogin e rsh, e provem um canal de comunicação
95 seguro entre dois hosts em uma rede insegura. Conexões X11 e portas
96 TCP/IP arbitrárias também podem ser usadas pelo canal seguro.
98 OpenSSH é o resultado do trabalho da equipe do OpenBSD em continuar a
99 última versão gratuita do SSH, atualizando-o em termos de segurança e
100 recursos, assim como removendo todos os algoritmos patenteados e
101 colocando-os em bibliotecas separadas (OpenSSL).
103 Esse pacote contém o "port" pra Linux do OpenSSH. Você deve instalar
104 também ou o pacote openssh-clients, ou o openssh-server, ou ambos.
107 Summary: OpenSSH Secure Shell protocol clients
108 Summary(es): Clientes de OpenSSH
109 Summary(pl): Klienci protoko³u Secure Shell
110 Summary(pt_BR): Clientes do OpenSSH
112 Group: Applications/Networking
113 Obsoletes: ssh-clients
114 Requires: %{name} = %{version}
117 Ssh (Secure Shell) a program for logging into a remote machine and for
118 executing commands in a remote machine. It is intended to replace
119 rlogin and rsh, and provide secure encrypted communications between
120 two untrusted hosts over an insecure network. X11 connections and
121 arbitrary TCP/IP ports can also be forwarded over the secure channel.
123 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
124 it up to date in terms of security and features, as well as removing
125 all patented algorithms to seperate libraries (OpenSSL).
127 This package includes the clients necessary to make encrypted
128 connections to SSH servers.
130 %description -l es clients
131 Este paquete incluye los clientes que se necesitan para hacer
132 conexiones codificadas con servidores SSH.
134 %description -l pl clients
135 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
136 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
137 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
138 pomiedzy dwoma hostami.
140 Ten pakiet zawiera klientów s³u¿±cych do ³±czenia siê z serwerami SSH.
142 %description -l pt_BR clients
143 Esse pacote inclui os clientes necessários para fazer conexões
144 encriptadas com servidores SSH.
147 Summary: OpenSSH Secure Shell protocol server (sshd)
148 Summary(es): Servidor OpenSSH para comunicaciones codificadas
149 Summary(pl): Serwer protoko³u Secure Shell (sshd)
150 Summary(pt_BR): Servidor OpenSSH para comunicações encriptadas
152 Requires: chkconfig >= 0.9
153 Group: Networking/Daemons
154 Obsoletes: ssh-server
158 Prereq: /sbin/chkconfig
159 Prereq: %{name} = %{version}
162 Ssh (Secure Shell) a program for logging into a remote machine and for
163 executing commands in a remote machine. It is intended to replace
164 rlogin and rsh, and provide secure encrypted communications between
165 two untrusted hosts over an insecure network. X11 connections and
166 arbitrary TCP/IP ports can also be forwarded over the secure channel.
168 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
169 it up to date in terms of security and features, as well as removing
170 all patented algorithms to seperate libraries (OpenSSL).
172 This package contains the secure shell daemon. The sshd is the server
173 part of the secure shell protocol and allows ssh clients to connect to
176 %description server -l es
177 Este paquete contiene el servidor SSH. sshd es la parte servidor del
178 protocolo secure shell y permite que clientes ssh se conecten a su
181 %description server -l pl
182 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
183 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
184 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
185 pomiedzy dwoma hostami.
187 Ten pakiet zawiera serwer sshd (do którego mog± ³±czyæ siê klienci
190 %description server -l pt_BR
191 Esse pacote contém o servidor SSH. O sshd é a parte servidor do
192 protocolo secure shell e permite que clientes ssh se conectem ao seu
196 Summary: OpenSSH Secure Shell for embedded applications
197 Summary: OpenSSH Secure Shell dla aplikacji wbudowanych
199 Group: Applications/Networking
200 Obsoletes: ssh-clients
203 OpenSSH for embedded enviroment. Client, server, scp and ssh-keygen.
205 %description -l pl embed
206 OpenSSH dla aplikacji wbudowanych. Klient, serwer, scp i ssh-keygen.
209 %package gnome-askpass
210 Summary: OpenSSH GNOME passphrase dialog
211 Summary(es): Diálogo para introducción de passphrase para GNOME
212 Summary(pl): Odpytywacz has³a OpenSSH dla GNOME
213 Summary(pt_BR): Diálogo para entrada de passphrase para GNOME
214 Group: Applications/Networking
215 Requires: %{name} = %{version}
216 Obsoletes: ssh-extras
217 Obsoletes: ssh-askpass
218 Obsoletes: openssh-askpass
220 %description gnome-askpass
221 Ssh (Secure Shell) a program for logging into a remote machine and for
222 executing commands in a remote machine. It is intended to replace
223 rlogin and rsh, and provide secure encrypted communications between
224 two untrusted hosts over an insecure network. X11 connections and
225 arbitrary TCP/IP ports can also be forwarded over the secure channel.
227 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
228 it up to date in terms of security and features, as well as removing
229 all patented algorithms to seperate libraries (OpenSSL).
231 This package contains the GNOME passphrase dialog.
233 %description gnome-askpass -l es
234 Este paquete contiene un programa que abre una caja de diálogo para
235 entrada de passphrase en GNOME.
237 %description gnome-askpass -l pl
238 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
239 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
240 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
241 pomiedzy dwoma hostami.
243 Ten pakiet zawiera ,,odpytywacz has³a'' dla GNOME.
245 %description gnome-askpass -l pt_BR
246 Esse pacote contém um programa que abre uma caixa de diálogo para
247 entrada de passphrase no GNOME.
260 %if %{!?_without_embed:1}%{?_without_embed:0}
262 --without-gnome-askpass \
266 --with-md5-passwords \
267 --with-ipaddr-display \
270 --without-tcp-wrappers \
271 --with-pid-dir=%{_localstatedir}/run \
272 CC=%{embed_cc} CFLAGS="%{embed_cflags}"
274 echo '#define LOGIN_PROGRAM "/bin/login"' >>config.h
277 for f in %{embed_binaries} ; do
278 mv -f $f $f-embed-shared
281 %{__make} LDFLAGS="'-static -L. -Lopenbsd-compat/'"
283 for f in %{embed_binaries} ; do
284 mv -f $f $f-embed-static
291 %{!?_without_gnome:--with-gnome-askpass} \
294 --with-md5-passwords \
295 --with-ipaddr-display \
298 --with-tcp-wrappers \
299 --with-pid-dir=%{_localstatedir}/run
301 echo '#define LOGIN_PROGRAM "/bin/login"' >>config.h
305 %{!?_without_gnome:cd contrib && %{__cc} %{rpmcflags} `gnome-config --cflags gnome gnomeui gtk` } \
306 %{!?_without_gnome: gnome-ssh-askpass.c -o gnome-ssh-askpass } \
307 %{!?_without_gnome: `gnome-config --libs gnome gnomeui gtk` }
310 rm -rf $RPM_BUILD_ROOT
311 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{pam.d,rc.d/init.d,sysconfig,security}}
313 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
315 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/sshd
316 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/passwdssh
317 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/sshd
318 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
319 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ssh_config
320 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sshd_config
321 install -d $RPM_BUILD_ROOT%{_libexecdir}/ssh
322 %{!?_without_gnome:install contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass}
324 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
325 echo ".so man1/ssh.1" > $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
327 gzip -9nf *.RNG TODO README OVERVIEW CREDITS Change*
329 touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
331 %if %{!?_without_embed:1}%{?_without_embed:0}
332 install -d $RPM_BUILD_ROOT/%{embed_path}/{shared,static}
333 for f in %{embed_binaries} ; do
334 install $f-embed-static $RPM_BUILD_ROOT/%{embed_path}/static/$f
335 install $f-embed-shared $RPM_BUILD_ROOT/%{embed_path}/shared/$f
340 rm -rf $RPM_BUILD_ROOT
343 /sbin/chkconfig --add sshd
344 if [ -f /var/lock/subsys/sshd ]; then
345 /etc/rc.d/init.d/sshd restart 1>&2
347 echo "Run \"/etc/rc.d/init.d/sshd start\" to start openssh daemon."
349 if ! grep ssh /etc/security/passwd.conf >/dev/null 2>&1 ; then
350 echo "ssh" >> /etc/security/passwd.conf
354 if [ "$1" = "0" ]; then
355 if [ -f /var/lock/subsys/sshd ]; then
356 /etc/rc.d/init.d/sshd stop 1>&2
358 /sbin/chkconfig --del sshd
362 %defattr(644,root,root,755)
364 %attr(755,root,root) %{_bindir}/ssh-key*
365 %{_mandir}/man1/ssh-key*.1*
369 %defattr(644,root,root,755)
370 %attr(0755,root,root) %{_bindir}/ssh
371 %attr(0755,root,root) %{_bindir}/slogin
372 %attr(0755,root,root) %{_bindir}/sftp
373 %attr(0755,root,root) %{_bindir}/ssh-agent
374 %attr(0755,root,root) %{_bindir}/ssh-add
375 %attr(755,root,root) %{_bindir}/scp
376 %{_mandir}/man1/scp.1*
377 %{_mandir}/man1/ssh.1*
378 %{_mandir}/man1/slogin.1*
379 %{_mandir}/man1/sftp.1*
380 %{_mandir}/man1/ssh-agent.1*
381 %{_mandir}/man1/ssh-add.1*
382 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ssh_config
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_sbindir}/sshd
387 %attr(755,root,root) %{_libexecdir}/sftp-server
389 %{_mandir}/man8/sshd.8*
390 %{_mandir}/man8/sftp-server.8*
391 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sshd_config
392 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/sshd
393 %attr(640,root,root) %{_sysconfdir}/moduli
394 %attr(754,root,root) /etc/rc.d/init.d/sshd
395 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sshd
396 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.sshd
398 %{!?_without_gnome:%files gnome-askpass}
399 %{!?_without_gnome:%defattr(644,root,root,755)}
400 %{!?_without_gnome:%dir %{_libexecdir}/ssh}
401 %{!?_without_gnome:%attr(755,root,root) %{_libexecdir}/ssh/ssh-askpass}
403 %if %{!?_without_embed:1}%{?_without_embed:0}
405 %defattr(644,root,root,755)
406 %attr(755,root,root) %{embed_path}/*/*