]> git.pld-linux.org Git - packages/openssh.git/blob - openssh.spec
01b01f2191b0f3aac156352b5ab05c6c73c9ce3f
[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(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
200 Requires:       /bin/login
201 Requires:       util-linux
202 Obsoletes:      ssh-server
203
204 %description 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.
210
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).
214
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
217 your host.
218
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
222 servidor.
223
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.
229
230 Ten pakiet zawiera serwer sshd (do którego mog± ³±czyæ siê klienci
231 ssh).
232
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
236 host.
237
238 %description server -l ru
239 Ssh (Secure Shell) - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ "ÚÁÈÏÄÁ" (login) ÎÁ ÕÄÁÌÅÎÎÕÀ
240 ÍÁÛÉÎÕ É ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄ ÎÁ ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÅ.
241
242 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ sshd - "ÄÅÍÏÎ" Secure Shell. sshd - ÜÔÏ ÓÅÒ×ÅÒÎÁÑ
243 ÞÁÓÔØ ÐÒÏÔÏËÏÌÁ Secure Shell, ÐÏÚ×ÏÌÑÀÝÁÑ ËÌÉÅÎÔÁÍ ssh ÓÏÅÄÉÎÑÔØÓÑ Ó
244 ×ÁÛÉÍ ÈÏÓÔÏÍ.
245
246 %description server -l uk
247 Ssh (Secure Shell) - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ "ÚÁÈÏÄÕ" (login) ÄϠצÄÄÁÌÅÎϧ
248 ÍÁÛÉÎÉ ÔÁ ÄÌÑ ×ÉËÏÎÁÎÎÑ ËÏÍÁÎÄ ÎÁ ×¦ÄÄÁÌÅΦʠÍÁÛÉΦ.
249
250 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ sshd - "ÄÅÍÏÎ" Secure Shell. sshd - ÃÅ ÓÅÒ×ÅÒÎÁ
251 ÞÁÓÔÉÎÁ ÐÒÏÔÏËÏÌÕ Secure Shell, ÑËÁ ÄÏÚ×ÏÌѤ Ë̦¤ÎÔÁÍ ssh Ú×'ÑÚÕ×ÁÔÉÓØ
252 Ú ×ÁÛÉÍ ÈÏÓÔÏÍ.
253
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
266
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.
273
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).
277
278 This package contains the GNOME passphrase dialog.
279
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.
283
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.
289
290 Ten pakiet zawiera ,,odpytywacz has³a'' dla GNOME.
291
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.
295
296 %description gnome-askpass -l ru
297 Ssh (Secure Shell) - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ "ÚÁÈÏÄÁ" (login) ÎÁ ÕÄÁÌÅÎÎÕÀ
298 ÍÁÛÉÎÕ É ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄ ÎÁ ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÅ.
299
300 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÄÉÁÌÏÇ ××ÏÄÁ ËÌÀÞÅ×ÏÊ ÆÒÁÚÙ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÐÏÄ
301 GNOME.
302
303 %description gnome-askpass -l uk
304 Ssh (Secure Shell) - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ "ÚÁÈÏÄÕ" (login) ÄϠצÄÄÁÌÅÎϧ
305 ÍÁÛÉÎÉ ÔÁ ÄÌÑ ×ÉËÏÎÁÎÎÑ ËÏÍÁÎÄ ÎÁ ×¦ÄÄÁÌÅΦʠÍÁÛÉΦ.
306
307 ãÅÊ ÐÁËÅԠͦÓÔÉÔؠĦÁÌÏÇ ××ÏÄÕ ËÌÀÞÏ×ϧ ÆÒÁÚÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎѠЦÄ
308 GNOME.
309
310 %prep
311 %setup  -q
312 %patch0 -p1
313 %patch1 -p1
314 %patch2 -p1
315
316 %build
317 aclocal
318 %{__autoconf}
319
320 %configure \
321         %{!?_without_gnome:--with-gnome-askpass} \
322         --with-pam \
323         --with-mantype=man \
324         --with-md5-passwords \
325         --with-ipaddr-display \
326         --with-4in6 \
327         --disable-suid-ssh \
328         --with-tcp-wrappers \
329         --with-privsep-path=%{_privsepdir} \
330         --with-pid-dir=%{_localstatedir}/run
331
332 echo '#define LOGIN_PROGRAM           "/bin/login"' >>config.h
333
334 %{__make}
335
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` }
339
340 %install
341 rm -rf $RPM_BUILD_ROOT
342 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{pam.d,rc.d/init.d,sysconfig,security}}
343
344 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
345
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}
354
355 rm -f   $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
356 echo ".so ssh.1" > $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
357
358 touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
359
360 %clean
361 rm -rf $RPM_BUILD_ROOT
362
363 %pre server
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
367                 exit 1
368         fi
369 else
370         /usr/sbin/useradd -u 40 -d %{_privsepdir} -s /bin/false -M -r -c "OpenSSH PrivSep User" -g nobody sshd 1>&2
371 fi
372         
373 %post server
374 /sbin/chkconfig --add sshd
375 if [ -f /var/lock/subsys/sshd ]; then
376         /etc/rc.d/init.d/sshd restart 1>&2
377 else
378         echo "Run \"/etc/rc.d/init.d/sshd start\" to start openssh daemon."
379 fi
380 if ! grep ssh /etc/security/passwd.conf >/dev/null 2>&1 ; then
381         echo "ssh" >> /etc/security/passwd.conf
382 fi
383
384 %preun server
385 if [ "$1" = "0" ]; then
386         if [ -f /var/lock/subsys/sshd ]; then
387                 /etc/rc.d/init.d/sshd stop 1>&2
388         fi
389         /sbin/chkconfig --del sshd
390 fi
391
392 %postun server
393 if [ "$1" = "0" ]; then
394         /usr/sbin/userdel sshd
395 fi
396
397 %files
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*
402 %dir %{_sysconfdir}
403
404 %files clients
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*
420
421 %files server
422 %defattr(644,root,root,755)
423 %attr(755,root,root) %{_sbindir}/sshd
424 %attr(755,root,root) %{_libexecdir}/sftp-server
425 %dir %{_libexecdir}
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
435
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}
This page took 0.089123 seconds and 2 git commands to generate.