3 # _without_gnome - without gnome-askpass utility
5 Summary: OpenSSH free Secure Shell (SSH) implementation
6 Summary(es): Implementación libre de SSH
7 Summary(pl): Publicznie dostêpna implementacja bezpiecznego shella (SSH)
8 Summary(pt_BR): Implementação livre do SSH
9 Summary(ru): OpenSSH - Ó×ÏÂÏÄÎÁÑ ÒÅÁÌÉÚÁÃÉÑ ÐÒÏÔÏËÏÌÁ Secure Shell (SSH)
10 Summary(uk): OpenSSH - צÌØÎÁ ÒÅÁ̦ÚÁÃ¦Ñ ÐÒÏÔÏËÏÌÕ Secure Shell (SSH)
15 Group: Applications/Networking
16 Source0: ftp://ftp.ca.openbsd.org/pub/OpenBSD/OpenSSH/portable/%{name}-%{version}.tar.gz
17 Source1: %{name}d.conf
19 Source3: %{name}d.init
20 Source4: %{name}d.pamd
21 Source5: %{name}.sysconfig
23 Patch0: %{name}-no_libnsl.patch
24 Patch1: %{name}-set_12.patch
25 Patch2: %{name}-linux-ipv6.patch
26 URL: http://www.openssh.com/
27 BuildRequires: XFree86-devel
28 BuildRequires: autoconf
29 BuildRequires: automake
30 %{!?_without_gnome:BuildRequires: gnome-libs-devel}
31 BuildRequires: libwrap-devel
32 BuildRequires: openssl-devel >= 0.9.6a
33 BuildRequires: pam-devel
35 BuildRequires: zlib-devel
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 Requires: FHS >= 2.1-24
41 %define _sysconfdir /etc/ssh
42 %define _libexecdir %{_libdir}/%{name}
43 %define _privsepdir /usr/share/empty
46 Ssh (Secure Shell) a program for logging into a remote machine and for
47 executing commands in a remote machine. It is intended to replace
48 rlogin and rsh, and provide secure encrypted communications between
49 two untrusted hosts over an insecure network. X11 connections and
50 arbitrary TCP/IP ports can also be forwarded over the secure channel.
52 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
53 it up to date in terms of security and features, as well as removing
54 all patented algorithms to seperate libraries (OpenSSL).
56 This package includes the core files necessary for both the OpenSSH
57 client and server. To make this package useful, you should also
58 install openssh-clients, openssh-server, or both.
61 SSH es un programa para accesar y ejecutar órdenes en computadores
62 remotos. Sustituye rlogin y rsh, y suministra un canal de comunicación
63 seguro entre dos servidores en una red insegura. Conexiones X11 y
64 puertas TCP/IP arbitrárias también pueden ser usadas por el canal
67 OpenSSH es el resultado del trabajo del equipo de OpenBSD para
68 continuar la última versión gratuita de SSH, actualizándolo en
69 términos de seguridad y recursos,así también eliminando todos los
70 algoritmos patentados y colocándolos en bibliotecas separadas
73 Este paquete contiene "port" para Linux de OpenSSH. Se debe instalar
74 también el paquete openssh-clients u openssh-server o ambos.
77 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
78 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
79 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
80 pomiedzy dwoma hostami.
83 SSH é um programa para acessar e executar comandos em máquinas
84 remotas. Ele substitui rlogin e rsh, e provem um canal de comunicação
85 seguro entre dois hosts em uma rede insegura. Conexões X11 e portas
86 TCP/IP arbitrárias também podem ser usadas pelo canal seguro.
88 OpenSSH é o resultado do trabalho da equipe do OpenBSD em continuar a
89 última versão gratuita do SSH, atualizando-o em termos de segurança e
90 recursos, assim como removendo todos os algoritmos patenteados e
91 colocando-os em bibliotecas separadas (OpenSSL).
93 Esse pacote contém o "port" pra Linux do OpenSSH. Você deve instalar
94 também ou o pacote openssh-clients, ou o openssh-server, ou ambos.
97 Ssh (Secure Shell) - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ "ÚÁÈÏÄÁ" (login) ÎÁ ÕÄÁÌÅÎÎÕÀ
98 ÍÁÛÉÎÕ É ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄ ÎÁ ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÅ. ïÎÁ ÐÒÅÄÎÁÚÎÁÞÅÎÁ
99 ÄÌÑ ÚÁÍÅÎÙ rlogin É rsh É ÏÂÅÓÐÅÞÉ×ÁÅÔ ÂÅÚÏÐÁÓÎÕÀ ÛÉÆÒÏ×ÁÎÎÕÀ
100 ËÏÍÍÕÎÉËÁÃÉÀ ÍÅÖÄÕ Ä×ÕÍÑ ÈÏÓÔÁÍÉ × ÓÅÔÉ, Ñ×ÌÑÀÝÅÊÓÑ ÎÅÂÅÚÏÐÁÓÎÏÊ.
101 óÏÅÄÉÎÅÎÉÑ X11 É ÌÀÂÙÅ ÐÏÒÔÙ TCP/IP ÍÏÇÕÔ ÔÁËÖÅ ÂÙÔØ ÐÒÏ×ÅÄÅÎÙ ÞÅÒÅÚ
104 OpenSSH - ÜÔÏ ÐÅÒÅÄÅÌËÁ ËÏÍÁÎÄÏÊ ÒÁÚÒÁÂÏÔÞÉËÏ× OpenBSD ÐÏÓÌÅÄÎÅÊ
105 Ó×ÏÂÏÄÎÏÊ ×ÅÒÓÉÉ SSH, ÄÏ×ÅÄÅÎÎÁÑ ÄÏ ÓÏ×ÒÅÍÅÎÎÏÇÏ ÓÏÓÔÏÑÎÉÑ × ÔÅÒÍÉÎÁÈ
106 ÕÒÏ×ÎÑ ÂÅÚÏÐÁÓÎÏÓÔÉ É ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ ×ÏÚÍÏÖÎÏÓÔÅÊ. ÷ÓÅ ÐÁÔÅÎÔÏ×ÁÎÎÙÅ
107 ÁÌÇÏÒÉÔÍÙ ×ÙÎÅÓÅÎÙ × ÏÔÄÅÌØÎÙÅ ÂÉÂÌÉÏÔÅËÉ (OpenSSL).
109 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ËÁË ÄÌÑ ËÌÉÅÎÔÁ, ÔÁË É ÄÌÑ
110 ÓÅÒ×ÅÒÁ OpenSSH. ÷ÁÍ ÎÕÖÎÏ ÂÕÄÅÔ ÕÓÔÁÎÏ×ÉÔØ ÅÝÅ openssh-clients,
111 openssh-server, ÉÌÉ ÏÂÁ ÐÁËÅÔÁ.
114 Ssh (Secure Shell) - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ "ÚÁÈÏÄÕ" (login) ÄÏ ×¦ÄÄÁÌÅÎϧ
115 ÍÁÛÉÎÉ ÔÁ ÄÌÑ ×ÉËÏÎÁÎÎÑ ËÏÍÁÎÄ ÎÁ צÄÄÁÌÅÎ¦Ê ÍÁÛÉΦ. ÷ÏÎÁ ÐÒÉÚÎÁÞÅÎÁ
116 ÄÌÑ ÚÁͦÎÉ rlogin ÔÁ rsh ¦ ÚÁÂÅÚÐÅÞÕ¤ ÂÅÚÐÅÞÎÕ ÛÉÆÒÏ×ÁÎÕ ËÏÍÕΦËÁæÀ
117 Í¦Ö Ä×ÏÍÁ ÈÏÓÔÁÍÉ × ÍÅÒÅÖ¦, ÑËÁ ÎÅ ¤ ÂÅÚÐÅÞÎÏÀ. ú'¤ÄÎÁÎÎÑ X11 ÔÁ
118 ÄÏצÌØΦ ÐÏÒÔÉ TCP/IP ÍÏÖÕÔØ ÔÁËÏÖ ÂÕÔÉ ÐÒÏ×ÅÄÅΦ ÞÅÒÅÚ ÂÅÚÐÅÞÎÉÊ
121 OpenSSH - ÃÅ ÐÅÒÅÒÏÂËÁ ËÏÍÁÎÄÏÀ ÒÏÚÒÏÂÎÉË¦× OpenBSD ÏÓÔÁÎÎØϧ צÌØÎϧ
122 ×ÅÒÓ¦§ SSH, ÄÏ×ÅÄÅÎÁ ÄÏ ÓÕÞÁÓÎÏÇÏ ÓÔÁÎÕ × ÔÅÒͦÎÁÈ Ò¦×ÎÑ ÂÅÚÐÅËÉ ÔÁ
123 ЦÄÔÒÉÍÕ×ÁÎÉÈ ÍÏÖÌÉ×ÏÓÔÅÊ. ÷Ó¦ ÐÁÔÅÎÔÏ×ÁΦ ÁÌÇÏÒÉÔÍÉ ×ÉÎÅÓÅΦ ÄÏ
124 ÏËÒÅÍÉÈ Â¦Â̦ÏÔÅË (OpenSSL).
126 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÑË ÄÌÑ Ë̦¤ÎÔÁ, ÔÁË ¦ ÄÌÑ ÓÅÒ×ÅÒÁ
127 OpenSSH. ÷ÁÍ ÐÏÔÒ¦ÂÎÏ ÂÕÄÅ ÝÅ ×ÓÔÁÎÏ×ÉÔÉ openssh-clients,
128 openssh-server, ÞÉ ÏÂÉÄ×Á ÐÁËÅÔÉ.
131 Summary: OpenSSH Secure Shell protocol clients
132 Summary(es): Clientes de OpenSSH
133 Summary(pl): Klienci protoko³u Secure Shell
134 Summary(pt_BR): Clientes do OpenSSH
135 Summary(ru): OpenSSH - ËÌÉÅÎÔÙ ÐÒÏÔÏËÏÌÁ Secure Shell
136 Summary(uk): OpenSSH - Ë̦¤ÎÔÉ ÐÒÏÔÏËÏÌÕ Secure Shell
137 Group: Applications/Networking
138 Requires: %{name} = %{version}
139 Obsoletes: ssh-clients
142 Ssh (Secure Shell) a program for logging into a remote machine and for
143 executing commands in a remote machine. It is intended to replace
144 rlogin and rsh, and provide secure encrypted communications between
145 two untrusted hosts over an insecure network. X11 connections and
146 arbitrary TCP/IP ports can also be forwarded over the secure channel.
148 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
149 it up to date in terms of security and features, as well as removing
150 all patented algorithms to seperate libraries (OpenSSL).
152 This package includes the clients necessary to make encrypted
153 connections to SSH servers.
155 %description clients -l es
156 Este paquete incluye los clientes que se necesitan para hacer
157 conexiones codificadas con servidores SSH.
159 %description clients -l pl
160 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
161 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
162 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
163 pomiedzy dwoma hostami.
165 Ten pakiet zawiera klientów s³u¿±cych do ³±czenia siê z serwerami SSH.
167 %description clients -l pt_BR
168 Esse pacote inclui os clientes necessários para fazer conexões
169 encriptadas com servidores SSH.
171 %description clients -l ru
172 Ssh (Secure Shell) - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ "ÚÁÈÏÄÁ" (login) ÎÁ ÕÄÁÌÅÎÎÕÀ
173 ÍÁÛÉÎÕ É ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄ ÎÁ ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÅ.
175 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÐÒÏÇÒÁÍÍÙ-ËÌÉÅÎÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÕÓÔÁÎÏ×ÌÅÎÉÑ
176 ÚÁÛÉÆÒÏ×ÁÎÎÙÈ ÓÏÅÄÉÎÅÎÉÊ Ó ÓÅÒ×ÅÒÁÍÉ SSH.
178 %description clients -l uk
179 Ssh (Secure Shell) - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ "ÚÁÈÏÄÕ" (login) ÄÏ ×¦ÄÄÁÌÅÎϧ
180 ÍÁÛÉÎÉ ÔÁ ÄÌÑ ×ÉËÏÎÁÎÎÑ ËÏÍÁÎÄ ÎÁ צÄÄÁÌÅÎ¦Ê ÍÁÛÉΦ.
182 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÐÒÏÇÒÁÍÉ-Ë̦¤ÎÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ×ÓÔÁÎÏ×ÌÅÎÎÑ
183 ÚÁÛÉÆÒÏ×ÁÎÉÈ Ú'¤ÄÎÁÎØ Ú ÓÅÒ×ÅÒÁÍÉ SSH.
186 Summary: OpenSSH Secure Shell protocol server (sshd)
187 Summary(es): Servidor OpenSSH para comunicaciones codificadas
188 Summary(pl): Serwer protoko³u Secure Shell (sshd)
189 Summary(pt_BR): Servidor OpenSSH para comunicações encriptadas
190 Summary(ru): OpenSSH - ÓÅÒ×ÅÒ ÐÒÏÔÏËÏÌÁ Secure Shell (sshd)
191 Summary(uk): OpenSSH - ÓÅÒ×ÅÒ ÐÒÏÔÏËÏÌÕ Secure Shell (sshd)
192 Group: Networking/Daemons
193 PreReq: %{name} = %{version}
195 Requires(pre): /bin/id
196 Requires(pre): /usr/sbin/useradd
197 Requires(post): /sbin/chkconfig
198 Requires(post): chkconfig >= 0.9
199 Requires(postun): /usr/sbin/userdel
202 Obsoletes: ssh-server
205 Ssh (Secure Shell) a program for logging into a remote machine and for
206 executing commands in a remote machine. It is intended to replace
207 rlogin and rsh, and provide secure encrypted communications between
208 two untrusted hosts over an insecure network. X11 connections and
209 arbitrary TCP/IP ports can also be forwarded over the secure channel.
211 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
212 it up to date in terms of security and features, as well as removing
213 all patented algorithms to seperate libraries (OpenSSL).
215 This package contains the secure shell daemon. The sshd is the server
216 part of the secure shell protocol and allows ssh clients to connect to
219 %description server -l es
220 Este paquete contiene el servidor SSH. sshd es la parte servidor del
221 protocolo secure shell y permite que clientes ssh se conecten a su
224 %description server -l pl
225 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
226 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
227 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
228 pomiedzy dwoma hostami.
230 Ten pakiet zawiera serwer sshd (do którego mog± ³±czyæ siê klienci
233 %description server -l pt_BR
234 Esse pacote contém o servidor SSH. O sshd é a parte servidor do
235 protocolo secure shell e permite que clientes ssh se conectem ao seu
238 %description server -l ru
239 Ssh (Secure Shell) - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ "ÚÁÈÏÄÁ" (login) ÎÁ ÕÄÁÌÅÎÎÕÀ
240 ÍÁÛÉÎÕ É ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄ ÎÁ ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÅ.
242 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ sshd - "ÄÅÍÏÎ" Secure Shell. sshd - ÜÔÏ ÓÅÒ×ÅÒÎÁÑ
243 ÞÁÓÔØ ÐÒÏÔÏËÏÌÁ Secure Shell, ÐÏÚ×ÏÌÑÀÝÁÑ ËÌÉÅÎÔÁÍ ssh ÓÏÅÄÉÎÑÔØÓÑ Ó
246 %description server -l uk
247 Ssh (Secure Shell) - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ "ÚÁÈÏÄÕ" (login) ÄÏ ×¦ÄÄÁÌÅÎϧ
248 ÍÁÛÉÎÉ ÔÁ ÄÌÑ ×ÉËÏÎÁÎÎÑ ËÏÍÁÎÄ ÎÁ צÄÄÁÌÅÎ¦Ê ÍÁÛÉΦ.
250 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ sshd - "ÄÅÍÏÎ" Secure Shell. sshd - ÃÅ ÓÅÒ×ÅÒÎÁ
251 ÞÁÓÔÉÎÁ ÐÒÏÔÏËÏÌÕ Secure Shell, ÑËÁ ÄÏÚ×ÏÌѤ Ë̦¤ÎÔÁÍ ssh Ú×'ÑÚÕ×ÁÔÉÓØ
254 %package gnome-askpass
255 Summary: OpenSSH GNOME passphrase dialog
256 Summary(es): Diálogo para introducción de passphrase para GNOME
257 Summary(pl): Odpytywacz has³a OpenSSH dla GNOME
258 Summary(pt_BR): Diálogo para entrada de passphrase para GNOME
259 Summary(ru): OpenSSH - ÄÉÁÌÏÇ ××ÏÄÁ ËÌÀÞÅ×ÏÊ ÆÒÁÚÙ (passphrase) ÄÌÑ GNOME
260 Summary(uk): OpenSSH - ĦÁÌÏÇ ××ÏÄÕ ËÌÀÞÏ×ϧ ÆÒÁÚÉ (passphrase) ÄÌÑ GNOME
261 Group: Applications/Networking
262 Requires: %{name} = %{version}
263 Obsoletes: ssh-extras
264 Obsoletes: ssh-askpass
265 Obsoletes: openssh-askpass
267 %description gnome-askpass
268 Ssh (Secure Shell) a program for logging into a remote machine and for
269 executing commands in a remote machine. It is intended to replace
270 rlogin and rsh, and provide secure encrypted communications between
271 two untrusted hosts over an insecure network. X11 connections and
272 arbitrary TCP/IP ports can also be forwarded over the secure channel.
274 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
275 it up to date in terms of security and features, as well as removing
276 all patented algorithms to seperate libraries (OpenSSL).
278 This package contains the GNOME passphrase dialog.
280 %description gnome-askpass -l es
281 Este paquete contiene un programa que abre una caja de diálogo para
282 entrada de passphrase en GNOME.
284 %description gnome-askpass -l pl
285 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
286 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
287 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
288 pomiedzy dwoma hostami.
290 Ten pakiet zawiera ,,odpytywacz has³a'' dla GNOME.
292 %description gnome-askpass -l pt_BR
293 Esse pacote contém um programa que abre uma caixa de diálogo para
294 entrada de passphrase no GNOME.
296 %description gnome-askpass -l ru
297 Ssh (Secure Shell) - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ "ÚÁÈÏÄÁ" (login) ÎÁ ÕÄÁÌÅÎÎÕÀ
298 ÍÁÛÉÎÕ É ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄ ÎÁ ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÅ.
300 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÄÉÁÌÏÇ ××ÏÄÁ ËÌÀÞÅ×ÏÊ ÆÒÁÚÙ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÐÏÄ
303 %description gnome-askpass -l uk
304 Ssh (Secure Shell) - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ "ÚÁÈÏÄÕ" (login) ÄÏ ×¦ÄÄÁÌÅÎϧ
305 ÍÁÛÉÎÉ ÔÁ ÄÌÑ ×ÉËÏÎÁÎÎÑ ËÏÍÁÎÄ ÎÁ צÄÄÁÌÅÎ¦Ê ÍÁÛÉΦ.
307 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ä¦ÁÌÏÇ ××ÏÄÕ ËÌÀÞÏ×ϧ ÆÒÁÚÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ Ð¦Ä
321 %{!?_without_gnome:--with-gnome-askpass} \
324 --with-md5-passwords \
325 --with-ipaddr-display \
328 --with-tcp-wrappers \
329 --with-privsep-path=%{_privsepdir} \
330 --with-pid-dir=%{_localstatedir}/run
332 echo '#define LOGIN_PROGRAM "/bin/login"' >>config.h
336 %{!?_without_gnome:cd contrib && %{__cc} %{rpmcflags} `gnome-config --cflags gnome gnomeui gtk` } \
337 %{!?_without_gnome:gnome-ssh-askpass.c -o gnome-ssh-askpass } \
338 %{!?_without_gnome:`gnome-config --libs gnome gnomeui gtk` }
341 rm -rf $RPM_BUILD_ROOT
342 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{pam.d,rc.d/init.d,sysconfig,security}}
344 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
346 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/sshd
347 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/passwdssh
348 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/sshd
349 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
350 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ssh_config
351 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sshd_config
352 install -d $RPM_BUILD_ROOT%{_libexecdir}/ssh
353 %{!?_without_gnome:install contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass}
355 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
356 echo ".so ssh.1" > $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
358 touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
361 rm -rf $RPM_BUILD_ROOT
364 if [ -n "`id -u sshd 2>/dev/null`" ]; then
365 if [ "`id -u sshd`" != "40" ]; then
366 echo "Error: user sshd doesn't have uid=40. Correct this before installing ssh server." 1>&2
370 /usr/sbin/useradd -u 40 -d %{_privsepdir} -s /bin/false -M -r -c "OpenSSH PrivSep User" -g nobody sshd 1>&2
374 /sbin/chkconfig --add sshd
375 if [ -f /var/lock/subsys/sshd ]; then
376 /etc/rc.d/init.d/sshd restart 1>&2
378 echo "Run \"/etc/rc.d/init.d/sshd start\" to start openssh daemon."
380 if ! grep ssh /etc/security/passwd.conf >/dev/null 2>&1 ; then
381 echo "ssh" >> /etc/security/passwd.conf
385 if [ "$1" = "0" ]; then
386 if [ -f /var/lock/subsys/sshd ]; then
387 /etc/rc.d/init.d/sshd stop 1>&2
389 /sbin/chkconfig --del sshd
393 if [ "$1" = "0" ]; then
394 /usr/sbin/userdel sshd
398 %defattr(644,root,root,755)
399 %doc *.RNG TODO README OVERVIEW CREDITS Change*
400 %attr(755,root,root) %{_bindir}/ssh-key*
401 %{_mandir}/man1/ssh-key*.1*
405 %defattr(644,root,root,755)
406 %attr(0755,root,root) %{_bindir}/ssh
407 %attr(0755,root,root) %{_bindir}/slogin
408 %attr(0755,root,root) %{_bindir}/sftp
409 %attr(0755,root,root) %{_bindir}/ssh-agent
410 %attr(0755,root,root) %{_bindir}/ssh-add
411 %attr(0755,root,root) %{_bindir}/scp
412 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ssh_config
413 %{_mandir}/man1/scp.1*
414 %{_mandir}/man1/ssh.1*
415 %{_mandir}/man1/slogin.1*
416 %{_mandir}/man1/sftp.1*
417 %{_mandir}/man1/ssh-agent.1*
418 %{_mandir}/man1/ssh-add.1*
419 %{_mandir}/man5/ssh_config.5*
422 %defattr(644,root,root,755)
423 %attr(755,root,root) %{_sbindir}/sshd
424 %attr(755,root,root) %{_libexecdir}/sftp-server
426 %{_mandir}/man8/sshd.8*
427 %{_mandir}/man8/sftp-server.8*
428 %{_mandir}/man5/sshd_config.5*
429 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sshd_config
430 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/sshd
431 %attr(640,root,root) %{_sysconfdir}/moduli
432 %attr(754,root,root) /etc/rc.d/init.d/sshd
433 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sshd
434 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.sshd
436 %{!?_without_gnome:%files gnome-askpass}
437 %{!?_without_gnome:%defattr(644,root,root,755)}
438 %{!?_without_gnome:%dir %{_libexecdir}/ssh}
439 %{!?_without_gnome:%attr(755,root,root) %{_libexecdir}/ssh/ssh-askpass}