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