1 Summary: OpenSSH free Secure Shell (SSH) implementation
2 Summary(pl): Publicznie dostêpna implementacja bezpiecznego shella (SSH)
7 Group: Applications/Networking
8 Group(pl): Aplikacje/Sieciowe
9 Group(de): Applikationen/Netzwerkwesen
10 Source0: ftp://ftp.ca.openbsd.org/pub/OpenBSD/OpenSSH/portable/%{name}-%{version}.tar.gz
11 Source1: %{name}d.conf
13 Source3: %{name}d.init
14 Source4: %{name}d.pamd
15 Source5: %{name}.sysconfig
17 Patch0: %{name}-PAM_NEW_AUTHTOK.patch
18 Patch1: %{name}-libwrap.patch
19 Patch2: %{name}-LIBS.patch
20 Patch3: %{name}-no_libnsl.patch
21 URL: http://www.openssh.com/
22 BuildRequires: autoconf
23 BuildRequires: openssl-devel >= 0.9.5a
24 BuildRequires: rpm >= 3.0.4
25 BuildRequires: zlib-devel
26 BuildRequires: pam-devel
27 BuildRequires: XFree86-devel
28 BuildRequires: gnome-libs-devel
29 BuildRequires: gtk+-devel
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Prereq: openssl >= 0.9.5a
32 Obsoletes: ssh < %{version}, ssh > %{version}
34 %define _sysconfdir /etc/ssh
37 Ssh (Secure Shell) a program for logging into a remote machine and for
38 executing commands in a remote machine. It is intended to replace
39 rlogin and rsh, and provide secure encrypted communications between
40 two untrusted hosts over an insecure network. X11 connections and
41 arbitrary TCP/IP ports can also be forwarded over the secure channel.
43 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
44 it up to date in terms of security and features, as well as removing
45 all patented algorithms to seperate libraries (OpenSSL).
47 This package includes the core files necessary for both the OpenSSH
48 client and server. To make this package useful, you should also
49 install openssh-clients, openssh-server, or both.
52 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
53 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
54 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
55 pomiedzy dwoma hostami.
58 Summary: OpenSSH Secure Shell protocol clients
59 Summary(pl): Klienci protoko³u Secure Shell
61 Group: Applications/Networking
62 Group(pl): Aplikacje/Sieciowe
63 Group(de): Applikationen/Netzwerkwesen
64 Obsoletes: ssh-clients < %{version}, ssh-clients > %{version}
65 Requires: %{name} = %{version}
68 Ssh (Secure Shell) a program for logging into a remote machine and for
69 executing commands in a remote machine. It is intended to replace
70 rlogin and rsh, and provide secure encrypted communications between
71 two untrusted hosts over an insecure network. X11 connections and
72 arbitrary TCP/IP ports can also be forwarded over the secure channel.
74 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
75 it up to date in terms of security and features, as well as removing
76 all patented algorithms to seperate libraries (OpenSSL).
78 This package includes the clients necessary to make encrypted
79 connections to SSH servers.
81 %description -l pl clients
82 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
83 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
84 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
85 pomiedzy dwoma hostami.
87 Ten pakiet zawiera klientów s³u¿±cych do ³±czenia siê z serwerami SSH.
90 Summary: OpenSSH Secure Shell protocol server (sshd)
91 Summary(pl): Serwer protoko³u Secure Shell (sshd)
92 Requires: openssh chkconfig >= 0.9
93 Group: Networking/Daemons
94 Group(pl): Sieciowe/Serwery
95 Group(de): Netzwerkwesen/Server
96 Obsoletes: ssh-server < %{version}, ssh-server > %{version}
101 Prereq: %{name} = %{version}
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.
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).
114 This package contains the secure shell daemon. The sshd is the server
115 part of the secure shell protocol and allows ssh clients to connect to
118 %description -l pl server
119 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
120 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
121 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
122 pomiedzy dwoma hostami.
124 Ten pakiet zawiera serwer sshd (do którego mog± ³±czyæ siê klienci
127 %package gnome-askpass
128 Summary: OpenSSH GNOME passphrase dialog
129 Summary(pl): Odpytywacz has³a OpenSSH dla GNOME
130 Group: Applications/Networking
131 Group(pl): Aplikacje/Sieciowe
132 Group(de): Applikationen/Netzwerkwesen
133 Requires: %{name} = %{version}
134 Obsoletes: ssh-extras < %{version}, ssh-extras > %{version}
135 Obsoletes: ssh-askpass < %{version}, ssh-askpass > %{version}
136 Obsoletes: openssh-askpass < %{version}, openssh-askpass > %{version}
138 %description gnome-askpass
139 Ssh (Secure Shell) a program for logging into a remote machine and for
140 executing commands in a remote machine. It is intended to replace
141 rlogin and rsh, and provide secure encrypted communications between
142 two untrusted hosts over an insecure network. X11 connections and
143 arbitrary TCP/IP ports can also be forwarded over the secure channel.
145 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
146 it up to date in terms of security and features, as well as removing
147 all patented algorithms to seperate libraries (OpenSSL).
149 This package contains the GNOME passphrase dialog.
151 %description -l pl gnome-askpass
152 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
153 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
154 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
155 pomiedzy dwoma hostami.
157 Ten pakiet zawiera ,,odpytywacz has³a'' dla GNOME.
169 --with-gnome-askpass \
170 --with-tcp-wrappers \
171 --with-md5-passwords \
172 --with-ipaddr-display \
177 echo '#define LOGIN_PROGRAM "/bin/login"' >>config.h
180 cd contrib && gcc $RPM_OPT_FLAGS `gnome-config --cflags gnome gnomeui` \
181 gnome-ssh-askpass.c -o gnome-ssh-askpass \
182 `gnome-config --libs gnome gnomeui`
185 rm -rf $RPM_BUILD_ROOT
187 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{pam.d,rc.d/init.d,sysconfig,security}}
189 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
191 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/sshd
192 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/passwdssh
193 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/sshd
194 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
195 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ssh_config
196 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sshd_config
197 install -d $RPM_BUILD_ROOT%{_libexecdir}/ssh
198 install contrib/gnome-ssh-askpass \
199 $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass
201 gzip -9nf ChangeLog OVERVIEW COPYING.Ylonen README README.Ylonen UPGRADING \
202 $RPM_BUILD_ROOT/%{_mandir}/man*/*
204 touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
207 rm -rf $RPM_BUILD_ROOT
210 /sbin/chkconfig --add sshd
211 if [ ! -f %{_sysconfdir}/ssh_host_key -o ! -s %{_sysconfdir}/ssh_host_key ]; then
212 %{_bindir}/ssh-keygen -b 1024 -f %{_sysconfdir}/ssh_host_key -N '' 1>&2
214 if [ ! -f %{_sysconfdir}/ssh_host_dsa_key -o ! -s %{_sysconfdir}/ssh_host_dsa_key ]; then
215 %{_bindir}/ssh-keygen -d -f %{_sysconfdir}/ssh_host_dsa_key -N '' 1>&2
217 if [ -f /var/lock/subsys/sshd ]; then
218 /etc/rc.d/init.d/sshd restart 1>&2
220 echo "Run \"/etc/rc.d/init.d/sshd start\" to start openssh daemon."
222 if ! grep ssh /etc/security/passwd.conf >/dev/null 2>&1 ; then
223 echo "ssh" >> /etc/security/passwd.conf
227 if [ "$1" = 0 ]; then
228 if [ -f /var/lock/subsys/sshd ]; then
229 /etc/rc.d/init.d/sshd stop 1>&2
231 /sbin/chkconfig --del sshd
235 %defattr(644,root,root,755)
236 %doc {ChangeLog,OVERVIEW,COPYING.Ylonen,README,README.Ylonen,UPGRADING}.gz
237 %attr(755,root,root) %{_bindir}/ssh-keygen
238 %{_mandir}/man1/ssh-keygen.1*
242 %defattr(644,root,root,755)
243 %attr(0755,root,root) %{_bindir}/ssh
244 %attr(0755,root,root) %{_bindir}/ssh-agent
245 %attr(0755,root,root) %{_bindir}/ssh-add
246 %attr(755,root,root) %{_bindir}/scp
247 %{_mandir}/man1/scp.1*
248 %{_mandir}/man1/ssh.1*
249 %{_mandir}/man1/ssh-agent.1*
250 %{_mandir}/man1/ssh-add.1*
251 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ssh_config
254 %defattr(644,root,root,755)
255 %attr(755,root,root) %{_sbindir}/sshd
256 %{_mandir}/man8/sshd.8*
257 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sshd_config
258 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/sshd
259 %attr(754,root,root) /etc/rc.d/init.d/sshd
260 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sshd
261 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.sshd
264 %defattr(644,root,root,755)
265 %dir %{_libexecdir}/ssh
266 %attr(755,root,root) %{_libexecdir}/ssh/ssh-askpass