1 Summary: OpenSSH free Secure Shell (SSH) implementation
2 Summary(pl): ,,wolna'' implementacja bezpiecznego shella (SSH)
7 Group: Applications/Networking
8 Group(pl): Aplikacje/Sieciowe
9 URL: http://www.openssh.com/
10 Source0: ftp://ftp.ca.openbsd.org/pub/OpenBSD/OpenSSH/portable/%{name}-%{version}.tar.gz
11 Source1: opensshd.conf
13 Source3: opensshd.init
14 Source4: opensshd.pamd
15 Source5: openssh.sysconfig
17 Patch0: openssh-PAM_NEW_AUTHTOK.patch
18 Patch1: openssh-libwrap.patch
19 Patch2: openssh-known-hosts.patch
20 Patch3: openssh-login.patch
21 BuildRequires: openssl-devel >= 0.9.5a
22 BuildRequires: rpm >= 3.0.4
23 BuildRequires: zlib-devel
24 BuildRequires: pam-devel
25 BuildRequires: XFree86-devel
26 BuildRequires: gnome-libs-devel
27 BuildRequires: gtk+-devel
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Prereq: openssl >= 0.9.5a
30 Obsoletes: ssh < %{version}, ssh > %{version}
32 %define _sysconfdir /etc/ssh
35 Ssh (Secure Shell) a program for logging into a remote machine and for
36 executing commands in a remote machine. It is intended to replace rlogin
37 and rsh, and provide secure encrypted communications between two untrusted
38 hosts over an insecure network. X11 connections and arbitrary TCP/IP ports
39 can also be forwarded over the secure channel.
41 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it up
42 to date in terms of security and features, as well as removing all patented
43 algorithms to seperate libraries (OpenSSL).
45 This package includes the core files necessary for both the OpenSSH client
46 and server. To make this package useful, you should also install
47 openssh-clients, openssh-server, or both.
50 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln± maszynê i
51 uruchamiania na niej aplikacji. W zamierzeniu openssh ma zast±piæ rlogin,
52 rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie pomiedzy dwoma hostami.
55 Summary: OpenSSH Secure Shell protocol clients
56 Summary(pl): Klienci protoko³u Secure Shell
58 Group: Applications/Networking
59 Group(pl): Aplikacje/Sieciowe
60 Obsoletes: ssh-clients < %{version}, ssh-clients > %{version}
61 Requires: %{name} = %{version}
64 Ssh (Secure Shell) a program for logging into a remote machine and for
65 executing commands in a remote machine. It is intended to replace rlogin
66 and rsh, and provide secure encrypted communications between two untrusted
67 hosts over an insecure network. X11 connections and arbitrary TCP/IP ports
68 can also be forwarded over the secure channel.
70 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it up
71 to date in terms of security and features, as well as removing all patented
72 algorithms to seperate libraries (OpenSSL).
74 This package includes the clients necessary to make encrypted connections
77 %description -l pl clients
78 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln± maszynê i
79 uruchamiania na niej aplikacji. W zamierzeniu openssh ma zast±piæ rlogin,
80 rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie pomiedzy dwoma hostami.
82 Ten pakiet zawiera klientów s³u¿±cych do ³±czenia siê z serwerami SSH.
85 Summary: OpenSSH Secure Shell protocol server (sshd)
86 Summary(pl): Serwer protoko³u Secure Shell (sshd)
87 Requires: openssh chkconfig >= 0.9
88 Group: Networking/Daemons
89 Group(pl): Sieciowe/Serwery
90 Obsoletes: ssh-server < %{version}, ssh-server > %{version}
94 Prereq: %{name} = %{version}
97 Ssh (Secure Shell) a program for logging into a remote machine and for
98 executing commands in a remote machine. It is intended to replace rlogin
99 and rsh, and provide secure encrypted communications between two untrusted
100 hosts over an insecure network. X11 connections and arbitrary TCP/IP ports
101 can also be forwarded over the secure channel.
103 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it up
104 to date in terms of security and features, as well as removing all patented
105 algorithms to seperate libraries (OpenSSL).
107 This package contains the secure shell daemon. The sshd is the server part
108 of the secure shell protocol and allows ssh clients to connect to your
111 %description -l pl server
112 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln± maszynê i
113 uruchamiania na niej aplikacji. W zamierzeniu openssh ma zast±piæ rlogin,
114 rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie pomiedzy dwoma hostami.
116 Ten pakiet zawiera serwer sshd (do którego mog± ³±czyæ siê klienci ssh).
118 %package gnome-askpass
119 Summary: OpenSSH GNOME passphrase dialog
120 Summary(pl): Odpytywacz has³a OpenSSH dla GNOME
121 Group: Applications/Networking
122 Group(pl): Aplikacje/Sieciowe
123 Requires: %{name} = %{version}
124 Obsoletes: ssh-extras < %{version}, ssh-extras > %{version}
125 Obsoletes: ssh-askpass < %{version}, ssh-askpass > %{version}
126 Obsoletes: openssh-askpass < %{version}, openssh-askpass > %{version}
128 %description gnome-askpass
129 Ssh (Secure Shell) a program for logging into a remote machine and for
130 executing commands in a remote machine. It is intended to replace rlogin
131 and rsh, and provide secure encrypted communications between two untrusted
132 hosts over an insecure network. X11 connections and arbitrary TCP/IP ports
133 can also be forwarded over the secure channel.
135 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it up
136 to date in terms of security and features, as well as removing all patented
137 algorithms to seperate libraries (OpenSSL).
139 This package contains the GNOME passphrase dialog.
141 %description -l pl gnome-askpass
142 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln± maszynê i
143 uruchamiania na niej aplikacji. W zamierzeniu openssh ma zast±piæ rlogin,
144 rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie pomiedzy dwoma hostami.
146 Ten pakiet zawiera ,,odpytywacz has³a'' dla GNOME.
158 --with-gnome-askpass \
159 --with-tcp-wrappers \
160 --with-md5-passwords \
161 --with-ipaddr-display \
166 echo '#define LOGIN_PROGRAM "/bin/login"' >>config.h
169 cd contrib && gcc $RPM_OPT_FLAGS `gnome-config --cflags gnome gnomeui` \
170 gnome-ssh-askpass.c -o gnome-ssh-askpass \
171 `gnome-config --libs gnome gnomeui`
174 rm -rf $RPM_BUILD_ROOT
176 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{pam.d,rc.d/init.d,sysconfig,security}}
178 make install DESTDIR="$RPM_BUILD_ROOT"
180 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/sshd
181 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/passwdssh
182 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/sshd
183 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
184 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ssh_config
185 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sshd_config
186 install -d $RPM_BUILD_ROOT%{_libexecdir}/ssh
187 install -s contrib/gnome-ssh-askpass \
188 $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass
190 gzip -9nf ChangeLog OVERVIEW COPYING.Ylonen README README.Ylonen UPGRADING \
191 $RPM_BUILD_ROOT/%{_mandir}/man*/*
193 touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
196 rm -rf $RPM_BUILD_ROOT
199 /sbin/chkconfig --add sshd
200 if [ ! -f %{_sysconfdir}/ssh_host_key -o ! -s %{_sysconfdir}/ssh_host_key ]; then
201 %{_bindir}/ssh-keygen -b 1024 -f %{_sysconfdir}/ssh_host_key -N '' 1>&2
203 if [ ! -f %{_sysconfdir}/ssh_host_dsa_key -o ! -s %{_sysconfdir}/ssh_host_dsa_key ]; then
204 %{_bindir}/ssh-keygen -d -f %{_sysconfdir}/ssh_host_dsa_key -N '' 1>&2
206 if [ -f /var/lock/subsys/sshd ]; then
207 /etc/rc.d/init.d/sshd restart 1>&2
209 echo "Run \"/etc/rc.d/init.d/sshd start\" to start openssh daemon."
211 if ! grep ssh /etc/security/passwd.conf >/dev/null 2>&1 ; then
212 echo "ssh" >> /etc/security/passwd.conf
216 if [ "$1" = 0 ]; then
217 if [ -f /var/lock/subsys/sshd ]; then
218 /etc/rc.d/init.d/sshd stop 1>&2
220 /sbin/chkconfig --del sshd
224 %defattr(644,root,root,755)
225 %doc {ChangeLog,OVERVIEW,COPYING.Ylonen,README,README.Ylonen,UPGRADING}.gz
226 %attr(755,root,root) %{_bindir}/ssh-keygen
227 %{_mandir}/man1/ssh-keygen.1*
231 %defattr(644,root,root,755)
232 %attr(0755,root,root) %{_bindir}/ssh
233 %attr(0755,root,root) %{_bindir}/ssh-agent
234 %attr(0755,root,root) %{_bindir}/ssh-add
235 %attr(755,root,root) %{_bindir}/scp
236 %{_mandir}/man1/scp.1*
237 %{_mandir}/man1/ssh.1*
238 %{_mandir}/man1/ssh-agent.1*
239 %{_mandir}/man1/ssh-add.1*
240 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ssh_config
243 %defattr(644,root,root,755)
244 %attr(755,root,root) %{_sbindir}/sshd
245 %{_mandir}/man8/sshd.8*
246 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sshd_config
247 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/sshd
248 %attr(754,root,root) /etc/rc.d/init.d/sshd
249 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sshd
250 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.sshd
253 %defattr(644,root,root,755)
254 %dir %{_libexecdir}/ssh
255 %attr(755,root,root) %{_libexecdir}/ssh/ssh-askpass