]> git.pld-linux.org Git - packages/openssh.git/blob - openssh.spec
This commit was manufactured by cvs2git to create branch 'PAM_GAMES'.
[packages/openssh.git] / openssh.spec
1 #
2 # Conditional build:
3 # _without_gnome - without gnome-askpass utility
4
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)
11 Name:           openssh
12 Version:        3.2.3p1
13 Release:        0.5
14 License:        BSD
15 Group:          Applications/Networking
16 Source0:        ftp://ftp.ca.openbsd.org/pub/OpenBSD/OpenSSH/portable/%{name}-%{version}.tar.gz
17 Source1:        %{name}d.conf
18 Source2:        %{name}.conf
19 Source3:        %{name}d.init
20 Source4:        %{name}d.pamd
21 Source5:        %{name}.sysconfig
22 Source6:        passwd.pamd
23 Patch0:         %{name}-no_libnsl.patch
24 Patch1:         %{name}-set_12.patch
25 Patch2:         %{name}-linux-ipv6.patch
26 Patch3:         openssh-pam-limits.patch
27 URL:            http://www.openssh.com/
28 BuildRequires:  XFree86-devel
29 BuildRequires:  autoconf
30 BuildRequires:  automake
31 %{!?_without_gnome:BuildRequires: gnome-libs-devel}
32 BuildRequires:  openssl-devel >= 0.9.6a
33 BuildRequires:  pam-devel
34 BuildRequires:  zlib-devel
35 BuildRequires:  libwrap-devel
36 BuildRequires:  perl
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 Prereq:         openssl
39 Obsoletes:      ssh
40
41 %define         _sysconfdir     /etc/ssh
42 %define         _libexecdir     %{_libdir}/%{name}
43
44 %description
45 Ssh (Secure Shell) a program for logging into a remote machine and for
46 executing commands in a remote machine. It is intended to replace
47 rlogin and rsh, and provide secure encrypted communications between
48 two untrusted hosts over an insecure network. X11 connections and
49 arbitrary TCP/IP ports can also be forwarded over the secure channel.
50
51 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
52 it up to date in terms of security and features, as well as removing
53 all patented algorithms to seperate libraries (OpenSSL).
54
55 This package includes the core files necessary for both the OpenSSH
56 client and server. To make this package useful, you should also
57 install openssh-clients, openssh-server, or both.
58
59 %description -l es
60 SSH es un programa para accesar y ejecutar órdenes en computadores
61 remotos. Sustituye rlogin y rsh, y suministra un canal de comunicación
62 seguro entre dos servidores en una red insegura. Conexiones X11 y
63 puertas TCP/IP arbitrárias también pueden ser usadas por el canal
64 seguro.
65
66 OpenSSH es el resultado del trabajo del equipo de OpenBSD para
67 continuar la última versión gratuita de SSH, actualizándolo en
68 términos de seguridad y recursos,así también eliminando todos los
69 algoritmos patentados y colocándolos en bibliotecas separadas
70 (OpenSSL).
71
72 Este paquete contiene "port" para Linux de OpenSSH. Se debe instalar
73 también el paquete openssh-clients u openssh-server o ambos.
74
75 %description -l pl
76 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
77 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
78 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
79 pomiedzy dwoma hostami.
80
81 %description -l pt_BR
82 SSH é um programa para acessar e executar comandos em máquinas
83 remotas. Ele substitui rlogin e rsh, e provem um canal de comunicação
84 seguro entre dois hosts em uma rede insegura. Conexões X11 e portas
85 TCP/IP arbitrárias também podem ser usadas pelo canal seguro.
86
87 OpenSSH é o resultado do trabalho da equipe do OpenBSD em continuar a
88 última versão gratuita do SSH, atualizando-o em termos de segurança e
89 recursos, assim como removendo todos os algoritmos patenteados e
90 colocando-os em bibliotecas separadas (OpenSSL).
91
92 Esse pacote contém o "port" pra Linux do OpenSSH. Você deve instalar
93 também ou o pacote openssh-clients, ou o openssh-server, ou ambos.
94
95 %description -l ru
96 Ssh (Secure Shell) - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ "ÚÁÈÏÄÁ" (login) ÎÁ ÕÄÁÌÅÎÎÕÀ
97 ÍÁÛÉÎÕ É ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄ ÎÁ ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÅ. ïÎÁ ÐÒÅÄÎÁÚÎÁÞÅÎÁ
98 ÄÌÑ ÚÁÍÅÎÙ rlogin É rsh É ÏÂÅÓÐÅÞÉ×ÁÅÔ ÂÅÚÏÐÁÓÎÕÀ ÛÉÆÒÏ×ÁÎÎÕÀ
99 ËÏÍÍÕÎÉËÁÃÉÀ ÍÅÖÄÕ Ä×ÕÍÑ ÈÏÓÔÁÍÉ × ÓÅÔÉ, Ñ×ÌÑÀÝÅÊÓÑ ÎÅÂÅÚÏÐÁÓÎÏÊ.
100 óÏÅÄÉÎÅÎÉÑ X11 É ÌÀÂÙÅ ÐÏÒÔÙ TCP/IP ÍÏÇÕÔ ÔÁËÖÅ ÂÙÔØ ÐÒÏ×ÅÄÅÎÙ ÞÅÒÅÚ
101 ÂÅÚÏÐÁÓÎÙÊ ËÁÎÁÌ.
102
103 OpenSSH - ÜÔÏ ÐÅÒÅÄÅÌËÁ ËÏÍÁÎÄÏÊ ÒÁÚÒÁÂÏÔÞÉËÏ× OpenBSD ÐÏÓÌÅÄÎÅÊ
104 Ó×ÏÂÏÄÎÏÊ ×ÅÒÓÉÉ SSH, ÄÏ×ÅÄÅÎÎÁÑ ÄÏ ÓÏ×ÒÅÍÅÎÎÏÇÏ ÓÏÓÔÏÑÎÉÑ × ÔÅÒÍÉÎÁÈ
105 ÕÒÏ×ÎÑ ÂÅÚÏÐÁÓÎÏÓÔÉ É ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ ×ÏÚÍÏÖÎÏÓÔÅÊ. ÷ÓÅ ÐÁÔÅÎÔÏ×ÁÎÎÙÅ
106 ÁÌÇÏÒÉÔÍÙ ×ÙÎÅÓÅÎÙ × ÏÔÄÅÌØÎÙÅ ÂÉÂÌÉÏÔÅËÉ (OpenSSL).
107
108 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ËÁË ÄÌÑ ËÌÉÅÎÔÁ, ÔÁË É ÄÌÑ
109 ÓÅÒ×ÅÒÁ OpenSSH. ÷ÁÍ ÎÕÖÎÏ ÂÕÄÅÔ ÕÓÔÁÎÏ×ÉÔØ ÅÝÅ openssh-clients,
110 openssh-server, ÉÌÉ ÏÂÁ ÐÁËÅÔÁ.
111
112 %description -l uk
113 Ssh (Secure Shell) - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ "ÚÁÈÏÄÕ" (login) ÄϠצÄÄÁÌÅÎϧ
114 ÍÁÛÉÎÉ ÔÁ ÄÌÑ ×ÉËÏÎÁÎÎÑ ËÏÍÁÎÄ ÎÁ ×¦ÄÄÁÌÅΦʠÍÁÛÉΦ. ÷ÏÎÁ ÐÒÉÚÎÁÞÅÎÁ
115 ÄÌÑ ÚÁͦÎÉ rlogin ÔÁ rsh ¦ ÚÁÂÅÚÐÅÞÕ¤ ÂÅÚÐÅÞÎÕ ÛÉÆÒÏ×ÁÎÕ ËÏÍÕΦËÁæÀ
116 ͦ֠Ä×ÏÍÁ ÈÏÓÔÁÍÉ × ÍÅÒÅÖ¦, ÑËÁ ÎÅ ¤ ÂÅÚÐÅÞÎÏÀ. ú'¤ÄÎÁÎÎÑ X11 ÔÁ
117 ÄÏצÌØΦ ÐÏÒÔÉ TCP/IP ÍÏÖÕÔØ ÔÁËÏÖ ÂÕÔÉ ÐÒÏ×ÅÄÅΦ ÞÅÒÅÚ ÂÅÚÐÅÞÎÉÊ
118 ËÁÎÁÌ.
119
120 OpenSSH - ÃÅ ÐÅÒÅÒÏÂËÁ ËÏÍÁÎÄÏÀ ÒÏÚÒÏÂÎÉ˦נOpenBSD ÏÓÔÁÎÎØϧ ×¦ÌØÎϧ
121 ×ÅÒÓ¦§ SSH, ÄÏ×ÅÄÅÎÁ ÄÏ ÓÕÞÁÓÎÏÇÏ ÓÔÁÎÕ × ÔÅÒͦÎÁÈ Ò¦×ÎÑ ÂÅÚÐÅËÉ ÔÁ
122 ЦÄÔÒÉÍÕ×ÁÎÉÈ ÍÏÖÌÉ×ÏÓÔÅÊ. ÷Ó¦ ÐÁÔÅÎÔÏ×ÁΦ ÁÌÇÏÒÉÔÍÉ ×ÉÎÅÓÅΦ ÄÏ
123 ÏËÒÅÍÉȠ¦Â̦ÏÔÅË (OpenSSL).
124
125 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÑË ÄÌÑ Ë̦¤ÎÔÁ, ÔÁË ¦ ÄÌÑ ÓÅÒ×ÅÒÁ
126 OpenSSH. ÷ÁÍ ÐÏÔÒ¦ÂÎÏ ÂÕÄÅ ÝÅ ×ÓÔÁÎÏ×ÉÔÉ openssh-clients,
127 openssh-server, ÞÉ ÏÂÉÄ×Á ÐÁËÅÔÉ.
128
129 %package clients
130 Summary:        OpenSSH Secure Shell protocol clients
131 Summary(es):    Clientes de OpenSSH
132 Summary(pl):    Klienci protoko³u Secure Shell
133 Summary(pt_BR): Clientes do OpenSSH
134 Summary(ru):    OpenSSH - ËÌÉÅÎÔÙ ÐÒÏÔÏËÏÌÁ Secure Shell
135 Summary(uk):    OpenSSH - Ë̦¤ÎÔÉ ÐÒÏÔÏËÏÌÕ Secure Shell
136 Requires:       openssh
137 Group:          Applications/Networking
138 Obsoletes:      ssh-clients
139 Requires:       %{name} = %{version}
140
141 %description 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.
147
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).
151
152 This package includes the clients necessary to make encrypted
153 connections to SSH servers.
154
155 %description clients -l es
156 Este paquete incluye los clientes que se necesitan para hacer
157 conexiones codificadas con servidores SSH.
158
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.
164
165 Ten pakiet zawiera klientów s³u¿±cych do ³±czenia siê z serwerami SSH.
166
167 %description clients -l pt_BR
168 Esse pacote inclui os clientes necessários para fazer conexões
169 encriptadas com servidores SSH.
170
171 %description clients -l ru
172 Ssh (Secure Shell) - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ "ÚÁÈÏÄÁ" (login) ÎÁ ÕÄÁÌÅÎÎÕÀ
173 ÍÁÛÉÎÕ É ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄ ÎÁ ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÅ.
174
175 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÐÒÏÇÒÁÍÍÙ-ËÌÉÅÎÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÕÓÔÁÎÏ×ÌÅÎÉÑ
176 ÚÁÛÉÆÒÏ×ÁÎÎÙÈ ÓÏÅÄÉÎÅÎÉÊ Ó ÓÅÒ×ÅÒÁÍÉ SSH.
177
178 %description clients -l uk
179 Ssh (Secure Shell) - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ "ÚÁÈÏÄÕ" (login) ÄϠצÄÄÁÌÅÎϧ
180 ÍÁÛÉÎÉ ÔÁ ÄÌÑ ×ÉËÏÎÁÎÎÑ ËÏÍÁÎÄ ÎÁ ×¦ÄÄÁÌÅΦʠÍÁÛÉΦ.
181
182 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÐÒÏÇÒÁÍÉ-Ë̦¤ÎÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ×ÓÔÁÎÏ×ÌÅÎÎÑ
183 ÚÁÛÉÆÒÏ×ÁÎÉÈ Ú'¤ÄÎÁÎØ Ú ÓÅÒ×ÅÒÁÍÉ SSH.
184
185 %package server
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 Requires:       openssh
193 Requires:       chkconfig >= 0.9
194 Group:          Networking/Daemons
195 Obsoletes:      ssh-server
196 Requires:       /bin/login
197 Requires:       util-linux
198 Prereq:         rc-scripts
199 Prereq:         /sbin/chkconfig
200 Prereq:         %{name} = %{version}
201
202 %description server
203 Ssh (Secure Shell) a program for logging into a remote machine and for
204 executing commands in a remote machine. It is intended to replace
205 rlogin and rsh, and provide secure encrypted communications between
206 two untrusted hosts over an insecure network. X11 connections and
207 arbitrary TCP/IP ports can also be forwarded over the secure channel.
208
209 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
210 it up to date in terms of security and features, as well as removing
211 all patented algorithms to seperate libraries (OpenSSL).
212
213 This package contains the secure shell daemon. The sshd is the server
214 part of the secure shell protocol and allows ssh clients to connect to
215 your host.
216
217 %description server -l es
218 Este paquete contiene el servidor SSH. sshd es la parte servidor del
219 protocolo secure shell y permite que clientes ssh se conecten a su
220 servidor.
221
222 %description server -l pl
223 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
224 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
225 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
226 pomiedzy dwoma hostami.
227
228 Ten pakiet zawiera serwer sshd (do którego mog± ³±czyæ siê klienci
229 ssh).
230
231 %description server -l pt_BR
232 Esse pacote contém o servidor SSH. O sshd é a parte servidor do
233 protocolo secure shell e permite que clientes ssh se conectem ao seu
234 host.
235
236 %description server -l ru
237 Ssh (Secure Shell) - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ "ÚÁÈÏÄÁ" (login) ÎÁ ÕÄÁÌÅÎÎÕÀ
238 ÍÁÛÉÎÕ É ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄ ÎÁ ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÅ.
239
240 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ sshd - "ÄÅÍÏÎ" Secure Shell. sshd - ÜÔÏ ÓÅÒ×ÅÒÎÁÑ
241 ÞÁÓÔØ ÐÒÏÔÏËÏÌÁ Secure Shell, ÐÏÚ×ÏÌÑÀÝÁÑ ËÌÉÅÎÔÁÍ ssh ÓÏÅÄÉÎÑÔØÓÑ Ó
242 ×ÁÛÉÍ ÈÏÓÔÏÍ.
243
244 %description server -l uk
245 Ssh (Secure Shell) - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ "ÚÁÈÏÄÕ" (login) ÄϠצÄÄÁÌÅÎϧ
246 ÍÁÛÉÎÉ ÔÁ ÄÌÑ ×ÉËÏÎÁÎÎÑ ËÏÍÁÎÄ ÎÁ ×¦ÄÄÁÌÅΦʠÍÁÛÉΦ.
247
248 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ sshd - "ÄÅÍÏÎ" Secure Shell. sshd - ÃÅ ÓÅÒ×ÅÒÎÁ
249 ÞÁÓÔÉÎÁ ÐÒÏÔÏËÏÌÕ Secure Shell, ÑËÁ ÄÏÚ×ÏÌѤ Ë̦¤ÎÔÁÍ ssh Ú×'ÑÚÕ×ÁÔÉÓØ
250 Ú ×ÁÛÉÍ ÈÏÓÔÏÍ.
251
252 %package gnome-askpass
253 Summary:        OpenSSH GNOME passphrase dialog
254 Summary(es):    Diálogo para introducción de passphrase para GNOME
255 Summary(pl):    Odpytywacz has³a OpenSSH dla GNOME
256 Summary(pt_BR): Diálogo para entrada de passphrase para GNOME
257 Summary(ru):    OpenSSH - ÄÉÁÌÏÇ ××ÏÄÁ ËÌÀÞÅ×ÏÊ ÆÒÁÚÙ (passphrase) ÄÌÑ GNOME
258 Summary(uk):    OpenSSH - Ä¦ÁÌÏÇ ××ÏÄÕ ËÌÀÞÏ×ϧ ÆÒÁÚÉ (passphrase) ÄÌÑ GNOME
259 Group:          Applications/Networking
260 Requires:       %{name} = %{version}
261 Obsoletes:      ssh-extras
262 Obsoletes:      ssh-askpass
263 Obsoletes:      openssh-askpass
264
265 %description gnome-askpass
266 Ssh (Secure Shell) a program for logging into a remote machine and for
267 executing commands in a remote machine. It is intended to replace
268 rlogin and rsh, and provide secure encrypted communications between
269 two untrusted hosts over an insecure network. X11 connections and
270 arbitrary TCP/IP ports can also be forwarded over the secure channel.
271
272 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
273 it up to date in terms of security and features, as well as removing
274 all patented algorithms to seperate libraries (OpenSSL).
275
276 This package contains the GNOME passphrase dialog.
277
278 %description gnome-askpass -l es
279 Este paquete contiene un programa que abre una caja de diálogo para
280 entrada de passphrase en GNOME.
281
282 %description gnome-askpass -l pl
283 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
284 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
285 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
286 pomiedzy dwoma hostami.
287
288 Ten pakiet zawiera ,,odpytywacz has³a'' dla GNOME.
289
290 %description gnome-askpass -l pt_BR
291 Esse pacote contém um programa que abre uma caixa de diálogo para
292 entrada de passphrase no GNOME.
293
294 %description gnome-askpass -l ru
295 Ssh (Secure Shell) - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ "ÚÁÈÏÄÁ" (login) ÎÁ ÕÄÁÌÅÎÎÕÀ
296 ÍÁÛÉÎÕ É ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄ ÎÁ ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÅ.
297
298 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÄÉÁÌÏÇ ××ÏÄÁ ËÌÀÞÅ×ÏÊ ÆÒÁÚÙ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÐÏÄ
299 GNOME.
300
301 %description gnome-askpass -l uk
302 Ssh (Secure Shell) - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ "ÚÁÈÏÄÕ" (login) ÄϠצÄÄÁÌÅÎϧ
303 ÍÁÛÉÎÉ ÔÁ ÄÌÑ ×ÉËÏÎÁÎÎÑ ËÏÍÁÎÄ ÎÁ ×¦ÄÄÁÌÅΦʠÍÁÛÉΦ.
304
305 ãÅÊ ÐÁËÅԠͦÓÔÉÔؠĦÁÌÏÇ ××ÏÄÕ ËÌÀÞÏ×ϧ ÆÒÁÚÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎѠЦÄ
306 GNOME.
307
308 %prep
309 %setup  -q
310 %patch0 -p1
311 %patch1 -p1
312 %patch2 -p1
313 %patch3 -p1
314
315 %build
316 aclocal
317 %{__autoconf}
318
319 %configure \
320         %{!?_without_gnome:--with-gnome-askpass} \
321         --with-pam \
322         --with-mantype=man \
323         --with-md5-passwords \
324         --with-ipaddr-display \
325         --with-4in6 \
326         --disable-suid-ssh \
327         --with-tcp-wrappers \
328         --with-pid-dir=%{_localstatedir}/run
329
330 echo '#define LOGIN_PROGRAM           "/bin/login"' >>config.h
331
332 %{__make}
333
334 %{!?_without_gnome:cd contrib && %{__cc} %{rpmcflags} `gnome-config --cflags gnome gnomeui gtk` } \
335 %{!?_without_gnome:gnome-ssh-askpass.c -o gnome-ssh-askpass } \
336 %{!?_without_gnome:`gnome-config --libs gnome gnomeui gtk` }
337
338 %install
339 rm -rf $RPM_BUILD_ROOT
340 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{pam.d,rc.d/init.d,sysconfig,security}}
341
342 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
343
344 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/sshd
345 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/passwdssh
346 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/sshd
347 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
348 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ssh_config
349 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sshd_config
350 install -d $RPM_BUILD_ROOT%{_libexecdir}/ssh
351 %{!?_without_gnome:install contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass}
352
353 rm -f   $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
354 echo ".so ssh.1" > $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
355
356 touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
357
358 %clean
359 rm -rf $RPM_BUILD_ROOT
360
361 %post server
362 /sbin/chkconfig --add sshd
363 if [ -f /var/lock/subsys/sshd ]; then
364         /etc/rc.d/init.d/sshd restart 1>&2
365 else
366         echo "Run \"/etc/rc.d/init.d/sshd start\" to start openssh daemon."
367 fi
368 if ! grep ssh /etc/security/passwd.conf >/dev/null 2>&1 ; then
369         echo "ssh" >> /etc/security/passwd.conf
370 fi
371
372 %preun server
373 if [ "$1" = "0" ]; then
374         if [ -f /var/lock/subsys/sshd ]; then
375                 /etc/rc.d/init.d/sshd stop 1>&2
376         fi
377         /sbin/chkconfig --del sshd
378 fi
379
380 %files
381 %defattr(644,root,root,755)
382 %doc *.RNG TODO README OVERVIEW CREDITS Change*
383 %attr(755,root,root) %{_bindir}/ssh-key*
384 %{_mandir}/man1/ssh-key*.1*
385 %dir %{_sysconfdir}
386
387 %files clients
388 %defattr(644,root,root,755)
389 %attr(0755,root,root) %{_bindir}/ssh
390 %attr(0755,root,root) %{_bindir}/slogin
391 %attr(0755,root,root) %{_bindir}/sftp
392 %attr(0755,root,root) %{_bindir}/ssh-agent
393 %attr(0755,root,root) %{_bindir}/ssh-add
394 %attr(755,root,root) %{_bindir}/scp
395 %{_mandir}/man1/scp.1*
396 %{_mandir}/man1/ssh.1*
397 %{_mandir}/man1/slogin.1*
398 %{_mandir}/man1/sftp.1*
399 %{_mandir}/man1/ssh-agent.1*
400 %{_mandir}/man1/ssh-add.1*
401 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ssh_config
402
403 %files server
404 %defattr(644,root,root,755)
405 %attr(755,root,root) %{_sbindir}/sshd
406 %attr(755,root,root) %{_libexecdir}/sftp-server
407 %dir %{_libexecdir}
408 %{_mandir}/man8/sshd.8*
409 %{_mandir}/man8/sftp-server.8*
410 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sshd_config
411 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/sshd
412 %attr(640,root,root) %{_sysconfdir}/moduli
413 %attr(754,root,root) /etc/rc.d/init.d/sshd
414 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sshd
415 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.sshd
416
417 %{!?_without_gnome:%files gnome-askpass}
418 %{!?_without_gnome:%defattr(644,root,root,755)}
419 %{!?_without_gnome:%dir %{_libexecdir}/ssh}
420 %{!?_without_gnome:%attr(755,root,root) %{_libexecdir}/ssh/ssh-askpass}
This page took 0.058257 seconds and 3 git commands to generate.