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