]> git.pld-linux.org Git - packages/openssh.git/blob - openssh.spec
- moved privsep dir to FHS-compliant location (R: new FHS); NFY
[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:  libwrap-devel
32 BuildRequires:  openssl-devel >= 0.9.6a
33 BuildRequires:  pam-devel
34 BuildRequires:  perl
35 BuildRequires:  zlib-devel
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 Prereq:         openssl
38 Requires:       FHS >= 2.1-24
39 Obsoletes:      ssh
40
41 %define         _sysconfdir     /etc/ssh
42 %define         _libexecdir     %{_libdir}/%{name}
43 %define         _privsepdir     /usr/share/empty
44
45 %description
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.
51
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).
55
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.
59
60 %description -l es
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
65 seguro.
66
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
71 (OpenSSL).
72
73 Este paquete contiene "port" para Linux de OpenSSH. Se debe instalar
74 también el paquete openssh-clients u openssh-server o ambos.
75
76 %description -l pl
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.
81
82 %description -l pt_BR
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.
87
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).
92
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.
95
96 %description -l ru
97 Ssh (Secure Shell) - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ "ÚÁÈÏÄÁ" (login) ÎÁ ÕÄÁÌÅÎÎÕÀ
98 ÍÁÛÉÎÕ É ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄ ÎÁ ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÅ. ïÎÁ ÐÒÅÄÎÁÚÎÁÞÅÎÁ
99 ÄÌÑ ÚÁÍÅÎÙ rlogin É rsh É ÏÂÅÓÐÅÞÉ×ÁÅÔ ÂÅÚÏÐÁÓÎÕÀ ÛÉÆÒÏ×ÁÎÎÕÀ
100 ËÏÍÍÕÎÉËÁÃÉÀ ÍÅÖÄÕ Ä×ÕÍÑ ÈÏÓÔÁÍÉ × ÓÅÔÉ, Ñ×ÌÑÀÝÅÊÓÑ ÎÅÂÅÚÏÐÁÓÎÏÊ.
101 óÏÅÄÉÎÅÎÉÑ X11 É ÌÀÂÙÅ ÐÏÒÔÙ TCP/IP ÍÏÇÕÔ ÔÁËÖÅ ÂÙÔØ ÐÒÏ×ÅÄÅÎÙ ÞÅÒÅÚ
102 ÂÅÚÏÐÁÓÎÙÊ ËÁÎÁÌ.
103
104 OpenSSH - ÜÔÏ ÐÅÒÅÄÅÌËÁ ËÏÍÁÎÄÏÊ ÒÁÚÒÁÂÏÔÞÉËÏ× OpenBSD ÐÏÓÌÅÄÎÅÊ
105 Ó×ÏÂÏÄÎÏÊ ×ÅÒÓÉÉ SSH, ÄÏ×ÅÄÅÎÎÁÑ ÄÏ ÓÏ×ÒÅÍÅÎÎÏÇÏ ÓÏÓÔÏÑÎÉÑ × ÔÅÒÍÉÎÁÈ
106 ÕÒÏ×ÎÑ ÂÅÚÏÐÁÓÎÏÓÔÉ É ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ ×ÏÚÍÏÖÎÏÓÔÅÊ. ÷ÓÅ ÐÁÔÅÎÔÏ×ÁÎÎÙÅ
107 ÁÌÇÏÒÉÔÍÙ ×ÙÎÅÓÅÎÙ × ÏÔÄÅÌØÎÙÅ ÂÉÂÌÉÏÔÅËÉ (OpenSSL).
108
109 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ËÁË ÄÌÑ ËÌÉÅÎÔÁ, ÔÁË É ÄÌÑ
110 ÓÅÒ×ÅÒÁ OpenSSH. ÷ÁÍ ÎÕÖÎÏ ÂÕÄÅÔ ÕÓÔÁÎÏ×ÉÔØ ÅÝÅ openssh-clients,
111 openssh-server, ÉÌÉ ÏÂÁ ÐÁËÅÔÁ.
112
113 %description -l uk
114 Ssh (Secure Shell) - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ "ÚÁÈÏÄÕ" (login) ÄϠצÄÄÁÌÅÎϧ
115 ÍÁÛÉÎÉ ÔÁ ÄÌÑ ×ÉËÏÎÁÎÎÑ ËÏÍÁÎÄ ÎÁ ×¦ÄÄÁÌÅΦʠÍÁÛÉΦ. ÷ÏÎÁ ÐÒÉÚÎÁÞÅÎÁ
116 ÄÌÑ ÚÁͦÎÉ rlogin ÔÁ rsh ¦ ÚÁÂÅÚÐÅÞÕ¤ ÂÅÚÐÅÞÎÕ ÛÉÆÒÏ×ÁÎÕ ËÏÍÕΦËÁæÀ
117 ͦ֠Ä×ÏÍÁ ÈÏÓÔÁÍÉ × ÍÅÒÅÖ¦, ÑËÁ ÎÅ ¤ ÂÅÚÐÅÞÎÏÀ. ú'¤ÄÎÁÎÎÑ X11 ÔÁ
118 ÄÏצÌØΦ ÐÏÒÔÉ TCP/IP ÍÏÖÕÔØ ÔÁËÏÖ ÂÕÔÉ ÐÒÏ×ÅÄÅΦ ÞÅÒÅÚ ÂÅÚÐÅÞÎÉÊ
119 ËÁÎÁÌ.
120
121 OpenSSH - ÃÅ ÐÅÒÅÒÏÂËÁ ËÏÍÁÎÄÏÀ ÒÏÚÒÏÂÎÉ˦נOpenBSD ÏÓÔÁÎÎØϧ ×¦ÌØÎϧ
122 ×ÅÒÓ¦§ SSH, ÄÏ×ÅÄÅÎÁ ÄÏ ÓÕÞÁÓÎÏÇÏ ÓÔÁÎÕ × ÔÅÒͦÎÁÈ Ò¦×ÎÑ ÂÅÚÐÅËÉ ÔÁ
123 ЦÄÔÒÉÍÕ×ÁÎÉÈ ÍÏÖÌÉ×ÏÓÔÅÊ. ÷Ó¦ ÐÁÔÅÎÔÏ×ÁΦ ÁÌÇÏÒÉÔÍÉ ×ÉÎÅÓÅΦ ÄÏ
124 ÏËÒÅÍÉȠ¦Â̦ÏÔÅË (OpenSSL).
125
126 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÑË ÄÌÑ Ë̦¤ÎÔÁ, ÔÁË ¦ ÄÌÑ ÓÅÒ×ÅÒÁ
127 OpenSSH. ÷ÁÍ ÐÏÔÒ¦ÂÎÏ ÂÕÄÅ ÝÅ ×ÓÔÁÎÏ×ÉÔÉ openssh-clients,
128 openssh-server, ÞÉ ÏÂÉÄ×Á ÐÁËÅÔÉ.
129
130 %package clients
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
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 Group:          Networking/Daemons
193 PreReq:         %{name} = %{version}
194 PreReq:         rc-scripts
195 Requires(post): /sbin/chkconfig
196 Requires(post): chkconfig >= 0.9
197 Requires:       /bin/login
198 Requires:       util-linux
199 Obsoletes:      ssh-server
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=%{_privsepdir} \
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 $RPM_BUILD_ROOT%{_libexecdir}/ssh
350 %{!?_without_gnome:install contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass}
351
352 rm -f   $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
353 echo ".so ssh.1" > $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
354
355 touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
356
357 %clean
358 rm -rf $RPM_BUILD_ROOT
359
360 %pre server
361 %{_sbindir}/groupadd -r -g %{sshd_gid} sshd 2>/dev/null || :
362 %{_sbindir}/useradd -d %{_privsepdir} -s /bin/false -u %{sshd_uid} \
363         -g sshd -M -r sshd 2>/dev/null || :
364         
365 %post server
366 /sbin/chkconfig --add sshd
367 if [ -f /var/lock/subsys/sshd ]; then
368         /etc/rc.d/init.d/sshd restart 1>&2
369 else
370         echo "Run \"/etc/rc.d/init.d/sshd start\" to start openssh daemon."
371 fi
372 if ! grep ssh /etc/security/passwd.conf >/dev/null 2>&1 ; then
373         echo "ssh" >> /etc/security/passwd.conf
374 fi
375
376 %preun server
377 if [ "$1" = "0" ]; then
378         if [ -f /var/lock/subsys/sshd ]; then
379                 /etc/rc.d/init.d/sshd stop 1>&2
380         fi
381         /sbin/chkconfig --del sshd
382 fi
383
384 %files
385 %defattr(644,root,root,755)
386 %doc *.RNG TODO README OVERVIEW CREDITS Change*
387 %attr(755,root,root) %{_bindir}/ssh-key*
388 %{_mandir}/man1/ssh-key*.1*
389 %dir %{_sysconfdir}
390
391 %files clients
392 %defattr(644,root,root,755)
393 %attr(0755,root,root) %{_bindir}/ssh
394 %attr(0755,root,root) %{_bindir}/slogin
395 %attr(0755,root,root) %{_bindir}/sftp
396 %attr(0755,root,root) %{_bindir}/ssh-agent
397 %attr(0755,root,root) %{_bindir}/ssh-add
398 %attr(0755,root,root) %{_bindir}/scp
399 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ssh_config
400 %{_mandir}/man1/scp.1*
401 %{_mandir}/man1/ssh.1*
402 %{_mandir}/man1/slogin.1*
403 %{_mandir}/man1/sftp.1*
404 %{_mandir}/man1/ssh-agent.1*
405 %{_mandir}/man1/ssh-add.1*
406 %{_mandir}/man5/ssh_config.5*
407
408 %files server
409 %defattr(644,root,root,755)
410 %attr(755,root,root) %{_sbindir}/sshd
411 %attr(755,root,root) %{_libexecdir}/sftp-server
412 %dir %{_libexecdir}
413 %{_mandir}/man8/sshd.8*
414 %{_mandir}/man8/sftp-server.8*
415 %{_mandir}/man5/sshd_config.5*
416 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sshd_config
417 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/sshd
418 %attr(640,root,root) %{_sysconfdir}/moduli
419 %attr(754,root,root) /etc/rc.d/init.d/sshd
420 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sshd
421 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.sshd
422
423 %{!?_without_gnome:%files gnome-askpass}
424 %{!?_without_gnome:%defattr(644,root,root,755)}
425 %{!?_without_gnome:%dir %{_libexecdir}/ssh}
426 %{!?_without_gnome:%attr(755,root,root) %{_libexecdir}/ssh/ssh-askpass}
This page took 0.065045 seconds and 4 git commands to generate.