3 # _without_gnome - without gnome-askpass utility
4 Summary: OpenSSH free Secure Shell (SSH) implementation
5 Summary(pl): Publicznie dostêpna implementacja bezpiecznego shella (SSH)
10 Group: Applications/Networking
11 Group(de): Applikationen/Netzwerkwesen
12 Group(pl): Aplikacje/Sieciowe
13 Source0: ftp://ftp.ca.openbsd.org/pub/OpenBSD/OpenSSH/portable/%{name}-%{version}.tar.gz
14 Source1: %{name}d.conf
16 Source3: %{name}d.init
17 Source4: %{name}d.pamd
18 Source5: %{name}.sysconfig
20 Patch0: %{name}-libwrap.patch
21 Patch1: %{name}-no_libnsl.patch
22 Patch2: %{name}-no-openssl-ver-check.patch
23 Patch3: %{name}-set_12.patch
24 URL: http://www.openssh.com/
25 BuildRequires: XFree86-devel
26 BuildRequires: autoconf
27 %{!?_without_gnome:BuildRequires: gnome-libs-devel}
28 BuildRequires: gtk+-devel
29 BuildRequires: openssl-devel >= 0.9.6a
30 BuildRequires: pam-devel
31 BuildRequires: zlib-devel
32 BuildRequires: libwrap-devel
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Obsoletes: ssh < %{version}
36 Obsoletes: ssh > %{version}
38 %define _sysconfdir /etc/ssh
39 %define _libexecdir %{_libdir}/%{name}
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.
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).
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.
57 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
58 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
59 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
60 pomiedzy dwoma hostami.
63 Summary: OpenSSH Secure Shell protocol clients
64 Summary(pl): Klienci protoko³u Secure Shell
66 Group: Applications/Networking
67 Group(de): Applikationen/Netzwerkwesen
68 Group(pl): Aplikacje/Sieciowe
69 Obsoletes: ssh-clients < %{version}
70 Obsoletes: ssh-clients > %{version}
71 Requires: %{name} = %{version}
74 Ssh (Secure Shell) a program for logging into a remote machine and for
75 executing commands in a remote machine. It is intended to replace
76 rlogin and rsh, and provide secure encrypted communications between
77 two untrusted hosts over an insecure network. X11 connections and
78 arbitrary TCP/IP ports can also be forwarded over the secure channel.
80 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
81 it up to date in terms of security and features, as well as removing
82 all patented algorithms to seperate libraries (OpenSSL).
84 This package includes the clients necessary to make encrypted
85 connections to SSH servers.
87 %description -l pl clients
88 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
89 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
90 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
91 pomiedzy dwoma hostami.
93 Ten pakiet zawiera klientów s³u¿±cych do ³±czenia siê z serwerami SSH.
96 Summary: OpenSSH Secure Shell protocol server (sshd)
97 Summary(pl): Serwer protoko³u Secure Shell (sshd)
99 Requires: chkconfig >= 0.9
100 Group: Networking/Daemons
101 Group(de): Netzwerkwesen/Server
102 Group(pl): Sieciowe/Serwery
103 Obsoletes: ssh-server < %{version}, ssh-server > %{version}
108 Prereq: %{name} = %{version}
111 Ssh (Secure Shell) a program for logging into a remote machine and for
112 executing commands in a remote machine. It is intended to replace
113 rlogin and rsh, and provide secure encrypted communications between
114 two untrusted hosts over an insecure network. X11 connections and
115 arbitrary TCP/IP ports can also be forwarded over the secure channel.
117 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
118 it up to date in terms of security and features, as well as removing
119 all patented algorithms to seperate libraries (OpenSSL).
121 This package contains the secure shell daemon. The sshd is the server
122 part of the secure shell protocol and allows ssh clients to connect to
125 %description -l pl server
126 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
127 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
128 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
129 pomiedzy dwoma hostami.
131 Ten pakiet zawiera serwer sshd (do którego mog± ³±czyæ siê klienci
134 %package gnome-askpass
135 Summary: OpenSSH GNOME passphrase dialog
136 Summary(pl): Odpytywacz has³a OpenSSH dla GNOME
137 Group: Applications/Networking
138 Group(de): Applikationen/Netzwerkwesen
139 Group(pl): Aplikacje/Sieciowe
140 Requires: %{name} = %{version}
141 Obsoletes: ssh-extras < %{version}, ssh-extras > %{version}
142 Obsoletes: ssh-askpass < %{version}, ssh-askpass > %{version}
143 Obsoletes: openssh-askpass < %{version}, openssh-askpass > %{version}
145 %description gnome-askpass
146 Ssh (Secure Shell) a program for logging into a remote machine and for
147 executing commands in a remote machine. It is intended to replace
148 rlogin and rsh, and provide secure encrypted communications between
149 two untrusted hosts over an insecure network. X11 connections and
150 arbitrary TCP/IP ports can also be forwarded over the secure channel.
152 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
153 it up to date in terms of security and features, as well as removing
154 all patented algorithms to seperate libraries (OpenSSL).
156 This package contains the GNOME passphrase dialog.
158 %description -l pl gnome-askpass
159 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
160 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
161 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
162 pomiedzy dwoma hostami.
164 Ten pakiet zawiera ,,odpytywacz has³a'' dla GNOME.
176 %{!?_without_gnome:--with-gnome-askpass} \
177 --with-tcp-wrappers \
180 --with-md5-passwords \
181 --with-ipaddr-display \
184 --with-pid-dir=%{_localstatedir}/run
186 echo '#define LOGIN_PROGRAM "/bin/login"' >>config.h
190 %{!?_without_gnome: cd contrib && %{__cc} %{rpmcflags} `gnome-config --cflags gnome gnomeui gtk` } \
191 %{!?_without_gnome: gnome-ssh-askpass.c -o gnome-ssh-askpass } \
192 %{!?_without_gnome: `gnome-config --libs gnome gnomeui gtk` }
195 rm -rf $RPM_BUILD_ROOT
197 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{pam.d,rc.d/init.d,sysconfig,security}}
199 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
201 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/sshd
202 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/passwdssh
203 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/sshd
204 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
205 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ssh_config
206 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sshd_config
207 install -d $RPM_BUILD_ROOT%{_libexecdir}/ssh
208 %{!?_without_gnome:install contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass}
210 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
211 echo ".so man1/ssh.1" > $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
213 gzip -9nf *.RNG TODO README OVERVIEW CREDITS Change*
215 touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
218 rm -rf $RPM_BUILD_ROOT
221 /sbin/chkconfig --add sshd
222 if [ ! -f %{_sysconfdir}/ssh_host_key -o ! -s %{_sysconfdir}/ssh_host_key ]; then
223 %{_bindir}/ssh-keygen -t rsa1 -f %{_sysconfdir}/ssh_host_key -N '' 1>&2
224 chmod 600 %{_sysconfdir}/ssh_host_key
226 if [ ! -f %{_sysconfdir}/ssh_host_rsa_key -o ! -s %{_sysconfdir}/ssh_host_rsa_key ]; then
227 %{_bindir}/ssh-keygen -t rsa -f %{_sysconfdir}/ssh_host_rsa_key -N '' 1>&2
228 chmod 600 %{_sysconfdir}/ssh_host_rsa_key
231 if [ ! -f %{_sysconfdir}/ssh_host_dsa_key -o ! -s %{_sysconfdir}/ssh_host_dsa_key ]; then
232 %{_bindir}/ssh-keygen -t dsa -f %{_sysconfdir}/ssh_host_dsa_key -N '' 1>&2
233 chmod 600 %{_sysconfdir}/ssh_host_dsa_key
235 if [ -f /var/lock/subsys/sshd ]; then
236 /etc/rc.d/init.d/sshd restart 1>&2
238 echo "Run \"/etc/rc.d/init.d/sshd start\" to start openssh daemon."
240 if ! grep ssh /etc/security/passwd.conf >/dev/null 2>&1 ; then
241 echo "ssh" >> /etc/security/passwd.conf
245 if [ "$1" = "0" ]; then
246 if [ -f /var/lock/subsys/sshd ]; then
247 /etc/rc.d/init.d/sshd stop 1>&2
249 /sbin/chkconfig --del sshd
253 %defattr(644,root,root,755)
255 %attr(755,root,root) %{_bindir}/ssh-key*
256 %{_mandir}/man1/ssh-key*.1*
260 %defattr(644,root,root,755)
261 %attr(0755,root,root) %{_bindir}/ssh
262 %attr(0755,root,root) %{_bindir}/slogin
263 %attr(0755,root,root) %{_bindir}/sftp
264 %attr(0755,root,root) %{_bindir}/ssh-agent
265 %attr(0755,root,root) %{_bindir}/ssh-add
266 %attr(755,root,root) %{_bindir}/scp
267 %{_mandir}/man1/scp.1*
268 %{_mandir}/man1/ssh.1*
269 %{_mandir}/man1/slogin.1*
270 %{_mandir}/man1/sftp.1*
271 %{_mandir}/man1/ssh-agent.1*
272 %{_mandir}/man1/ssh-add.1*
273 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ssh_config
276 %defattr(644,root,root,755)
277 %attr(755,root,root) %{_sbindir}/sshd
278 %attr(755,root,root) %{_libexecdir}/sftp-server
280 %{_mandir}/man8/sshd.8*
281 %{_mandir}/man8/sftp-server.8*
282 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sshd_config
283 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/sshd
284 %attr(640,root,root) %{_sysconfdir}/primes
285 %attr(754,root,root) /etc/rc.d/init.d/sshd
286 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sshd
287 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.sshd
289 %{!?_without_gnome:%files gnome-askpass}
290 %{!?_without_gnome:%defattr(644,root,root,755)}
291 %{!?_without_gnome:%dir %{_libexecdir}/ssh}
292 %{!?_without_gnome:%attr(755,root,root) %{_libexecdir}/ssh/ssh-askpass}