]> git.pld-linux.org Git - packages/openssh.git/blob - openssh.spec
- updated config files (removed obsolete entries, added comments about new ones)
[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.4p1
13 Release:        3
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 Patch3:         %{name}-pseudo-mmap.patch
27 URL:            http://www.openssh.com/
28 BuildRequires:  XFree86-devel
29 BuildRequires:  autoconf
30 BuildRequires:  automake
31 %{!?_without_gnome:BuildRequires: gnome-libs-devel}
32 BuildRequires:  libwrap-devel
33 BuildRequires:  openssl-devel >= 0.9.6a
34 BuildRequires:  pam-devel
35 BuildRequires:  perl
36 BuildRequires:  zlib-devel
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 Prereq:         openssl
39 Requires:       FHS >= 2.1-24
40 Obsoletes:      ssh
41
42 %define         _sysconfdir     /etc/ssh
43 %define         _libexecdir     %{_libdir}/%{name}
44 %define         _privsepdir     /usr/share/empty
45
46 %description
47 Ssh (Secure Shell) a program for logging into a remote machine and for
48 executing commands in a remote machine. It is intended to replace
49 rlogin and rsh, and provide secure encrypted communications between
50 two untrusted hosts over an insecure network. X11 connections and
51 arbitrary TCP/IP ports can also be forwarded over the secure channel.
52
53 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
54 it up to date in terms of security and features, as well as removing
55 all patented algorithms to seperate libraries (OpenSSL).
56
57 This package includes the core files necessary for both the OpenSSH
58 client and server. To make this package useful, you should also
59 install openssh-clients, openssh-server, or both.
60
61 %description -l es
62 SSH es un programa para accesar y ejecutar órdenes en computadores
63 remotos. Sustituye rlogin y rsh, y suministra un canal de comunicación
64 seguro entre dos servidores en una red insegura. Conexiones X11 y
65 puertas TCP/IP arbitrárias también pueden ser usadas por el canal
66 seguro.
67
68 OpenSSH es el resultado del trabajo del equipo de OpenBSD para
69 continuar la última versión gratuita de SSH, actualizándolo en
70 términos de seguridad y recursos,así también eliminando todos los
71 algoritmos patentados y colocándolos en bibliotecas separadas
72 (OpenSSL).
73
74 Este paquete contiene "port" para Linux de OpenSSH. Se debe instalar
75 también el paquete openssh-clients u openssh-server o ambos.
76
77 %description -l pl
78 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
79 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
80 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
81 pomiedzy dwoma hostami.
82
83 %description -l pt_BR
84 SSH é um programa para acessar e executar comandos em máquinas
85 remotas. Ele substitui rlogin e rsh, e provem um canal de comunicação
86 seguro entre dois hosts em uma rede insegura. Conexões X11 e portas
87 TCP/IP arbitrárias também podem ser usadas pelo canal seguro.
88
89 OpenSSH é o resultado do trabalho da equipe do OpenBSD em continuar a
90 última versão gratuita do SSH, atualizando-o em termos de segurança e
91 recursos, assim como removendo todos os algoritmos patenteados e
92 colocando-os em bibliotecas separadas (OpenSSL).
93
94 Esse pacote contém o "port" pra Linux do OpenSSH. Você deve instalar
95 também ou o pacote openssh-clients, ou o openssh-server, ou ambos.
96
97 %description -l ru
98 Ssh (Secure Shell) - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ "ÚÁÈÏÄÁ" (login) ÎÁ ÕÄÁÌÅÎÎÕÀ
99 ÍÁÛÉÎÕ É ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄ ÎÁ ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÅ. ïÎÁ ÐÒÅÄÎÁÚÎÁÞÅÎÁ
100 ÄÌÑ ÚÁÍÅÎÙ rlogin É rsh É ÏÂÅÓÐÅÞÉ×ÁÅÔ ÂÅÚÏÐÁÓÎÕÀ ÛÉÆÒÏ×ÁÎÎÕÀ
101 ËÏÍÍÕÎÉËÁÃÉÀ ÍÅÖÄÕ Ä×ÕÍÑ ÈÏÓÔÁÍÉ × ÓÅÔÉ, Ñ×ÌÑÀÝÅÊÓÑ ÎÅÂÅÚÏÐÁÓÎÏÊ.
102 óÏÅÄÉÎÅÎÉÑ X11 É ÌÀÂÙÅ ÐÏÒÔÙ TCP/IP ÍÏÇÕÔ ÔÁËÖÅ ÂÙÔØ ÐÒÏ×ÅÄÅÎÙ ÞÅÒÅÚ
103 ÂÅÚÏÐÁÓÎÙÊ ËÁÎÁÌ.
104
105 OpenSSH - ÜÔÏ ÐÅÒÅÄÅÌËÁ ËÏÍÁÎÄÏÊ ÒÁÚÒÁÂÏÔÞÉËÏ× OpenBSD ÐÏÓÌÅÄÎÅÊ
106 Ó×ÏÂÏÄÎÏÊ ×ÅÒÓÉÉ SSH, ÄÏ×ÅÄÅÎÎÁÑ ÄÏ ÓÏ×ÒÅÍÅÎÎÏÇÏ ÓÏÓÔÏÑÎÉÑ × ÔÅÒÍÉÎÁÈ
107 ÕÒÏ×ÎÑ ÂÅÚÏÐÁÓÎÏÓÔÉ É ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ ×ÏÚÍÏÖÎÏÓÔÅÊ. ÷ÓÅ ÐÁÔÅÎÔÏ×ÁÎÎÙÅ
108 ÁÌÇÏÒÉÔÍÙ ×ÙÎÅÓÅÎÙ × ÏÔÄÅÌØÎÙÅ ÂÉÂÌÉÏÔÅËÉ (OpenSSL).
109
110 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ËÁË ÄÌÑ ËÌÉÅÎÔÁ, ÔÁË É ÄÌÑ
111 ÓÅÒ×ÅÒÁ OpenSSH. ÷ÁÍ ÎÕÖÎÏ ÂÕÄÅÔ ÕÓÔÁÎÏ×ÉÔØ ÅÝÅ openssh-clients,
112 openssh-server, ÉÌÉ ÏÂÁ ÐÁËÅÔÁ.
113
114 %description -l uk
115 Ssh (Secure Shell) - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ "ÚÁÈÏÄÕ" (login) ÄϠצÄÄÁÌÅÎϧ
116 ÍÁÛÉÎÉ ÔÁ ÄÌÑ ×ÉËÏÎÁÎÎÑ ËÏÍÁÎÄ ÎÁ ×¦ÄÄÁÌÅΦʠÍÁÛÉΦ. ÷ÏÎÁ ÐÒÉÚÎÁÞÅÎÁ
117 ÄÌÑ ÚÁͦÎÉ rlogin ÔÁ rsh ¦ ÚÁÂÅÚÐÅÞÕ¤ ÂÅÚÐÅÞÎÕ ÛÉÆÒÏ×ÁÎÕ ËÏÍÕΦËÁæÀ
118 ͦ֠Ä×ÏÍÁ ÈÏÓÔÁÍÉ × ÍÅÒÅÖ¦, ÑËÁ ÎÅ ¤ ÂÅÚÐÅÞÎÏÀ. ú'¤ÄÎÁÎÎÑ X11 ÔÁ
119 ÄÏצÌØΦ ÐÏÒÔÉ TCP/IP ÍÏÖÕÔØ ÔÁËÏÖ ÂÕÔÉ ÐÒÏ×ÅÄÅΦ ÞÅÒÅÚ ÂÅÚÐÅÞÎÉÊ
120 ËÁÎÁÌ.
121
122 OpenSSH - ÃÅ ÐÅÒÅÒÏÂËÁ ËÏÍÁÎÄÏÀ ÒÏÚÒÏÂÎÉ˦נOpenBSD ÏÓÔÁÎÎØϧ ×¦ÌØÎϧ
123 ×ÅÒÓ¦§ SSH, ÄÏ×ÅÄÅÎÁ ÄÏ ÓÕÞÁÓÎÏÇÏ ÓÔÁÎÕ × ÔÅÒͦÎÁÈ Ò¦×ÎÑ ÂÅÚÐÅËÉ ÔÁ
124 ЦÄÔÒÉÍÕ×ÁÎÉÈ ÍÏÖÌÉ×ÏÓÔÅÊ. ÷Ó¦ ÐÁÔÅÎÔÏ×ÁΦ ÁÌÇÏÒÉÔÍÉ ×ÉÎÅÓÅΦ ÄÏ
125 ÏËÒÅÍÉȠ¦Â̦ÏÔÅË (OpenSSL).
126
127 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÑË ÄÌÑ Ë̦¤ÎÔÁ, ÔÁË ¦ ÄÌÑ ÓÅÒ×ÅÒÁ
128 OpenSSH. ÷ÁÍ ÐÏÔÒ¦ÂÎÏ ÂÕÄÅ ÝÅ ×ÓÔÁÎÏ×ÉÔÉ openssh-clients,
129 openssh-server, ÞÉ ÏÂÉÄ×Á ÐÁËÅÔÉ.
130
131 %package clients
132 Summary:        OpenSSH Secure Shell protocol clients
133 Summary(es):    Clientes de OpenSSH
134 Summary(pl):    Klienci protoko³u Secure Shell
135 Summary(pt_BR): Clientes do OpenSSH
136 Summary(ru):    OpenSSH - ËÌÉÅÎÔÙ ÐÒÏÔÏËÏÌÁ Secure Shell
137 Summary(uk):    OpenSSH - Ë̦¤ÎÔÉ ÐÒÏÔÏËÏÌÕ Secure Shell
138 Group:          Applications/Networking
139 Requires:       %{name} = %{version}
140 Obsoletes:      ssh-clients
141
142 %description clients
143 Ssh (Secure Shell) a program for logging into a remote machine and for
144 executing commands in a remote machine. It is intended to replace
145 rlogin and rsh, and provide secure encrypted communications between
146 two untrusted hosts over an insecure network. X11 connections and
147 arbitrary TCP/IP ports can also be forwarded over the secure channel.
148
149 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
150 it up to date in terms of security and features, as well as removing
151 all patented algorithms to seperate libraries (OpenSSL).
152
153 This package includes the clients necessary to make encrypted
154 connections to SSH servers.
155
156 %description clients -l es
157 Este paquete incluye los clientes que se necesitan para hacer
158 conexiones codificadas con servidores SSH.
159
160 %description clients -l pl
161 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
162 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
163 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
164 pomiedzy dwoma hostami.
165
166 Ten pakiet zawiera klientów s³u¿±cych do ³±czenia siê z serwerami SSH.
167
168 %description clients -l pt_BR
169 Esse pacote inclui os clientes necessários para fazer conexões
170 encriptadas com servidores SSH.
171
172 %description clients -l ru
173 Ssh (Secure Shell) - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ "ÚÁÈÏÄÁ" (login) ÎÁ ÕÄÁÌÅÎÎÕÀ
174 ÍÁÛÉÎÕ É ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄ ÎÁ ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÅ.
175
176 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÐÒÏÇÒÁÍÍÙ-ËÌÉÅÎÔÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÕÓÔÁÎÏ×ÌÅÎÉÑ
177 ÚÁÛÉÆÒÏ×ÁÎÎÙÈ ÓÏÅÄÉÎÅÎÉÊ Ó ÓÅÒ×ÅÒÁÍÉ SSH.
178
179 %description clients -l uk
180 Ssh (Secure Shell) - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ "ÚÁÈÏÄÕ" (login) ÄϠצÄÄÁÌÅÎϧ
181 ÍÁÛÉÎÉ ÔÁ ÄÌÑ ×ÉËÏÎÁÎÎÑ ËÏÍÁÎÄ ÎÁ ×¦ÄÄÁÌÅΦʠÍÁÛÉΦ.
182
183 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÐÒÏÇÒÁÍÉ-Ë̦¤ÎÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ×ÓÔÁÎÏ×ÌÅÎÎÑ
184 ÚÁÛÉÆÒÏ×ÁÎÉÈ Ú'¤ÄÎÁÎØ Ú ÓÅÒ×ÅÒÁÍÉ SSH.
185
186 %package server
187 Summary:        OpenSSH Secure Shell protocol server (sshd)
188 Summary(es):    Servidor OpenSSH para comunicaciones codificadas
189 Summary(pl):    Serwer protoko³u Secure Shell (sshd)
190 Summary(pt_BR): Servidor OpenSSH para comunicações encriptadas
191 Summary(ru):    OpenSSH - ÓÅÒ×ÅÒ ÐÒÏÔÏËÏÌÁ Secure Shell (sshd)
192 Summary(uk):    OpenSSH - ÓÅÒ×ÅÒ ÐÒÏÔÏËÏÌÕ Secure Shell (sshd)
193 Group:          Networking/Daemons
194 PreReq:         %{name} = %{version}
195 PreReq:         rc-scripts >= 0.3.1-3
196 Requires(pre):  /bin/id
197 Requires(pre):  /usr/sbin/useradd
198 Requires(post): /sbin/chkconfig
199 Requires(post): chkconfig >= 0.9
200 Requires(postun):       /usr/sbin/userdel
201 Requires:       /bin/login
202 Requires:       util-linux
203 Obsoletes:      ssh-server
204
205 %description server
206 Ssh (Secure Shell) a program for logging into a remote machine and for
207 executing commands in a remote machine. It is intended to replace
208 rlogin and rsh, and provide secure encrypted communications between
209 two untrusted hosts over an insecure network. X11 connections and
210 arbitrary TCP/IP ports can also be forwarded over the secure channel.
211
212 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
213 it up to date in terms of security and features, as well as removing
214 all patented algorithms to seperate libraries (OpenSSL).
215
216 This package contains the secure shell daemon. The sshd is the server
217 part of the secure shell protocol and allows ssh clients to connect to
218 your host.
219
220 %description server -l es
221 Este paquete contiene el servidor SSH. sshd es la parte servidor del
222 protocolo secure shell y permite que clientes ssh se conecten a su
223 servidor.
224
225 %description server -l pl
226 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
227 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
228 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
229 pomiedzy dwoma hostami.
230
231 Ten pakiet zawiera serwer sshd (do którego mog± ³±czyæ siê klienci
232 ssh).
233
234 %description server -l pt_BR
235 Esse pacote contém o servidor SSH. O sshd é a parte servidor do
236 protocolo secure shell e permite que clientes ssh se conectem ao seu
237 host.
238
239 %description server -l ru
240 Ssh (Secure Shell) - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ "ÚÁÈÏÄÁ" (login) ÎÁ ÕÄÁÌÅÎÎÕÀ
241 ÍÁÛÉÎÕ É ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄ ÎÁ ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÅ.
242
243 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ sshd - "ÄÅÍÏÎ" Secure Shell. sshd - ÜÔÏ ÓÅÒ×ÅÒÎÁÑ
244 ÞÁÓÔØ ÐÒÏÔÏËÏÌÁ Secure Shell, ÐÏÚ×ÏÌÑÀÝÁÑ ËÌÉÅÎÔÁÍ ssh ÓÏÅÄÉÎÑÔØÓÑ Ó
245 ×ÁÛÉÍ ÈÏÓÔÏÍ.
246
247 %description server -l uk
248 Ssh (Secure Shell) - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ "ÚÁÈÏÄÕ" (login) ÄϠצÄÄÁÌÅÎϧ
249 ÍÁÛÉÎÉ ÔÁ ÄÌÑ ×ÉËÏÎÁÎÎÑ ËÏÍÁÎÄ ÎÁ ×¦ÄÄÁÌÅΦʠÍÁÛÉΦ.
250
251 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ sshd - "ÄÅÍÏÎ" Secure Shell. sshd - ÃÅ ÓÅÒ×ÅÒÎÁ
252 ÞÁÓÔÉÎÁ ÐÒÏÔÏËÏÌÕ Secure Shell, ÑËÁ ÄÏÚ×ÏÌѤ Ë̦¤ÎÔÁÍ ssh Ú×'ÑÚÕ×ÁÔÉÓØ
253 Ú ×ÁÛÉÍ ÈÏÓÔÏÍ.
254
255 %package gnome-askpass
256 Summary:        OpenSSH GNOME passphrase dialog
257 Summary(es):    Diálogo para introducción de passphrase para GNOME
258 Summary(pl):    Odpytywacz has³a OpenSSH dla GNOME
259 Summary(pt_BR): Diálogo para entrada de passphrase para GNOME
260 Summary(ru):    OpenSSH - ÄÉÁÌÏÇ ××ÏÄÁ ËÌÀÞÅ×ÏÊ ÆÒÁÚÙ (passphrase) ÄÌÑ GNOME
261 Summary(uk):    OpenSSH - Ä¦ÁÌÏÇ ××ÏÄÕ ËÌÀÞÏ×ϧ ÆÒÁÚÉ (passphrase) ÄÌÑ GNOME
262 Group:          Applications/Networking
263 Requires:       %{name} = %{version}
264 Obsoletes:      ssh-extras
265 Obsoletes:      ssh-askpass
266 Obsoletes:      openssh-askpass
267
268 %description gnome-askpass
269 Ssh (Secure Shell) a program for logging into a remote machine and for
270 executing commands in a remote machine. It is intended to replace
271 rlogin and rsh, and provide secure encrypted communications between
272 two untrusted hosts over an insecure network. X11 connections and
273 arbitrary TCP/IP ports can also be forwarded over the secure channel.
274
275 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
276 it up to date in terms of security and features, as well as removing
277 all patented algorithms to seperate libraries (OpenSSL).
278
279 This package contains the GNOME passphrase dialog.
280
281 %description gnome-askpass -l es
282 Este paquete contiene un programa que abre una caja de diálogo para
283 entrada de passphrase en GNOME.
284
285 %description gnome-askpass -l pl
286 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
287 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
288 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
289 pomiedzy dwoma hostami.
290
291 Ten pakiet zawiera ,,odpytywacz has³a'' dla GNOME.
292
293 %description gnome-askpass -l pt_BR
294 Esse pacote contém um programa que abre uma caixa de diálogo para
295 entrada de passphrase no GNOME.
296
297 %description gnome-askpass -l ru
298 Ssh (Secure Shell) - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÄÌÑ "ÚÁÈÏÄÁ" (login) ÎÁ ÕÄÁÌÅÎÎÕÀ
299 ÍÁÛÉÎÕ É ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄ ÎÁ ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÅ.
300
301 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÄÉÁÌÏÇ ××ÏÄÁ ËÌÀÞÅ×ÏÊ ÆÒÁÚÙ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÐÏÄ
302 GNOME.
303
304 %description gnome-askpass -l uk
305 Ssh (Secure Shell) - ÃÅ ÐÒÏÇÒÁÍÁ ÄÌÑ "ÚÁÈÏÄÕ" (login) ÄϠצÄÄÁÌÅÎϧ
306 ÍÁÛÉÎÉ ÔÁ ÄÌÑ ×ÉËÏÎÁÎÎÑ ËÏÍÁÎÄ ÎÁ ×¦ÄÄÁÌÅΦʠÍÁÛÉΦ.
307
308 ãÅÊ ÐÁËÅԠͦÓÔÉÔؠĦÁÌÏÇ ××ÏÄÕ ËÌÀÞÏ×ϧ ÆÒÁÚÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎѠЦÄ
309 GNOME.
310
311 %prep
312 %setup  -q
313 %patch0 -p1
314 %patch1 -p1
315 %patch2 -p1
316 %patch3 -p1
317
318 %build
319 aclocal
320 %{__autoconf}
321
322 %configure \
323         %{!?_without_gnome:--with-gnome-askpass} \
324         --with-pam \
325         --with-mantype=man \
326         --with-md5-passwords \
327         --with-ipaddr-display \
328         --with-4in6 \
329         --disable-suid-ssh \
330         --with-tcp-wrappers \
331         --with-privsep-path=%{_privsepdir} \
332         --with-pid-dir=%{_localstatedir}/run
333
334 echo '#define LOGIN_PROGRAM           "/bin/login"' >>config.h
335
336 %{__make}
337
338 %{!?_without_gnome:cd contrib && %{__cc} %{rpmcflags} `gnome-config --cflags gnome gnomeui gtk` } \
339 %{!?_without_gnome:gnome-ssh-askpass.c -o gnome-ssh-askpass } \
340 %{!?_without_gnome:`gnome-config --libs gnome gnomeui gtk` }
341
342 %install
343 rm -rf $RPM_BUILD_ROOT
344 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{pam.d,rc.d/init.d,sysconfig,security}}
345
346 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
347
348 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/sshd
349 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/passwdssh
350 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/sshd
351 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
352 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ssh_config
353 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sshd_config
354 install -d $RPM_BUILD_ROOT%{_libexecdir}/ssh
355 %{!?_without_gnome:install contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass}
356
357 rm -f   $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
358 echo ".so ssh.1" > $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
359
360 touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
361
362 %clean
363 rm -rf $RPM_BUILD_ROOT
364
365 %pre server
366 if [ -n "`id -u sshd 2>/dev/null`" ]; then
367         if [ "`id -u sshd`" != "40" ]; then
368                 echo "Error: user sshd doesn't have uid=40. Correct this before installing ssh server." 1>&2
369                 exit 1
370         fi
371 else
372         /usr/sbin/useradd -u 40 -d %{_privsepdir} -s /bin/false -M -r -c "OpenSSH PrivSep User" -g nobody sshd 1>&2
373 fi
374         
375 %post server
376 /sbin/chkconfig --add sshd
377 if [ -f /var/lock/subsys/sshd ]; then
378         /etc/rc.d/init.d/sshd restart 1>&2
379 else
380         echo "Run \"/etc/rc.d/init.d/sshd start\" to start openssh daemon."
381 fi
382 if ! grep ssh /etc/security/passwd.conf >/dev/null 2>&1 ; then
383         echo "ssh" >> /etc/security/passwd.conf
384 fi
385
386 %preun server
387 if [ "$1" = "0" ]; then
388         if [ -f /var/lock/subsys/sshd ]; then
389                 /etc/rc.d/init.d/sshd stop 1>&2
390         fi
391         /sbin/chkconfig --del sshd
392 fi
393
394 %postun server
395 if [ "$1" = "0" ]; then
396         /usr/sbin/userdel sshd
397 fi
398
399 %files
400 %defattr(644,root,root,755)
401 %doc *.RNG TODO README OVERVIEW CREDITS Change*
402 %attr(755,root,root) %{_bindir}/ssh-key*
403 %{_mandir}/man1/ssh-key*.1*
404 %dir %{_sysconfdir}
405
406 %files clients
407 %defattr(644,root,root,755)
408 %attr(0755,root,root) %{_bindir}/ssh
409 %attr(0755,root,root) %{_bindir}/slogin
410 %attr(0755,root,root) %{_bindir}/sftp
411 %attr(0755,root,root) %{_bindir}/ssh-agent
412 %attr(0755,root,root) %{_bindir}/ssh-add
413 %attr(0755,root,root) %{_bindir}/scp
414 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ssh_config
415 %{_mandir}/man1/scp.1*
416 %{_mandir}/man1/ssh.1*
417 %{_mandir}/man1/slogin.1*
418 %{_mandir}/man1/sftp.1*
419 %{_mandir}/man1/ssh-agent.1*
420 %{_mandir}/man1/ssh-add.1*
421 %{_mandir}/man5/ssh_config.5*
422
423 %files server
424 %defattr(644,root,root,755)
425 %attr(755,root,root) %{_sbindir}/sshd
426 %attr(755,root,root) %{_libexecdir}/sftp-server
427 %dir %{_libexecdir}
428 %{_mandir}/man8/sshd.8*
429 %{_mandir}/man8/sftp-server.8*
430 %{_mandir}/man5/sshd_config.5*
431 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sshd_config
432 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/sshd
433 %attr(640,root,root) %{_sysconfdir}/moduli
434 %attr(754,root,root) /etc/rc.d/init.d/sshd
435 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sshd
436 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.sshd
437
438 %{!?_without_gnome:%files gnome-askpass}
439 %{!?_without_gnome:%defattr(644,root,root,755)}
440 %{!?_without_gnome:%dir %{_libexecdir}/ssh}
441 %{!?_without_gnome:%attr(755,root,root) %{_libexecdir}/ssh/ssh-askpass}
This page took 0.074508 seconds and 3 git commands to generate.