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