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