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