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