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