]> git.pld-linux.org Git - packages/openssh.git/blame - openssh.spec
- package systemd socket activation files (do not enable)
[packages/openssh.git] / openssh.spec
CommitLineData
2ebfbf87 1#
2ca913e8 2# Conditional build:
bb7a58b9 3%bcond_without audit # sshd audit support
f6c7fa07 4%bcond_with gnome # with gnome-askpass (GNOME 1.x) utility
cd53fc87 5%bcond_without gtk # without GTK+ (2.x)
b32891d6 6%bcond_without ldap # with ldap support
f6c7fa07 7%bcond_without libedit # without libedit (editline/history support in sftp client)
9cfed0b2 8%bcond_without kerberos5 # without kerberos5 support
70329622 9%bcond_without selinux # build without SELinux support
5c609334 10%bcond_with hpn # High Performance SSH/SCP - HPN-SSH including Cipher NONE (broken too often)
6ab60e34 11%bcond_without tests
516496e1 12
cef904f1
JB
13# gtk2-based gnome-askpass means no gnome1-based
14%{?with_gtk:%undefine with_gnome}
cc788d8e 15
2ebfbf87
ER
16%if "%{pld_release}" == "ac"
17%define pam_ver 0.79.0
18%else
c75fc765 19%define pam_ver 1:1.1.5-5
2ebfbf87
ER
20%endif
21
52000378 22Summary: OpenSSH free Secure Shell (SSH) implementation
25e16946
ER
23Summary(de.UTF-8): OpenSSH - freie Implementation der Secure Shell (SSH)
24Summary(es.UTF-8): Implementación libre de SSH
25Summary(fr.UTF-8): Implémentation libre du shell sécurisé OpenSSH (SSH)
26Summary(it.UTF-8): Implementazione gratuita OpenSSH della Secure Shell
27Summary(pl.UTF-8): Publicznie dostępna implementacja bezpiecznego shella (SSH)
28Summary(pt.UTF-8): Implementação livre OpenSSH do protocolo 'Secure Shell' (SSH)
29Summary(pt_BR.UTF-8): Implementação livre do SSH
30Summary(ru.UTF-8): OpenSSH - свободная реализация протокола Secure Shell (SSH)
31Summary(uk.UTF-8): OpenSSH - вільна реалізація протоколу Secure Shell (SSH)
52000378 32Name: openssh
752ee73d 33Version: 6.0p1
84b4a299 34Release: 2
f5fc6a92 35Epoch: 2
5d1c7089 36License: BSD
37Group: Applications/Networking
6481986b 38Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/%{name}-%{version}.tar.gz
752ee73d 39# Source0-md5: 3c9347aa67862881c5da3f3b1c08da7b
486d736c
JR
40Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
41# Source1-md5: 66943d481cc422512b537bcc2c7400d1
42Source2: %{name}d.init
43Source3: %{name}d.pamd
44Source4: %{name}.sysconfig
45Source5: ssh-agent.sh
46Source6: ssh-agent.conf
b32891d6 47Source7: %{name}-lpk.schema
c0f446a0 48Source8: %{name}d.upstart
c75fc765
JR
49Source9: sshd.service
50Source10: sshd-keygen
84b4a299
ER
51Source11: sshd.socket
52Source12: sshd@.service
2ebfbf87 53Patch100: %{name}-heimdal.patch
89eac7b5 54Patch0: %{name}-no_libnsl.patch
8d59ede4
JB
55Patch2: %{name}-pam_misc.patch
56Patch3: %{name}-sigpipe.patch
501aed94
AM
57# http://pkgs.fedoraproject.org/gitweb/?p=openssh.git;a=tree
58Patch4: %{name}-5.9p1-ldap.patch
59Patch5: %{name}-5.9p1-ldap-fixes.patch
be063a4e 60Patch8: ldap.conf.patch
501aed94 61Patch6: %{name}-config.patch
108bb9ae
ER
62# https://bugzilla.mindrot.org/show_bug.cgi?id=1663
63Patch7: authorized-keys-command.patch
0a069c2e 64# High Performance SSH/SCP - HPN-SSH - http://www.psc.edu/networking/projects/hpn-ssh/
0d5b2bd4
ER
65# http://www.psc.edu/networking/projects/hpn-ssh/openssh-5.2p1-hpn13v6.diff.gz
66Patch9: %{name}-5.2p1-hpn13v6.diff
8d59ede4 67Patch10: %{name}-include.patch
100234b3 68Patch11: %{name}-chroot.patch
342ae3ba 69# http://people.debian.org/~cjwatson/%{name}-blacklist.diff
cc788d8e 70Patch12: %{name}-blacklist.diff
92dc7c43 71Patch13: %{name}-kuserok.patch
eefe27ae 72Patch14: %{name}-bind.patch
c5eb8e82 73URL: http://www.openssh.com/portable.html
0a069c2e 74BuildRequires: %{__perl}
26d23d17
JB
75%{?with_audit:BuildRequires: audit-libs-devel}
76BuildRequires: autoconf >= 2.50
8f12ae30 77BuildRequires: automake
9cfed0b2 78%{?with_gnome:BuildRequires: gnome-libs-devel}
79%{?with_gtk:BuildRequires: gtk+2-devel}
044fff96 80%{?with_kerberos5:BuildRequires: heimdal-devel >= 0.7}
f6c7fa07 81%{?with_libedit:BuildRequires: libedit-devel}
70329622 82%{?with_selinux:BuildRequires: libselinux-devel}
a14c109c 83BuildRequires: libwrap-devel
044fff96 84%{?with_ldap:BuildRequires: openldap-devel}
b12dd014 85BuildRequires: openssl-devel >= 0.9.7d
92d612e6 86BuildRequires: pam-devel
9cfed0b2 87%{?with_gtk:BuildRequires: pkgconfig}
2ebfbf87 88BuildRequires: rpm >= 4.4.9-56
c75fc765 89BuildRequires: rpmbuild(macros) >= 1.627
a42c5034 90BuildRequires: sed >= 4.0
a14c109c 91BuildRequires: zlib-devel
2ebfbf87
ER
92%if "%{pld_release}" == "ac"
93Requires: filesystem >= 2.0-1
94Requires: pam >= 0.79.0
95%else
680fc8d4 96Requires: filesystem >= 3.0-11
2ebfbf87 97Requires: pam >= %{pam_ver}
35844bbb 98Suggests: openssh-blacklist
a9abed26 99Suggests: xorg-app-xauth
2ebfbf87 100%endif
f937b661 101Obsoletes: ssh
05fbd2e9 102BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52000378 103
b7b47957 104%define _sysconfdir /etc/ssh
1dd7cf18 105%define _libexecdir %{_libdir}/%{name}
a14c109c 106%define _privsepdir /usr/share/empty
b32891d6 107%define schemadir /usr/share/openldap/schema
6fe24471
AF
108
109%description
110Ssh (Secure Shell) a program for logging into a remote machine and for
11530f15 111executing commands in a remote machine. It is intended to replace
112rlogin and rsh, and provide secure encrypted communications between
113two untrusted hosts over an insecure network. X11 connections and
114arbitrary TCP/IP ports can also be forwarded over the secure channel.
6fe24471 115
11530f15 116OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
117it up to date in terms of security and features, as well as removing
118all patented algorithms to seperate libraries (OpenSSL).
6fe24471 119
11530f15 120This package includes the core files necessary for both the OpenSSH
121client and server. To make this package useful, you should also
122install openssh-clients, openssh-server, or both.
a42c5034 123
0d5b2bd4 124%if %{with hpn}
0a069c2e 125This release includes High Performance SSH/SCP patches from
a42c5034
ER
126http://www.psc.edu/networking/projects/hpn-ssh/ which are supposed to
127increase throughput on fast connections with high RTT (20-150 msec).
088aab43 128See the website for '-w' values for your connection and /proc/sys TCP
129values. BTW. in a LAN you have got generally RTT < 1 msec.
130%endif
6fe24471 131
84ae85a3 132%description -l de.UTF-8
aebfac88
JB
133OpenSSH (Secure Shell) stellt den Zugang zu anderen Rechnern her. Es
134ersetzt telnet, rlogin, rexec und rsh und stellt eine sichere,
84ae85a3
JR
135verschlüsselte Verbindung zwischen zwei nicht vertrauenswürdigen Hosts
136über eine unsicheres Netzwerk her. X11 Verbindungen und beliebige
137andere TCP/IP Ports können ebenso über den sicheren Channel
aebfac88
JB
138weitergeleitet werden.
139
84ae85a3
JR
140%description -l es.UTF-8
141SSH es un programa para accesar y ejecutar órdenes en computadores
142remotos. Sustituye rlogin y rsh, y suministra un canal de comunicación
6c34819e 143seguro entre dos servidores en una red insegura. Conexiones X11 y
84ae85a3 144puertas TCP/IP arbitrárias también pueden ser usadas por el canal
6c34819e 145seguro.
146
147OpenSSH es el resultado del trabajo del equipo de OpenBSD para
84ae85a3
JR
148continuar la última versión gratuita de SSH, actualizándolo en
149términos de seguridad y recursos,así también eliminando todos los
150algoritmos patentados y colocándolos en bibliotecas separadas
6c34819e 151(OpenSSL).
152
153Este paquete contiene "port" para Linux de OpenSSH. Se debe instalar
84ae85a3 154también el paquete openssh-clients u openssh-server o ambos.
6c34819e 155
84ae85a3
JR
156%description -l fr.UTF-8
157OpenSSH (Secure Shell) fournit un accès à un système distant. Il
aebfac88 158remplace telnet, rlogin, rexec et rsh, tout en assurant des
84ae85a3
JR
159communications cryptées securisées entre deux hôtes non fiabilisés sur
160un réseau non sécurisé. Des connexions X11 et des ports TCP/IP
161arbitraires peuvent également être transmis sur le canal sécurisé.
aebfac88 162
84ae85a3 163%description -l it.UTF-8
aebfac88
JB
164OpenSSH (Secure Shell) fornisce l'accesso ad un sistema remoto.
165Sostituisce telnet, rlogin, rexec, e rsh, e fornisce comunicazioni
166sicure e crittate tra due host non fidati su una rete non sicura. Le
167connessioni X11 ad una porta TCP/IP arbitraria possono essere
168inoltrate attraverso un canale sicuro.
169
84ae85a3
JR
170%description -l pl.UTF-8
171Ssh (Secure Shell) to program służący do logowania się na zdalną
172maszynę i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
173zastąpić rlogin, rsh i dostarczyć bezpieczne, szyfrowane połączenie
174pomiędzy dwoma hostami.
93e2d77c 175
84ae85a3
JR
176Ten pakiet zawiera podstawowe pliki potrzebne zarówno po stronie
177klienta jak i serwera OpenSSH. Aby był użyteczny, trzeba zainstalować
178co najmniej jeden z pakietów: openssh-clients lub openssh-server.
a42c5034 179
0d5b2bd4 180%if %{with hpn}
84ae85a3
JR
181Ta wersja zawiera łaty z projektu High Performance SSH/SCP
182http://www.psc.edu/networking/projects/hpn-ssh/, które mają na celu
a42c5034
ER
183zwiększenie przepustowości transmisji dla szybkich połączeń z dużym
184RTT (20-150 msec). Na stronie projektu znaleźć można odpowednie dla
185danego połączenia wartości parametru '-w' oraz opcje /proc/sys dla
186TCP. Nawiasem mówiąc w sieciach LAN RTT < 1 msec.
088aab43 187%endif
aebfac88 188
84ae85a3 189%description -l pt.UTF-8
aebfac88 190OpenSSH (Secure Shell) fornece acesso a um sistema remoto. Substitui o
84ae85a3
JR
191telnet, rlogin, rexec, e o rsh e fornece comunicações seguras e
192cifradas entre duas máquinas sem confiança mútua sobre uma rede
193insegura. Ligações X11 e portos TCP/IP arbitrários também poder ser
aebfac88
JB
194reenviados pelo canal seguro.
195
84ae85a3
JR
196%description -l pt_BR.UTF-8
197SSH é um programa para acessar e executar comandos em máquinas
198remotas. Ele substitui rlogin e rsh, e provem um canal de comunicação
199seguro entre dois hosts em uma rede insegura. Conexões X11 e portas
200TCP/IP arbitrárias também podem ser usadas pelo canal seguro.
6c34819e 201
84ae85a3
JR
202OpenSSH é o resultado do trabalho da equipe do OpenBSD em continuar a
203última versão gratuita do SSH, atualizando-o em termos de segurança e
6c34819e 204recursos, assim como removendo todos os algoritmos patenteados e
205colocando-os em bibliotecas separadas (OpenSSL).
206
84ae85a3
JR
207Esse pacote contém o "port" pra Linux do OpenSSH. Você deve instalar
208também ou o pacote openssh-clients, ou o openssh-server, ou ambos.
209
210%description -l ru.UTF-8
211Ssh (Secure Shell) - это программа для "захода" (login) на удаленную
212машину и для выполнения команд на удаленной машине. Она предназначена
213для замены rlogin и rsh и обеспечивает безопасную шифрованную
214коммуникацию между двумя хостами в сети, являющейся небезопасной.
215Соединения X11 и любые порты TCP/IP могут также быть проведены через
216безопасный канал.
217
218OpenSSH - это переделка командой разработчиков OpenBSD последней
219свободной версии SSH, доведенная до современного состояния в терминах
220уровня безопасности и поддерживаемых возможностей. Все патентованные
221алгоритмы вынесены в отдельные библиотеки (OpenSSL).
222
223Этот пакет содержит файлы, необходимые как для клиента, так и для
224сервера OpenSSH. Вам нужно будет установить еще openssh-clients,
225openssh-server, или оба пакета.
226
227%description -l uk.UTF-8
228Ssh (Secure Shell) - це програма для "заходу" (login) до віддаленої
229машини та для виконання команд на віддаленій машині. Вона призначена
230для заміни rlogin та rsh і забезпечує безпечну шифровану комунікацію
231між двома хостами в мережі, яка не є безпечною. З'єднання X11 та
232довільні порти TCP/IP можуть також бути проведені через безпечний
233канал.
234
235OpenSSH - це переробка командою розробників OpenBSD останньої вільної
236версії SSH, доведена до сучасного стану в термінах рівня безпеки та
237підтримуваних можливостей. Всі патентовані алгоритми винесені до
238окремих бібліотек (OpenSSL).
239
240Цей пакет містить файли, необхідні як для клієнта, так і для сервера
241OpenSSH. Вам потрібно буде ще встановити openssh-clients,
242openssh-server, чи обидва пакети.
cb086001 243
52000378
AF
244%package clients
245Summary: OpenSSH Secure Shell protocol clients
25e16946
ER
246Summary(es.UTF-8): Clientes de OpenSSH
247Summary(pl.UTF-8): Klienci protokołu Secure Shell
248Summary(pt_BR.UTF-8): Clientes do OpenSSH
249Summary(ru.UTF-8): OpenSSH - клиенты протокола Secure Shell
250Summary(uk.UTF-8): OpenSSH - клієнти протоколу Secure Shell
52000378 251Group: Applications/Networking
f1608a0c 252Requires: %{name}
516496e1 253Provides: ssh-clients
a14c109c 254Obsoletes: ssh-clients
6fe24471 255
52000378
AF
256%description clients
257Ssh (Secure Shell) a program for logging into a remote machine and for
11530f15 258executing commands in a remote machine. It is intended to replace
259rlogin and rsh, and provide secure encrypted communications between
260two untrusted hosts over an insecure network. X11 connections and
261arbitrary TCP/IP ports can also be forwarded over the secure channel.
6fe24471 262
11530f15 263OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
264it up to date in terms of security and features, as well as removing
265all patented algorithms to seperate libraries (OpenSSL).
52000378 266
11530f15 267This package includes the clients necessary to make encrypted
268connections to SSH servers.
52000378 269
84ae85a3 270%description clients -l es.UTF-8
6c34819e 271Este paquete incluye los clientes que se necesitan para hacer
272conexiones codificadas con servidores SSH.
273
84ae85a3
JR
274%description clients -l pl.UTF-8
275Ssh (Secure Shell) to program służący do logowania się na zdalną
276maszynę i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
277zastąpić rlogin, rsh i dostarczyć bezpieczne, szyfrowane połączenie
278pomiędzy dwoma hostami.
93e2d77c 279
84ae85a3 280Ten pakiet zawiera klientów służących do łączenia się z serwerami SSH.
93e2d77c 281
84ae85a3
JR
282%description clients -l pt_BR.UTF-8
283Esse pacote inclui os clientes necessários para fazer conexões
6c34819e 284encriptadas com servidores SSH.
285
84ae85a3
JR
286%description clients -l ru.UTF-8
287Ssh (Secure Shell) - это программа для "захода" (login) на удаленную
288машину и для выполнения команд на удаленной машине.
cb086001 289
84ae85a3
JR
290Этот пакет содержит программы-клиенты, необходимые для установления
291зашифрованных соединений с серверами SSH.
cb086001 292
84ae85a3
JR
293%description clients -l uk.UTF-8
294Ssh (Secure Shell) - це програма для "заходу" (login) до віддаленої
295машини та для виконання команд на віддаленій машині.
cb086001 296
84ae85a3
JR
297Цей пакет містить програми-клієнти, необхідні для встановлення
298зашифрованих з'єднань з серверами SSH.
cb086001 299
8a7ba6eb
AM
300%package clients-agent-profile_d
301Summary: OpenSSH Secure Shell agent init script
4944be5f 302Summary(pl.UTF-8): Skrypt startowy agenta OpenSSH
8a7ba6eb
AM
303Group: Applications/Networking
304Requires: %{name}-clients = %{epoch}:%{version}-%{release}
305
306%description clients-agent-profile_d
307profile.d scripts for starting SSH agent.
308
4944be5f
JB
309%description clients-agent-profile_d -l pl.UTF-8
310Skrypty profile.d do uruchamiania agenta SSH.
311
8a7ba6eb
AM
312%package clients-agent-xinitrc
313Summary: OpenSSH Secure Shell agent init script
314Summary(pl.UTF-8): Skrypt inicjujący agenta ssh przez xinitrc
315Group: Applications/Networking
316Requires: %{name}-clients-agent-profile_d = %{epoch}:%{version}-%{release}
317Requires: xinitrc
318
319%description clients-agent-xinitrc
320xinitrc scripts for starting SSH agent.
321
4944be5f
JB
322%description clients-agent-xinitrc -l pl.UTF-8
323Skrypty xinitrc do uruchamiania agenta SSH.
8a7ba6eb 324
52000378
AF
325%package server
326Summary: OpenSSH Secure Shell protocol server (sshd)
25e16946
ER
327Summary(de.UTF-8): OpenSSH Secure Shell Protocol-Server (sshd)
328Summary(es.UTF-8): Servidor OpenSSH para comunicaciones codificadas
329Summary(fr.UTF-8): Serveur de protocole du shell sécurisé OpenSSH (sshd)
330Summary(it.UTF-8): Server OpenSSH per il protocollo Secure Shell (sshd)
331Summary(pl.UTF-8): Serwer protokołu Secure Shell (sshd)
332Summary(pt.UTF-8): Servidor do protocolo 'Secure Shell' OpenSSH (sshd)
333Summary(pt_BR.UTF-8): Servidor OpenSSH para comunicações encriptadas
334Summary(ru.UTF-8): OpenSSH - сервер протокола Secure Shell (sshd)
335Summary(uk.UTF-8): OpenSSH - сервер протоколу Secure Shell (sshd)
52000378 336Group: Networking/Daemons
2ebfbf87 337Requires(post): /sbin/chkconfig
40cb2e83 338Requires(post): grep
0a069c2e 339Requires(post,preun): /sbin/chkconfig
9b604401 340Requires(postun): /usr/sbin/userdel
0a069c2e
ER
341Requires(pre): /bin/id
342Requires(pre): /usr/sbin/useradd
40e0df39 343Requires(post,preun,postun): systemd-units >= 38
0a069c2e 344Requires: %{name} = %{epoch}:%{version}-%{release}
44144fb7
ER
345# remove in 6.0, kept for flawless upgrade
346Requires: %{name}-server-ldap = %{epoch}:%{version}-%{release}
2ebfbf87 347Requires: pam >= %{pam_ver}
c0f446a0 348Requires: rc-scripts >= 0.4.3.0
40e0df39 349Requires: systemd-units >= 38
0a069c2e 350Requires: util-linux
0d5b2bd4 351Suggests: /bin/login
516496e1
ER
352Provides: ssh-server
353Provides: user(sshd)
52000378
AF
354
355%description server
356Ssh (Secure Shell) a program for logging into a remote machine and for
11530f15 357executing commands in a remote machine. It is intended to replace
358rlogin and rsh, and provide secure encrypted communications between
359two untrusted hosts over an insecure network. X11 connections and
360arbitrary TCP/IP ports can also be forwarded over the secure channel.
52000378 361
11530f15 362OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
363it up to date in terms of security and features, as well as removing
364all patented algorithms to seperate libraries (OpenSSL).
52000378 365
11530f15 366This package contains the secure shell daemon. The sshd is the server
367part of the secure shell protocol and allows ssh clients to connect to
368your host.
6fe24471 369
84ae85a3 370%description server -l de.UTF-8
aebfac88
JB
371Dieses Paket installiert den sshd, den Server-Teil der OpenSSH.
372
84ae85a3 373%description server -l es.UTF-8
6c34819e 374Este paquete contiene el servidor SSH. sshd es la parte servidor del
375protocolo secure shell y permite que clientes ssh se conecten a su
376servidor.
377
84ae85a3 378%description server -l fr.UTF-8
aebfac88
JB
379Ce paquetage installe le 'sshd', partie serveur de OpenSSH.
380
84ae85a3 381%description server -l it.UTF-8
aebfac88
JB
382Questo pacchetto installa sshd, il server di OpenSSH.
383
84ae85a3
JR
384%description server -l pl.UTF-8
385Ssh (Secure Shell) to program służący do logowania się na zdalną
386maszynę i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
387zastąpić rlogin, rsh i dostarczyć bezpieczne, szyfrowane połączenie
388pomiędzy dwoma hostami.
93e2d77c 389
84ae85a3 390Ten pakiet zawiera serwer sshd (do którego mogą łączyć się klienci
11530f15 391ssh).
93e2d77c 392
84ae85a3 393%description server -l pt.UTF-8
aebfac88
JB
394Este pacote intala o sshd, o servidor do OpenSSH.
395
84ae85a3
JR
396%description server -l pt_BR.UTF-8
397Esse pacote contém o servidor SSH. O sshd é a parte servidor do
6c34819e 398protocolo secure shell e permite que clientes ssh se conectem ao seu
399host.
400
84ae85a3
JR
401%description server -l ru.UTF-8
402Ssh (Secure Shell) - это программа для "захода" (login) на удаленную
403машину и для выполнения команд на удаленной машине.
cb086001 404
84ae85a3
JR
405Этот пакет содержит sshd - "демон" Secure Shell. sshd - это серверная
406часть протокола Secure Shell, позволяющая клиентам ssh соединяться с
407вашим хостом.
cb086001 408
84ae85a3
JR
409%description server -l uk.UTF-8
410Ssh (Secure Shell) - це програма для "заходу" (login) до віддаленої
411машини та для виконання команд на віддаленій машині.
cb086001 412
84ae85a3
JR
413Цей пакет містить sshd - "демон" Secure Shell. sshd - це серверна
414частина протоколу Secure Shell, яка дозволяє клієнтам ssh зв'язуватись
415з вашим хостом.
cb086001 416
44144fb7
ER
417%package server-ldap
418Summary: A LDAP support for open source SSH server daemon
bb7a58b9 419Summary(pl.UTF-8): Wsparcie LDAP dla serwera OpenSSH
44144fb7 420Group: Daemons
1a0628c8 421Requires: %{name} = %{epoch}:%{version}-%{release}
44144fb7
ER
422
423%description server-ldap
424OpenSSH LDAP backend is a way how to distribute the authorized tokens
425among the servers in the network.
426
bb7a58b9
JB
427%description server-ldap -l pl.UTF-8
428Backend LDAP dla OpenSSH to metoda rozprowadzania autoryzowanych
429tokenów między serwerami w sieci.
430
c0f446a0
JK
431%package server-upstart
432Summary: Upstart job description for OpenSSH server
433Summary(pl.UTF-8): Opis zadania Upstart dla serwera OpenSSH
434Group: Daemons
435Requires: %{name}-server = %{epoch}:%{version}-%{release}
436Requires: upstart >= 0.6
74f7fb64 437Conflicts: syslog-ng < 3.2.4-1
c0f446a0
JK
438
439%description server-upstart
440Upstart job description for OpenSSH.
441
442%description server-upstart -l pl.UTF-8
443Opis zadania Upstart dla OpenSSH.
444
6e70f4f7 445%package gnome-askpass
52000378 446Summary: OpenSSH GNOME passphrase dialog
25e16946
ER
447Summary(de.UTF-8): OpenSSH GNOME Passwort-Dialog
448Summary(es.UTF-8): Diálogo para introducción de passphrase para GNOME
449Summary(fr.UTF-8): Dialogue pass-phrase GNOME d'OpenSSH
450Summary(it.UTF-8): Finestra di dialogo GNOME per la frase segreta di OpenSSH
451Summary(pl.UTF-8): Odpytywacz hasła OpenSSH dla GNOME
452Summary(pt.UTF-8): Diálogo de pedido de senha para GNOME do OpenSSH
453Summary(pt_BR.UTF-8): Diálogo para entrada de passphrase para GNOME
454Summary(ru.UTF-8): OpenSSH - диалог ввода ключевой фразы (passphrase) для GNOME
455Summary(uk.UTF-8): OpenSSH - діалог вводу ключової фрази (passphrase) для GNOME
52000378 456Group: Applications/Networking
96f686c2 457Requires: %{name} = %{epoch}:%{version}-%{release}
f937b661 458Obsoletes: openssh-askpass
0a069c2e
ER
459Obsoletes: ssh-askpass
460Obsoletes: ssh-extras
52000378 461
6e70f4f7 462%description gnome-askpass
52000378 463Ssh (Secure Shell) a program for logging into a remote machine and for
11530f15 464executing commands in a remote machine. It is intended to replace
465rlogin and rsh, and provide secure encrypted communications between
466two untrusted hosts over an insecure network. X11 connections and
467arbitrary TCP/IP ports can also be forwarded over the secure channel.
52000378 468
11530f15 469OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
470it up to date in terms of security and features, as well as removing
471all patented algorithms to seperate libraries (OpenSSL).
52000378
AF
472
473This package contains the GNOME passphrase dialog.
474
84ae85a3
JR
475%description gnome-askpass -l es.UTF-8
476Este paquete contiene un programa que abre una caja de diálogo para
6c34819e 477entrada de passphrase en GNOME.
478
84ae85a3
JR
479%description gnome-askpass -l pl.UTF-8
480Ssh (Secure Shell) to program służący do logowania się na zdalną
481maszynę i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
482zastąpić rlogin, rsh i dostarczyć bezpieczne, szyfrowane połączenie
483pomiędzy dwoma hostami.
93e2d77c 484
84ae85a3 485Ten pakiet zawiera ,,odpytywacz hasła'' dla GNOME.
93e2d77c 486
84ae85a3
JR
487%description gnome-askpass -l pt_BR.UTF-8
488Esse pacote contém um programa que abre uma caixa de diálogo para
6c34819e 489entrada de passphrase no GNOME.
490
84ae85a3
JR
491%description gnome-askpass -l ru.UTF-8
492Ssh (Secure Shell) - это программа для "захода" (login) на удаленную
493машину и для выполнения команд на удаленной машине.
cb086001 494
84ae85a3 495Этот пакет содержит диалог ввода ключевой фразы для использования под
cb086001 496GNOME.
497
84ae85a3
JR
498%description gnome-askpass -l uk.UTF-8
499Ssh (Secure Shell) - це програма для "заходу" (login) до віддаленої
500машини та для виконання команд на віддаленій машині.
cb086001 501
84ae85a3 502Цей пакет містить діалог вводу ключової фрази для використання під
cb086001 503GNOME.
504
b32891d6
JR
505%package -n openldap-schema-openssh-lpk
506Summary: OpenSSH LDAP Public Key schema
507Summary(pl.UTF-8): Schemat klucza publicznego LDAP dla OpenSSH
508Group: Networking/Daemons
509Requires(post,postun): sed >= 4.0
510Requires: openldap-servers
511
512%description -n openldap-schema-openssh-lpk
513This package contains OpenSSH LDAP Public Key schema for openldap.
514
515%description -n openldap-schema-openssh-lpk -l pl.UTF-8
0d5b2bd4
ER
516Ten pakiet zawiera schemat klucza publicznego LDAP dla OpenSSH dla
517openldap-a.
b32891d6 518
52000378 519%prep
ecf377a3 520%setup -q
2ebfbf87 521%{?with_kerberos5:%patch100 -p1}
4946f6e5 522%patch0 -p1
1aca01a4 523%patch2 -p1
200ba837 524%patch3 -p1
8e00389d
ER
525%patch4 -p1
526%patch5 -p1
527%patch8 -p1
501aed94 528%patch6 -p1
108bb9ae 529%patch7 -p1
516496e1 530%{?with_hpn:%patch9 -p1}
8d59ede4 531%patch10 -p1
100234b3 532%patch11 -p1
35844bbb 533%patch12 -p1
92dc7c43 534%patch13 -p1
eefe27ae 535%patch14 -p1
52000378 536
a42c5034
ER
537%if "%{pld_release}" == "ac"
538# fix for missing x11.pc
539%{__sed} -i -e '/pkg-config/s/ x11//' contrib/Makefile
540%endif
541
afde20c1
AM
542# hack since arc4random from openbsd-compat needs symbols from libssh and vice versa
543sed -i -e 's#-lssh -lopenbsd-compat#-lssh -lopenbsd-compat -lssh#g' Makefile*
544
8e00389d
ER
545grep -rl /usr/libexec/openssh/ssh-ldap-helper . | xargs \
546%{__sed} -i -e 's,/usr/libexec/openssh/ssh-ldap-helper,%{_libexecdir}/ssh-ldap-helper,'
547
52000378 548%build
64f1c35c 549cp /usr/share/automake/config.sub .
0b24ec17 550%{__aclocal}
5c76eb87 551%{__autoconf}
501aed94 552%{__autoheader}
37aa5700 553CPPFLAGS="-DCHROOT"
52000378 554%configure \
c59fae24 555 PERL=%{__perl} \
26d23d17
JB
556 --disable-strip \
557 --enable-utmpx \
558 --enable-wtmpx \
93e2d77c 559 --with-4in6 \
26d23d17
JB
560 %{?with_audit:--with-audit=linux} \
561 --with-ipaddr-display \
4a5c0c7d 562 %{?with_kerberos5:--with-kerberos5=/usr} \
8e00389d 563 --with-ldap%{!?with_ldap:=no} \
26d23d17
JB
564 %{?with_libedit:--with-libedit} \
565 --with-mantype=man \
566 --with-md5-passwords \
567 --with-pam \
108bb9ae 568 --with-authorized-keys-command \
05fbd2e9 569 --with-pid-dir=%{_localstatedir}/run \
26d23d17
JB
570 --with-privsep-path=%{_privsepdir} \
571 %{?with_selinux:--with-selinux} \
572 --with-tcp-wrappers \
2ebfbf87 573%if "%{pld_release}" == "ac"
26d23d17 574 --with-xauth=/usr/X11R6/bin/xauth
2ebfbf87 575%else
26d23d17 576 --with-xauth=%{_bindir}/xauth
2ebfbf87 577%endif
82f989ae 578
b8002dec 579echo '#define LOGIN_PROGRAM "/bin/login"' >>config.h
f9bf943b 580
100832a0 581%{__make}
475ef6df 582
6ab60e34
AM
583%{?with_tests:%{__make} tests}
584
40cb2e83 585cd contrib
9cfed0b2 586%if %{with gnome}
40cb2e83
JB
587%{__make} gnome-ssh-askpass1 \
588 CC="%{__cc} %{rpmldflags} %{rpmcflags}"
589%endif
9cfed0b2 590%if %{with gtk}
40cb2e83
JB
591%{__make} gnome-ssh-askpass2 \
592 CC="%{__cc} %{rpmldflags} %{rpmcflags}"
593%endif
6fe24471
AF
594
595%install
596rm -rf $RPM_BUILD_ROOT
c0f446a0 597install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{init,pam.d,rc.d/init.d,sysconfig,security,env.d}} \
c75fc765 598 $RPM_BUILD_ROOT{%{_libexecdir}/ssh,%{schemadir},%{systemdunitdir}}
8a7ba6eb 599install -d $RPM_BUILD_ROOT/etc/{profile.d,X11/xinit/xinitrc.d}
52000378 600
9a2a459a
PG
601%{__make} install \
602 DESTDIR=$RPM_BUILD_ROOT
0d32b20f 603
486d736c 604bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
40cb2e83 605
c75fc765
JR
606cp -p %{SOURCE3} sshd.pam
607install -p %{SOURCE2} sshd.init
608
609%if "%{pld_release}" == "ac"
610# not present in ac, no point searching it
611%{__sed} -i -e '/pam_keyinit.so/d' sshd.pam
612# openssl on ac does not have OPENSSL_HAS_ECC
613%{__sed} -i -e '/ecdsa/d' sshd.init
614%endif
615
95191792 616install -p sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
55c2af60
ER
617cp -p sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
618cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/sshd
619cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/profile.d
486d736c 620ln -sf /etc/profile.d/ssh-agent.sh $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/ssh-agent.sh
55c2af60
ER
621cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}
622cp -p %{SOURCE7} $RPM_BUILD_ROOT%{schemadir}
623cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/init/sshd.conf
c0f446a0 624
c75fc765
JR
625%{__sed} -e 's|@@LIBEXECDIR@@|%{_libexecdir}|g' %{SOURCE9} >$RPM_BUILD_ROOT%{systemdunitdir}/sshd.service
626cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_libexecdir}/sshd-keygen
627
84b4a299
ER
628cp -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
629cp -p %{SOURCE12} $RPM_BUILD_ROOT%{systemdunitdir}
630
9cfed0b2 631%if %{with gnome}
55c2af60 632install -p contrib/gnome-ssh-askpass1 $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass
40cb2e83 633%endif
9cfed0b2 634%if %{with gtk}
55c2af60 635install -p contrib/gnome-ssh-askpass2 $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass
1d1e6997
PG
636%endif
637%if %{with gnome} || %{with gtk}
6157007b 638cat << 'EOF' >$RPM_BUILD_ROOT/etc/env.d/GNOME_SSH_ASKPASS_GRAB_SERVER
1d1e6997
PG
639#GNOME_SSH_ASKPASS_GRAB_SERVER="true"
640EOF
6157007b 641cat << 'EOF' >$RPM_BUILD_ROOT/etc/env.d/GNOME_SSH_ASKPASS_GRAB_POINTER
1d1e6997
PG
642#GNOME_SSH_ASKPASS_GRAB_POINTER="true"
643EOF
4ae0bc0d 644ln -s %{_libexecdir}/ssh/ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/ssh-askpass
40cb2e83 645%endif
6e70f4f7 646
55c2af60
ER
647install -p contrib/ssh-copy-id $RPM_BUILD_ROOT%{_bindir}
648cp -p contrib/ssh-copy-id.1 $RPM_BUILD_ROOT%{_mandir}/man1
0906c8d0 649
26d23d17 650%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
5f72fe6f 651echo ".so ssh.1" > $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
41897191 652
ffbc041f 653touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
643dc12f 654
b8002dec 655cat << 'EOF' > $RPM_BUILD_ROOT/etc/env.d/SSH_ASKPASS
1d1e6997
PG
656#SSH_ASKPASS="%{_libexecdir}/ssh-askpass"
657EOF
658
26d23d17 659%{__rm} $RPM_BUILD_ROOT%{_mandir}/README.openssh-non-english-man-pages
be063a4e 660%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/ldap.conf
92815192 661
6fe24471
AF
662%clean
663rm -rf $RPM_BUILD_ROOT
664
b259ae2c
ER
665%post clients
666%env_update
667
668%postun clients
669%env_update
670
671%post gnome-askpass
672%env_update
673
674%postun gnome-askpass
675%env_update
676
8a304ceb 677%pre server
0225d3b8 678%useradd -P %{name}-server -u 40 -d %{_privsepdir} -s /bin/false -c "OpenSSH PrivSep User" -g nobody sshd
4c8ae2f8 679
52000378 680%post server
d7fde396 681/sbin/chkconfig --add sshd
fb0e16d1 682%service sshd reload "OpenSSH Daemon"
40cb2e83
JB
683if ! grep -qs ssh /etc/security/passwd.conf ; then
684 umask 022
ec00afd0
JR
685 echo "ssh" >> /etc/security/passwd.conf
686fi
c75fc765
JR
687NORESTART=1
688%systemd_post sshd.service
6fe24471 689
52000378 690%preun server
d7fde396 691if [ "$1" = "0" ]; then
b054de44 692 %service sshd stop
d7fde396 693 /sbin/chkconfig --del sshd
694fi
c75fc765 695%systemd_preun sshd.service
6fe24471 696
9b604401
JB
697%postun server
698if [ "$1" = "0" ]; then
5f4ffc90 699 %userremove sshd
9b604401 700fi
c75fc765 701%systemd_reload
9b604401 702
c75fc765 703%triggerpostun server -- %{name}-server < 2:5.9p1-8
3906e3c0
ER
704# lpk.patch to ldap.patch
705if grep -qE '^(UseLPK|Lpk)' %{_sysconfdir}/sshd_config; then
706 echo >&2 "Migrating LPK patch to LDAP patch"
707 cp -f %{_sysconfdir}/sshd_config{,.rpmorig}
708 %{__sed} -i -e '
709 # disable old configs
710 # just UseLPK/LkpLdapConf supported for now
711 s/^UseLPK/## Obsolete &/
ac8426db 712 s/^Lpk/## Obsolete &/
3906e3c0 713 # Enable new ones, assumes /etc/ldap.conf defaults, see HOWTO.ldap-keys
fb0e16d1 714 /UseLPK/iAuthorizedKeysCommand %{_libexecdir}/ssh-ldap-wrapper
3906e3c0 715 ' %{_sysconfdir}/sshd_config
c75fc765
JR
716 if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
717 /bin/systemctl try-restart sshd.service || :
718 else
719 %service -q sshd reload
720 fi
3906e3c0 721fi
c75fc765 722%systemd_trigger sshd.service
76ae1815
JR
723if [ -x /bin/systemd_booted ] && /bin/systemd_booted; then
724%banner %{name}-server -e << EOF
725!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!
726! Native systemd support for sshd has been installed. !
727! Restarting sshd.service with systemctl WILL kill all !
728! active ssh sessions (daemon as such will be started). !
729!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
730EOF
731fi
3906e3c0 732
c0f446a0
JK
733%post server-upstart
734%upstart_post sshd
735
736%postun server-upstart
737%upstart_postun sshd
738
7073aeeb
JR
739%post -n openldap-schema-openssh-lpk
740%openldap_schema_register %{schemadir}/openssh-lpk.schema
741%service -q ldap restart
742
743%postun -n openldap-schema-openssh-lpk
744if [ "$1" = "0" ]; then
745 %openldap_schema_unregister %{schemadir}/openssh-lpk.schema
746 %service -q ldap restart
747fi
748
6fe24471 749%files
52000378 750%defattr(644,root,root,755)
afde20c1 751%doc TODO README OVERVIEW CREDITS Change*
a6eef44c 752%attr(755,root,root) %{_bindir}/ssh-key*
35844bbb 753%attr(755,root,root) %{_bindir}/ssh-vulnkey*
a6eef44c 754%{_mandir}/man1/ssh-key*.1*
35844bbb 755%{_mandir}/man1/ssh-vulnkey*.1*
52000378 756%dir %{_sysconfdir}
9df62d0f 757%dir %{_libexecdir}
52000378
AF
758
759%files clients
760%defattr(644,root,root,755)
96f686c2
JB
761%attr(755,root,root) %{_bindir}/ssh
762%attr(755,root,root) %{_bindir}/slogin
763%attr(755,root,root) %{_bindir}/sftp
764%attr(755,root,root) %{_bindir}/ssh-agent
765%attr(755,root,root) %{_bindir}/ssh-add
0906c8d0 766%attr(755,root,root) %{_bindir}/ssh-copy-id
96f686c2 767%attr(755,root,root) %{_bindir}/scp
794e0987
JB
768%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ssh_config
769%config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/SSH_ASKPASS
52000378
AF
770%{_mandir}/man1/scp.1*
771%{_mandir}/man1/ssh.1*
41897191 772%{_mandir}/man1/slogin.1*
a6eef44c 773%{_mandir}/man1/sftp.1*
52000378
AF
774%{_mandir}/man1/ssh-agent.1*
775%{_mandir}/man1/ssh-add.1*
0906c8d0 776%{_mandir}/man1/ssh-copy-id.1*
902cef13 777%{_mandir}/man5/ssh_config.5*
2b7669a6 778%lang(it) %{_mandir}/it/man1/ssh.1*
779%lang(it) %{_mandir}/it/man5/ssh_config.5*
780%lang(pl) %{_mandir}/pl/man1/scp.1*
781%lang(zh_CN) %{_mandir}/zh_CN/man1/scp.1*
ec82f607
JB
782
783# for host-based auth (suid required for accessing private host key)
784#%attr(4755,root,root) %{_libexecdir}/ssh-keysign
785#%{_mandir}/man8/ssh-keysign.8*
52000378 786
8a7ba6eb
AM
787%files clients-agent-profile_d
788%defattr(644,root,root,755)
789%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ssh-agent.conf
790%attr(755,root,root) /etc/profile.d/ssh-agent.sh
791
792%files clients-agent-xinitrc
793%defattr(644,root,root,755)
794%attr(755,root,root) /etc/X11/xinit/xinitrc.d/ssh-agent.sh
795
52000378
AF
796%files server
797%defattr(644,root,root,755)
798%attr(755,root,root) %{_sbindir}/sshd
a6eef44c 799%attr(755,root,root) %{_libexecdir}/sftp-server
ad852e00 800%attr(755,root,root) %{_libexecdir}/ssh-keysign
50835229 801%attr(755,root,root) %{_libexecdir}/ssh-pkcs11-helper
c75fc765 802%attr(755,root,root) %{_libexecdir}/sshd-keygen
52000378 803%{_mandir}/man8/sshd.8*
a6eef44c 804%{_mandir}/man8/sftp-server.8*
ad852e00 805%{_mandir}/man8/ssh-keysign.8*
50835229 806%{_mandir}/man8/ssh-pkcs11-helper.8*
902cef13 807%{_mandir}/man5/sshd_config.5*
78aa4c3c 808%{_mandir}/man5/moduli.5*
794e0987
JB
809%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sshd_config
810%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/sshd
634d69b4 811%attr(640,root,root) %{_sysconfdir}/moduli
52000378 812%attr(754,root,root) /etc/rc.d/init.d/sshd
794e0987
JB
813%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/sshd
814%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.sshd
c75fc765 815%{systemdunitdir}/sshd.service
84b4a299
ER
816%{systemdunitdir}/sshd.socket
817%{systemdunitdir}/sshd@.service
52000378 818
44144fb7
ER
819%if %{with ldap}
820%files server-ldap
821%defattr(644,root,root,755)
822%doc HOWTO.ldap-keys ldap.conf
823%attr(755,root,root) %{_libexecdir}/ssh-ldap-helper
824%attr(755,root,root) %{_libexecdir}/ssh-ldap-wrapper
825%{_mandir}/man5/ssh-ldap.conf.5*
826%{_mandir}/man8/ssh-ldap-helper.8*
827%endif
828
0d32b20f 829%if %{with gnome} || %{with gtk}
40cb2e83
JB
830%files gnome-askpass
831%defattr(644,root,root,755)
794e0987 832%config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/GNOME_SSH_ASKPASS*
40cb2e83
JB
833%dir %{_libexecdir}/ssh
834%attr(755,root,root) %{_libexecdir}/ssh/ssh-askpass
4ae0bc0d 835%attr(755,root,root) %{_libexecdir}/ssh-askpass
40cb2e83 836%endif
b32891d6
JR
837
838%if %{with ldap}
839%files -n openldap-schema-openssh-lpk
840%defattr(644,root,root,755)
841%{schemadir}/openssh-lpk.schema
842%endif
c0f446a0 843
4ec733f6 844%if "%{pld_release}" != "ti"
c0f446a0
JK
845%files server-upstart
846%defattr(644,root,root,755)
847%config(noreplace) %verify(not md5 mtime size) /etc/init/sshd.conf
4ec733f6 848%endif
This page took 0.260456 seconds and 4 git commands to generate.