]> git.pld-linux.org Git - packages/openssh.git/blame - openssh.spec
- blacklist support and ssh-vulnkey tool for openssh (from Debian)
[packages/openssh.git] / openssh.spec
CommitLineData
2ed2934f 1#
2ca913e8 2# Conditional build:
f6c7fa07 3%bcond_with gnome # with gnome-askpass (GNOME 1.x) utility
cd53fc87 4%bcond_without gtk # without GTK+ (2.x)
9cfed0b2 5%bcond_with ldap # with ldap support
f6c7fa07 6%bcond_without libedit # without libedit (editline/history support in sftp client)
9cfed0b2 7%bcond_without kerberos5 # without kerberos5 support
70329622 8%bcond_without selinux # build without SELinux support
5c609334 9%bcond_with hpn # High Performance SSH/SCP - HPN-SSH including Cipher NONE (broken too often)
516496e1 10
cef904f1
JB
11# gtk2-based gnome-askpass means no gnome1-based
12%{?with_gtk:%undefine with_gnome}
cae5b300 13#
52000378 14Summary: OpenSSH free Secure Shell (SSH) implementation
25e16946
ER
15Summary(de.UTF-8): OpenSSH - freie Implementation der Secure Shell (SSH)
16Summary(es.UTF-8): Implementación libre de SSH
17Summary(fr.UTF-8): Implémentation libre du shell sécurisé OpenSSH (SSH)
18Summary(it.UTF-8): Implementazione gratuita OpenSSH della Secure Shell
19Summary(pl.UTF-8): Publicznie dostępna implementacja bezpiecznego shella (SSH)
20Summary(pt.UTF-8): Implementação livre OpenSSH do protocolo 'Secure Shell' (SSH)
21Summary(pt_BR.UTF-8): Implementação livre do SSH
22Summary(ru.UTF-8): OpenSSH - свободная реализация протокола Secure Shell (SSH)
23Summary(uk.UTF-8): OpenSSH - вільна реалізація протоколу Secure Shell (SSH)
52000378 24Name: openssh
49f81542 25Version: 5.0p1
368d426b 26Release: 4
f5fc6a92 27Epoch: 2
5d1c7089 28License: BSD
29Group: Applications/Networking
6481986b 30Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/%{name}-%{version}.tar.gz
49f81542 31# Source0-md5: 1f1dfaa775f33dd3328169de9bdc292a
486d736c
JR
32Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
33# Source1-md5: 66943d481cc422512b537bcc2c7400d1
34Source2: %{name}d.init
35Source3: %{name}d.pamd
36Source4: %{name}.sysconfig
37Source5: ssh-agent.sh
38Source6: ssh-agent.conf
89eac7b5 39Patch0: %{name}-no_libnsl.patch
8d59ede4
JB
40Patch1: %{name}-linux-ipv6.patch
41Patch2: %{name}-pam_misc.patch
42Patch3: %{name}-sigpipe.patch
bb72f814 43# http://www.opendarwin.org/projects/openssh-lpk/
8d59ede4
JB
44Patch4: %{name}-lpk-4.3p1-0.3.7.patch
45Patch5: %{name}-config.patch
8d59ede4 46Patch7: %{name}-selinux.patch
0a069c2e 47# High Performance SSH/SCP - HPN-SSH - http://www.psc.edu/networking/projects/hpn-ssh/
7ed1a47d 48# http://www.psc.edu/networking/projects/hpn-ssh/openssh-4.9p1-hpn13v2.diff.gz
368d426b 49Patch9: %{name}-5.0p1-hpn13v4.diff
8d59ede4 50Patch10: %{name}-include.patch
100234b3 51Patch11: %{name}-chroot.patch
e9cfdffe 52URL: http://www.openssh.com/
0a069c2e 53BuildRequires: %{__perl}
92d612e6 54BuildRequires: autoconf
8f12ae30 55BuildRequires: automake
9cfed0b2 56%{?with_gnome:BuildRequires: gnome-libs-devel}
57%{?with_gtk:BuildRequires: gtk+2-devel}
6cf633ed 58%{?with_kerberos5:BuildRequires: krb5-devel}
f6c7fa07 59%{?with_libedit:BuildRequires: libedit-devel}
70329622 60%{?with_selinux:BuildRequires: libselinux-devel}
a14c109c 61BuildRequires: libwrap-devel
eda86fb8 62%{?with_ldap:BuildRequires: openldap-devel >= 2.4.6}
b12dd014 63BuildRequires: openssl-devel >= 0.9.7d
92d612e6 64BuildRequires: pam-devel
9cfed0b2 65%{?with_gtk:BuildRequires: pkgconfig}
9be30b5d 66BuildRequires: rpmbuild(macros) >= 1.318
a14c109c 67BuildRequires: zlib-devel
680fc8d4 68Requires: filesystem >= 3.0-11
d38368b3 69Requires: pam >= 0.99.7.1
f937b661 70Obsoletes: ssh
05fbd2e9 71BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52000378 72
b7b47957 73%define _sysconfdir /etc/ssh
1dd7cf18 74%define _libexecdir %{_libdir}/%{name}
a14c109c 75%define _privsepdir /usr/share/empty
6fe24471
AF
76
77%description
78Ssh (Secure Shell) a program for logging into a remote machine and for
11530f15 79executing commands in a remote machine. It is intended to replace
80rlogin and rsh, and provide secure encrypted communications between
81two untrusted hosts over an insecure network. X11 connections and
82arbitrary TCP/IP ports can also be forwarded over the secure channel.
6fe24471 83
11530f15 84OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
85it up to date in terms of security and features, as well as removing
86all patented algorithms to seperate libraries (OpenSSL).
6fe24471 87
11530f15 88This package includes the core files necessary for both the OpenSSH
89client and server. To make this package useful, you should also
90install openssh-clients, openssh-server, or both.
088aab43 91%if %{with hpn} || %{with hpn_none}
0a069c2e
ER
92This release includes High Performance SSH/SCP patches from
93http://www.psc.edu/networking/projects/hpn-ssh/ which are supposed
088aab43 94to increase throughput on fast connections with high RTT (20-150 msec).
95See the website for '-w' values for your connection and /proc/sys TCP
96values. BTW. in a LAN you have got generally RTT < 1 msec.
97%endif
98%if %{with hpn_none}
99It also includes an undocumented '-z' option which switches
0a069c2e
ER
100the cipher to none after authentication is completed. Data is
101still secured from tampering and corruption in transit through
088aab43 102the use of the Message Authentication Code (MAC).
0a069c2e
ER
103This option will significantly reduce the number of cpu cycles used
104by the SSH/SCP process. This may allow some users to see significant
105improvement in (sniffable) data tranfer rates.
088aab43 106%endif
6fe24471 107
84ae85a3 108%description -l de.UTF-8
aebfac88
JB
109OpenSSH (Secure Shell) stellt den Zugang zu anderen Rechnern her. Es
110ersetzt telnet, rlogin, rexec und rsh und stellt eine sichere,
84ae85a3
JR
111verschlüsselte Verbindung zwischen zwei nicht vertrauenswürdigen Hosts
112über eine unsicheres Netzwerk her. X11 Verbindungen und beliebige
113andere TCP/IP Ports können ebenso über den sicheren Channel
aebfac88
JB
114weitergeleitet werden.
115
84ae85a3
JR
116%description -l es.UTF-8
117SSH es un programa para accesar y ejecutar órdenes en computadores
118remotos. Sustituye rlogin y rsh, y suministra un canal de comunicación
6c34819e 119seguro entre dos servidores en una red insegura. Conexiones X11 y
84ae85a3 120puertas TCP/IP arbitrárias también pueden ser usadas por el canal
6c34819e 121seguro.
122
123OpenSSH es el resultado del trabajo del equipo de OpenBSD para
84ae85a3
JR
124continuar la última versión gratuita de SSH, actualizándolo en
125términos de seguridad y recursos,así también eliminando todos los
126algoritmos patentados y colocándolos en bibliotecas separadas
6c34819e 127(OpenSSL).
128
129Este paquete contiene "port" para Linux de OpenSSH. Se debe instalar
84ae85a3 130también el paquete openssh-clients u openssh-server o ambos.
6c34819e 131
84ae85a3
JR
132%description -l fr.UTF-8
133OpenSSH (Secure Shell) fournit un accès à un système distant. Il
aebfac88 134remplace telnet, rlogin, rexec et rsh, tout en assurant des
84ae85a3
JR
135communications cryptées securisées entre deux hôtes non fiabilisés sur
136un réseau non sécurisé. Des connexions X11 et des ports TCP/IP
137arbitraires peuvent également être transmis sur le canal sécurisé.
aebfac88 138
84ae85a3 139%description -l it.UTF-8
aebfac88
JB
140OpenSSH (Secure Shell) fornisce l'accesso ad un sistema remoto.
141Sostituisce telnet, rlogin, rexec, e rsh, e fornisce comunicazioni
142sicure e crittate tra due host non fidati su una rete non sicura. Le
143connessioni X11 ad una porta TCP/IP arbitraria possono essere
144inoltrate attraverso un canale sicuro.
145
84ae85a3
JR
146%description -l pl.UTF-8
147Ssh (Secure Shell) to program służący do logowania się na zdalną
148maszynę i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
149zastąpić rlogin, rsh i dostarczyć bezpieczne, szyfrowane połączenie
150pomiędzy dwoma hostami.
93e2d77c 151
84ae85a3
JR
152Ten pakiet zawiera podstawowe pliki potrzebne zarówno po stronie
153klienta jak i serwera OpenSSH. Aby był użyteczny, trzeba zainstalować
154co najmniej jeden z pakietów: openssh-clients lub openssh-server.
088aab43 155%if %{with hpn} || %{with hpn_none}
84ae85a3
JR
156Ta wersja zawiera łaty z projektu High Performance SSH/SCP
157http://www.psc.edu/networking/projects/hpn-ssh/, które mają na celu
158zwiększenie przepustowości transmisji dla szybkich połączeń
159z dużym RTT (20-150 msec). Na stronie projektu znaleźć można
160odpowednie dla danego połączenia wartości parametru '-w' oraz
161opcje /proc/sys dla TCP. Nawiasem mówiąc w sieciach LAN RTT < 1 msec.
088aab43 162%endif
163%if %{with hpn_none}
84ae85a3
JR
164Obsługiwana jest również nieudokumentowana opcja '-z' odpowiedzialna
165za wyłączenie szyfrowania danych po zakończeniu procesu uwierzytelniania.
166Dane są zabezpieczone przed modyfikacją lub uszkodzeniem przez
088aab43 167stosowanie Message Authentication Code (MAC).
84ae85a3
JR
168Opcja ta znacznie redukuje liczbę cykli procesora zużywanych przez
169procesy SSH/SCP. W wybranych zastosowaniach może ona wpłynąć
170na wyraźne przyspieszenie (podsłuchiwalnej) transmisji danych.
088aab43 171%endif
aebfac88 172
84ae85a3 173%description -l pt.UTF-8
aebfac88 174OpenSSH (Secure Shell) fornece acesso a um sistema remoto. Substitui o
84ae85a3
JR
175telnet, rlogin, rexec, e o rsh e fornece comunicações seguras e
176cifradas entre duas máquinas sem confiança mútua sobre uma rede
177insegura. Ligações X11 e portos TCP/IP arbitrários também poder ser
aebfac88
JB
178reenviados pelo canal seguro.
179
84ae85a3
JR
180%description -l pt_BR.UTF-8
181SSH é um programa para acessar e executar comandos em máquinas
182remotas. Ele substitui rlogin e rsh, e provem um canal de comunicação
183seguro entre dois hosts em uma rede insegura. Conexões X11 e portas
184TCP/IP arbitrárias também podem ser usadas pelo canal seguro.
6c34819e 185
84ae85a3
JR
186OpenSSH é o resultado do trabalho da equipe do OpenBSD em continuar a
187última versão gratuita do SSH, atualizando-o em termos de segurança e
6c34819e 188recursos, assim como removendo todos os algoritmos patenteados e
189colocando-os em bibliotecas separadas (OpenSSL).
190
84ae85a3
JR
191Esse pacote contém o "port" pra Linux do OpenSSH. Você deve instalar
192também ou o pacote openssh-clients, ou o openssh-server, ou ambos.
193
194%description -l ru.UTF-8
195Ssh (Secure Shell) - это программа для "захода" (login) на удаленную
196машину и для выполнения команд на удаленной машине. Она предназначена
197для замены rlogin и rsh и обеспечивает безопасную шифрованную
198коммуникацию между двумя хостами в сети, являющейся небезопасной.
199Соединения X11 и любые порты TCP/IP могут также быть проведены через
200безопасный канал.
201
202OpenSSH - это переделка командой разработчиков OpenBSD последней
203свободной версии SSH, доведенная до современного состояния в терминах
204уровня безопасности и поддерживаемых возможностей. Все патентованные
205алгоритмы вынесены в отдельные библиотеки (OpenSSL).
206
207Этот пакет содержит файлы, необходимые как для клиента, так и для
208сервера OpenSSH. Вам нужно будет установить еще openssh-clients,
209openssh-server, или оба пакета.
210
211%description -l uk.UTF-8
212Ssh (Secure Shell) - це програма для "заходу" (login) до віддаленої
213машини та для виконання команд на віддаленій машині. Вона призначена
214для заміни rlogin та rsh і забезпечує безпечну шифровану комунікацію
215між двома хостами в мережі, яка не є безпечною. З'єднання X11 та
216довільні порти TCP/IP можуть також бути проведені через безпечний
217канал.
218
219OpenSSH - це переробка командою розробників OpenBSD останньої вільної
220версії SSH, доведена до сучасного стану в термінах рівня безпеки та
221підтримуваних можливостей. Всі патентовані алгоритми винесені до
222окремих бібліотек (OpenSSL).
223
224Цей пакет містить файли, необхідні як для клієнта, так і для сервера
225OpenSSH. Вам потрібно буде ще встановити openssh-clients,
226openssh-server, чи обидва пакети.
cb086001 227
52000378
AF
228%package clients
229Summary: OpenSSH Secure Shell protocol clients
25e16946
ER
230Summary(es.UTF-8): Clientes de OpenSSH
231Summary(pl.UTF-8): Klienci protokołu Secure Shell
232Summary(pt_BR.UTF-8): Clientes do OpenSSH
233Summary(ru.UTF-8): OpenSSH - клиенты протокола Secure Shell
234Summary(uk.UTF-8): OpenSSH - клієнти протоколу Secure Shell
52000378 235Group: Applications/Networking
92815192 236Requires: %{name} = %{epoch}:%{version}-%{release}
516496e1 237Provides: ssh-clients
a14c109c 238Obsoletes: ssh-clients
6fe24471 239
52000378
AF
240%description clients
241Ssh (Secure Shell) a program for logging into a remote machine and for
11530f15 242executing commands in a remote machine. It is intended to replace
243rlogin and rsh, and provide secure encrypted communications between
244two untrusted hosts over an insecure network. X11 connections and
245arbitrary TCP/IP ports can also be forwarded over the secure channel.
6fe24471 246
11530f15 247OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
248it up to date in terms of security and features, as well as removing
249all patented algorithms to seperate libraries (OpenSSL).
52000378 250
11530f15 251This package includes the clients necessary to make encrypted
252connections to SSH servers.
52000378 253
84ae85a3 254%description clients -l es.UTF-8
6c34819e 255Este paquete incluye los clientes que se necesitan para hacer
256conexiones codificadas con servidores SSH.
257
84ae85a3
JR
258%description clients -l pl.UTF-8
259Ssh (Secure Shell) to program służący do logowania się na zdalną
260maszynę i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
261zastąpić rlogin, rsh i dostarczyć bezpieczne, szyfrowane połączenie
262pomiędzy dwoma hostami.
93e2d77c 263
84ae85a3 264Ten pakiet zawiera klientów służących do łączenia się z serwerami SSH.
93e2d77c 265
84ae85a3
JR
266%description clients -l pt_BR.UTF-8
267Esse pacote inclui os clientes necessários para fazer conexões
6c34819e 268encriptadas com servidores SSH.
269
84ae85a3
JR
270%description clients -l ru.UTF-8
271Ssh (Secure Shell) - это программа для "захода" (login) на удаленную
272машину и для выполнения команд на удаленной машине.
cb086001 273
84ae85a3
JR
274Этот пакет содержит программы-клиенты, необходимые для установления
275зашифрованных соединений с серверами SSH.
cb086001 276
84ae85a3
JR
277%description clients -l uk.UTF-8
278Ssh (Secure Shell) - це програма для "заходу" (login) до віддаленої
279машини та для виконання команд на віддаленій машині.
cb086001 280
84ae85a3
JR
281Цей пакет містить програми-клієнти, необхідні для встановлення
282зашифрованих з'єднань з серверами SSH.
cb086001 283
8a7ba6eb
AM
284%package clients-agent-profile_d
285Summary: OpenSSH Secure Shell agent init script
4944be5f 286Summary(pl.UTF-8): Skrypt startowy agenta OpenSSH
8a7ba6eb
AM
287Group: Applications/Networking
288Requires: %{name}-clients = %{epoch}:%{version}-%{release}
289
290%description clients-agent-profile_d
291profile.d scripts for starting SSH agent.
292
4944be5f
JB
293%description clients-agent-profile_d -l pl.UTF-8
294Skrypty profile.d do uruchamiania agenta SSH.
295
8a7ba6eb
AM
296%package clients-agent-xinitrc
297Summary: OpenSSH Secure Shell agent init script
298Summary(pl.UTF-8): Skrypt inicjujący agenta ssh przez xinitrc
299Group: Applications/Networking
300Requires: %{name}-clients-agent-profile_d = %{epoch}:%{version}-%{release}
301Requires: xinitrc
302
303%description clients-agent-xinitrc
304xinitrc scripts for starting SSH agent.
305
4944be5f
JB
306%description clients-agent-xinitrc -l pl.UTF-8
307Skrypty xinitrc do uruchamiania agenta SSH.
8a7ba6eb 308
52000378
AF
309%package server
310Summary: OpenSSH Secure Shell protocol server (sshd)
25e16946
ER
311Summary(de.UTF-8): OpenSSH Secure Shell Protocol-Server (sshd)
312Summary(es.UTF-8): Servidor OpenSSH para comunicaciones codificadas
313Summary(fr.UTF-8): Serveur de protocole du shell sécurisé OpenSSH (sshd)
314Summary(it.UTF-8): Server OpenSSH per il protocollo Secure Shell (sshd)
315Summary(pl.UTF-8): Serwer protokołu Secure Shell (sshd)
316Summary(pt.UTF-8): Servidor do protocolo 'Secure Shell' OpenSSH (sshd)
317Summary(pt_BR.UTF-8): Servidor OpenSSH para comunicações encriptadas
318Summary(ru.UTF-8): OpenSSH - сервер протокола Secure Shell (sshd)
319Summary(uk.UTF-8): OpenSSH - сервер протоколу Secure Shell (sshd)
52000378 320Group: Networking/Daemons
a14c109c 321Requires(post): chkconfig >= 0.9
40cb2e83 322Requires(post): grep
0a069c2e 323Requires(post,preun): /sbin/chkconfig
9b604401 324Requires(postun): /usr/sbin/userdel
0a069c2e
ER
325Requires(pre): /bin/id
326Requires(pre): /usr/sbin/useradd
327Requires: %{name} = %{epoch}:%{version}-%{release}
b5529f6f 328Requires: /bin/login
d38368b3 329Requires: pam >= 0.99.7.1
aa0e4c97 330Requires: rc-scripts >= 0.4.1.23
0a069c2e 331Requires: util-linux
516496e1
ER
332Provides: ssh-server
333Provides: user(sshd)
52000378
AF
334
335%description server
336Ssh (Secure Shell) a program for logging into a remote machine and for
11530f15 337executing commands in a remote machine. It is intended to replace
338rlogin and rsh, and provide secure encrypted communications between
339two untrusted hosts over an insecure network. X11 connections and
340arbitrary TCP/IP ports can also be forwarded over the secure channel.
52000378 341
11530f15 342OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
343it up to date in terms of security and features, as well as removing
344all patented algorithms to seperate libraries (OpenSSL).
52000378 345
11530f15 346This package contains the secure shell daemon. The sshd is the server
347part of the secure shell protocol and allows ssh clients to connect to
348your host.
6fe24471 349
84ae85a3 350%description server -l de.UTF-8
aebfac88
JB
351Dieses Paket installiert den sshd, den Server-Teil der OpenSSH.
352
84ae85a3 353%description server -l es.UTF-8
6c34819e 354Este paquete contiene el servidor SSH. sshd es la parte servidor del
355protocolo secure shell y permite que clientes ssh se conecten a su
356servidor.
357
84ae85a3 358%description server -l fr.UTF-8
aebfac88
JB
359Ce paquetage installe le 'sshd', partie serveur de OpenSSH.
360
84ae85a3 361%description server -l it.UTF-8
aebfac88
JB
362Questo pacchetto installa sshd, il server di OpenSSH.
363
84ae85a3
JR
364%description server -l pl.UTF-8
365Ssh (Secure Shell) to program służący do logowania się na zdalną
366maszynę i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
367zastąpić rlogin, rsh i dostarczyć bezpieczne, szyfrowane połączenie
368pomiędzy dwoma hostami.
93e2d77c 369
84ae85a3 370Ten pakiet zawiera serwer sshd (do którego mogą łączyć się klienci
11530f15 371ssh).
93e2d77c 372
84ae85a3 373%description server -l pt.UTF-8
aebfac88
JB
374Este pacote intala o sshd, o servidor do OpenSSH.
375
84ae85a3
JR
376%description server -l pt_BR.UTF-8
377Esse pacote contém o servidor SSH. O sshd é a parte servidor do
6c34819e 378protocolo secure shell e permite que clientes ssh se conectem ao seu
379host.
380
84ae85a3
JR
381%description server -l ru.UTF-8
382Ssh (Secure Shell) - это программа для "захода" (login) на удаленную
383машину и для выполнения команд на удаленной машине.
cb086001 384
84ae85a3
JR
385Этот пакет содержит sshd - "демон" Secure Shell. sshd - это серверная
386часть протокола Secure Shell, позволяющая клиентам ssh соединяться с
387вашим хостом.
cb086001 388
84ae85a3
JR
389%description server -l uk.UTF-8
390Ssh (Secure Shell) - це програма для "заходу" (login) до віддаленої
391машини та для виконання команд на віддаленій машині.
cb086001 392
84ae85a3
JR
393Цей пакет містить sshd - "демон" Secure Shell. sshd - це серверна
394частина протоколу Secure Shell, яка дозволяє клієнтам ssh зв'язуватись
395з вашим хостом.
cb086001 396
6e70f4f7 397%package gnome-askpass
52000378 398Summary: OpenSSH GNOME passphrase dialog
25e16946
ER
399Summary(de.UTF-8): OpenSSH GNOME Passwort-Dialog
400Summary(es.UTF-8): Diálogo para introducción de passphrase para GNOME
401Summary(fr.UTF-8): Dialogue pass-phrase GNOME d'OpenSSH
402Summary(it.UTF-8): Finestra di dialogo GNOME per la frase segreta di OpenSSH
403Summary(pl.UTF-8): Odpytywacz hasła OpenSSH dla GNOME
404Summary(pt.UTF-8): Diálogo de pedido de senha para GNOME do OpenSSH
405Summary(pt_BR.UTF-8): Diálogo para entrada de passphrase para GNOME
406Summary(ru.UTF-8): OpenSSH - диалог ввода ключевой фразы (passphrase) для GNOME
407Summary(uk.UTF-8): OpenSSH - діалог вводу ключової фрази (passphrase) для GNOME
52000378 408Group: Applications/Networking
96f686c2 409Requires: %{name} = %{epoch}:%{version}-%{release}
f937b661 410Obsoletes: openssh-askpass
0a069c2e
ER
411Obsoletes: ssh-askpass
412Obsoletes: ssh-extras
52000378 413
6e70f4f7 414%description gnome-askpass
52000378 415Ssh (Secure Shell) a program for logging into a remote machine and for
11530f15 416executing commands in a remote machine. It is intended to replace
417rlogin and rsh, and provide secure encrypted communications between
418two untrusted hosts over an insecure network. X11 connections and
419arbitrary TCP/IP ports can also be forwarded over the secure channel.
52000378 420
11530f15 421OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
422it up to date in terms of security and features, as well as removing
423all patented algorithms to seperate libraries (OpenSSL).
52000378
AF
424
425This package contains the GNOME passphrase dialog.
426
84ae85a3
JR
427%description gnome-askpass -l es.UTF-8
428Este paquete contiene un programa que abre una caja de diálogo para
6c34819e 429entrada de passphrase en GNOME.
430
84ae85a3
JR
431%description gnome-askpass -l pl.UTF-8
432Ssh (Secure Shell) to program służący do logowania się na zdalną
433maszynę i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
434zastąpić rlogin, rsh i dostarczyć bezpieczne, szyfrowane połączenie
435pomiędzy dwoma hostami.
93e2d77c 436
84ae85a3 437Ten pakiet zawiera ,,odpytywacz hasła'' dla GNOME.
93e2d77c 438
84ae85a3
JR
439%description gnome-askpass -l pt_BR.UTF-8
440Esse pacote contém um programa que abre uma caixa de diálogo para
6c34819e 441entrada de passphrase no GNOME.
442
84ae85a3
JR
443%description gnome-askpass -l ru.UTF-8
444Ssh (Secure Shell) - это программа для "захода" (login) на удаленную
445машину и для выполнения команд на удаленной машине.
cb086001 446
84ae85a3 447Этот пакет содержит диалог ввода ключевой фразы для использования под
cb086001 448GNOME.
449
84ae85a3
JR
450%description gnome-askpass -l uk.UTF-8
451Ssh (Secure Shell) - це програма для "заходу" (login) до віддаленої
452машини та для виконання команд на віддаленій машині.
cb086001 453
84ae85a3 454Цей пакет містить діалог вводу ключової фрази для використання під
cb086001 455GNOME.
456
52000378 457%prep
ecf377a3 458%setup -q
4946f6e5 459%patch0 -p1
8d59ede4 460%patch1 -p1
1aca01a4 461%patch2 -p1
200ba837 462%patch3 -p1
8d59ede4
JB
463%{?with_ldap:%patch4 -p1}
464%patch5 -p1
8d59ede4 465%patch7 -p1
516496e1 466%{?with_hpn:%patch9 -p1}
8d59ede4 467%patch10 -p1
100234b3 468%patch11 -p1
52000378
AF
469
470%build
64f1c35c 471cp /usr/share/automake/config.sub .
0b24ec17 472%{__aclocal}
5c76eb87 473%{__autoconf}
37aa5700 474CPPFLAGS="-DCHROOT"
52000378 475%configure \
c59fae24 476 PERL=%{__perl} \
ad852e00 477 --with-dns \
41897191
AM
478 --with-pam \
479 --with-mantype=man \
f9bf943b 480 --with-md5-passwords \
4946f6e5 481 --with-ipaddr-display \
f6c7fa07 482 %{?with_libedit:--with-libedit} \
93e2d77c 483 --with-4in6 \
41897191 484 --disable-suid-ssh \
06b95d40 485 --with-tcp-wrappers \
9cfed0b2 486 %{?with_ldap:--with-libs="-lldap -llber"} \
487 %{?with_ldap:--with-cppflags="-DWITH_LDAP_PUBKEY"} \
4a5c0c7d 488 %{?with_kerberos5:--with-kerberos5=/usr} \
a14c109c 489 --with-privsep-path=%{_privsepdir} \
05fbd2e9 490 --with-pid-dir=%{_localstatedir}/run \
c7963a12
JR
491 --with-xauth=/usr/bin/xauth \
492 --enable-utmpx \
493 --enable-wtmpx
82f989ae 494
b8002dec 495echo '#define LOGIN_PROGRAM "/bin/login"' >>config.h
f9bf943b 496
100832a0 497%{__make}
475ef6df 498
40cb2e83 499cd contrib
9cfed0b2 500%if %{with gnome}
40cb2e83
JB
501%{__make} gnome-ssh-askpass1 \
502 CC="%{__cc} %{rpmldflags} %{rpmcflags}"
503%endif
9cfed0b2 504%if %{with gtk}
40cb2e83
JB
505%{__make} gnome-ssh-askpass2 \
506 CC="%{__cc} %{rpmldflags} %{rpmcflags}"
507%endif
6fe24471
AF
508
509%install
510rm -rf $RPM_BUILD_ROOT
1d1e6997 511install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{pam.d,rc.d/init.d,sysconfig,security,env.d}} \
9a2a459a 512 $RPM_BUILD_ROOT%{_libexecdir}/ssh
8a7ba6eb 513install -d $RPM_BUILD_ROOT/etc/{profile.d,X11/xinit/xinitrc.d}
52000378 514
9a2a459a
PG
515%{__make} install \
516 DESTDIR=$RPM_BUILD_ROOT
0d32b20f 517
486d736c 518bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
40cb2e83 519
486d736c
JR
520install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
521install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/sshd
522install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/sshd
523install %{SOURCE5} $RPM_BUILD_ROOT/etc/profile.d
524ln -sf /etc/profile.d/ssh-agent.sh $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/ssh-agent.sh
525install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}
2b7669a6 526
9cfed0b2 527%if %{with gnome}
40cb2e83
JB
528install contrib/gnome-ssh-askpass1 $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass
529%endif
9cfed0b2 530%if %{with gtk}
40cb2e83 531install contrib/gnome-ssh-askpass2 $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass
1d1e6997
PG
532%endif
533%if %{with gnome} || %{with gtk}
6157007b 534cat << 'EOF' >$RPM_BUILD_ROOT/etc/env.d/GNOME_SSH_ASKPASS_GRAB_SERVER
1d1e6997
PG
535#GNOME_SSH_ASKPASS_GRAB_SERVER="true"
536EOF
6157007b 537cat << 'EOF' >$RPM_BUILD_ROOT/etc/env.d/GNOME_SSH_ASKPASS_GRAB_POINTER
1d1e6997
PG
538#GNOME_SSH_ASKPASS_GRAB_POINTER="true"
539EOF
4ae0bc0d 540ln -s %{_libexecdir}/ssh/ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/ssh-askpass
40cb2e83 541%endif
6e70f4f7 542
8e700b6b 543rm -f $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
5f72fe6f 544echo ".so ssh.1" > $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
41897191 545
ffbc041f 546touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
643dc12f 547
b8002dec 548cat << 'EOF' > $RPM_BUILD_ROOT/etc/env.d/SSH_ASKPASS
1d1e6997
PG
549#SSH_ASKPASS="%{_libexecdir}/ssh-askpass"
550EOF
551
92815192
ER
552rm -f $RPM_BUILD_ROOT%{_datadir}/Ssh.bin # ???
553rm -f $RPM_BUILD_ROOT%{_mandir}/README.openssh-non-english-man-pages
554
6fe24471
AF
555%clean
556rm -rf $RPM_BUILD_ROOT
557
b259ae2c
ER
558%post clients
559%env_update
560
561%postun clients
562%env_update
563
564%post gnome-askpass
565%env_update
566
567%postun gnome-askpass
568%env_update
569
8a304ceb 570%pre server
0225d3b8 571%useradd -P %{name}-server -u 40 -d %{_privsepdir} -s /bin/false -c "OpenSSH PrivSep User" -g nobody sshd
4c8ae2f8 572
52000378 573%post server
d7fde396 574/sbin/chkconfig --add sshd
2c99507e 575%service sshd reload "openssh daemon"
40cb2e83
JB
576if ! grep -qs ssh /etc/security/passwd.conf ; then
577 umask 022
ec00afd0
JR
578 echo "ssh" >> /etc/security/passwd.conf
579fi
6fe24471 580
52000378 581%preun server
d7fde396 582if [ "$1" = "0" ]; then
b054de44 583 %service sshd stop
d7fde396 584 /sbin/chkconfig --del sshd
585fi
6fe24471 586
9b604401
JB
587%postun server
588if [ "$1" = "0" ]; then
5f4ffc90 589 %userremove sshd
9b604401
JB
590fi
591
6fe24471 592%files
52000378 593%defattr(644,root,root,755)
7cc45b9b 594%doc *.RNG TODO README OVERVIEW CREDITS Change*
a6eef44c
AM
595%attr(755,root,root) %{_bindir}/ssh-key*
596%{_mandir}/man1/ssh-key*.1*
52000378 597%dir %{_sysconfdir}
9df62d0f 598%dir %{_libexecdir}
52000378
AF
599
600%files clients
601%defattr(644,root,root,755)
96f686c2
JB
602%attr(755,root,root) %{_bindir}/ssh
603%attr(755,root,root) %{_bindir}/slogin
604%attr(755,root,root) %{_bindir}/sftp
605%attr(755,root,root) %{_bindir}/ssh-agent
606%attr(755,root,root) %{_bindir}/ssh-add
607%attr(755,root,root) %{_bindir}/scp
794e0987
JB
608%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ssh_config
609%config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/SSH_ASKPASS
52000378
AF
610%{_mandir}/man1/scp.1*
611%{_mandir}/man1/ssh.1*
41897191 612%{_mandir}/man1/slogin.1*
a6eef44c 613%{_mandir}/man1/sftp.1*
52000378
AF
614%{_mandir}/man1/ssh-agent.1*
615%{_mandir}/man1/ssh-add.1*
902cef13 616%{_mandir}/man5/ssh_config.5*
2b7669a6 617%lang(it) %{_mandir}/it/man1/ssh.1*
618%lang(it) %{_mandir}/it/man5/ssh_config.5*
619%lang(pl) %{_mandir}/pl/man1/scp.1*
620%lang(zh_CN) %{_mandir}/zh_CN/man1/scp.1*
ec82f607
JB
621
622# for host-based auth (suid required for accessing private host key)
623#%attr(4755,root,root) %{_libexecdir}/ssh-keysign
624#%{_mandir}/man8/ssh-keysign.8*
52000378 625
8a7ba6eb
AM
626%files clients-agent-profile_d
627%defattr(644,root,root,755)
628%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ssh-agent.conf
629%attr(755,root,root) /etc/profile.d/ssh-agent.sh
630
631%files clients-agent-xinitrc
632%defattr(644,root,root,755)
633%attr(755,root,root) /etc/X11/xinit/xinitrc.d/ssh-agent.sh
634
52000378
AF
635%files server
636%defattr(644,root,root,755)
637%attr(755,root,root) %{_sbindir}/sshd
a6eef44c 638%attr(755,root,root) %{_libexecdir}/sftp-server
ad852e00 639%attr(755,root,root) %{_libexecdir}/ssh-keysign
52000378 640%{_mandir}/man8/sshd.8*
a6eef44c 641%{_mandir}/man8/sftp-server.8*
ad852e00 642%{_mandir}/man8/ssh-keysign.8*
902cef13 643%{_mandir}/man5/sshd_config.5*
794e0987
JB
644%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sshd_config
645%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/sshd
634d69b4 646%attr(640,root,root) %{_sysconfdir}/moduli
52000378 647%attr(754,root,root) /etc/rc.d/init.d/sshd
794e0987
JB
648%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/sshd
649%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.sshd
52000378 650
0d32b20f 651%if %{with gnome} || %{with gtk}
40cb2e83
JB
652%files gnome-askpass
653%defattr(644,root,root,755)
794e0987 654%config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/GNOME_SSH_ASKPASS*
40cb2e83
JB
655%dir %{_libexecdir}/ssh
656%attr(755,root,root) %{_libexecdir}/ssh/ssh-askpass
4ae0bc0d 657%attr(755,root,root) %{_libexecdir}/ssh-askpass
40cb2e83 658%endif
This page took 0.184265 seconds and 4 git commands to generate.