1 Summary: OpenSSH free Secure Shell (SSH) implementation
2 Summary(pl): Publicznie dostêpna implementacja bezpiecznego shella (SSH)
7 Group: Applications/Networking
8 Group(de): Applikationen/Netzwerkwesen
9 Group(pl): Aplikacje/Sieciowe
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}-libwrap.patch
18 Patch1: %{name}-LIBS.patch
19 Patch2: %{name}-no_libnsl.patch
20 URL: http://www.openssh.com/
21 BuildRequires: XFree86-devel
22 BuildRequires: autoconf
23 BuildRequires: gnome-libs-devel
24 BuildRequires: gtk+-devel
25 BuildRequires: openssl-devel >= 0.9.5a
26 BuildRequires: pam-devel
27 BuildRequires: zlib-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
37 rlogin and rsh, and provide secure encrypted communications between
38 two untrusted hosts over an insecure network. X11 connections and
39 arbitrary TCP/IP ports can also be forwarded over the secure channel.
41 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
42 it up to date in terms of security and features, as well as removing
43 all patented algorithms to seperate libraries (OpenSSL).
45 This package includes the core files necessary for both the OpenSSH
46 client and server. To make this package useful, you should also
47 install openssh-clients, openssh-server, or both.
50 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
51 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
52 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
53 pomiedzy dwoma hostami.
56 Summary: OpenSSH Secure Shell protocol clients
57 Summary(pl): Klienci protoko³u Secure Shell
59 Group: Applications/Networking
60 Group(de): Applikationen/Netzwerkwesen
61 Group(pl): Aplikacje/Sieciowe
62 Obsoletes: ssh-clients < %{version}, ssh-clients > %{version}
63 Requires: %{name} = %{version}
66 Ssh (Secure Shell) a program for logging into a remote machine and for
67 executing commands in a remote machine. It is intended to replace
68 rlogin and rsh, and provide secure encrypted communications between
69 two untrusted hosts over an insecure network. X11 connections and
70 arbitrary TCP/IP ports can also be forwarded over the secure channel.
72 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
73 it up to date in terms of security and features, as well as removing
74 all patented algorithms to seperate libraries (OpenSSL).
76 This package includes the clients necessary to make encrypted
77 connections to SSH servers.
79 %description -l pl clients
80 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
81 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
82 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
83 pomiedzy dwoma hostami.
85 Ten pakiet zawiera klientów s³u¿±cych do ³±czenia siê z serwerami SSH.
88 Summary: OpenSSH Secure Shell protocol server (sshd)
89 Summary(pl): Serwer protoko³u Secure Shell (sshd)
90 Requires: openssh chkconfig >= 0.9
91 Group: Networking/Daemons
92 Group(de): Netzwerkwesen/Server
93 Group(pl): Sieciowe/Serwery
94 Obsoletes: ssh-server < %{version}, ssh-server > %{version}
99 Prereq: %{name} = %{version}
102 Ssh (Secure Shell) a program for logging into a remote machine and for
103 executing commands in a remote machine. It is intended to replace
104 rlogin and rsh, and provide secure encrypted communications between
105 two untrusted hosts over an insecure network. X11 connections and
106 arbitrary TCP/IP ports can also be forwarded over the secure channel.
108 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
109 it up to date in terms of security and features, as well as removing
110 all patented algorithms to seperate libraries (OpenSSL).
112 This package contains the secure shell daemon. The sshd is the server
113 part of the secure shell protocol and allows ssh clients to connect to
116 %description -l pl server
117 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
118 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
119 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
120 pomiedzy dwoma hostami.
122 Ten pakiet zawiera serwer sshd (do którego mog± ³±czyæ siê klienci
125 %package gnome-askpass
126 Summary: OpenSSH GNOME passphrase dialog
127 Summary(pl): Odpytywacz has³a OpenSSH dla GNOME
128 Group: Applications/Networking
129 Group(de): Applikationen/Netzwerkwesen
130 Group(pl): Aplikacje/Sieciowe
131 Requires: %{name} = %{version}
132 Obsoletes: ssh-extras < %{version}, ssh-extras > %{version}
133 Obsoletes: ssh-askpass < %{version}, ssh-askpass > %{version}
134 Obsoletes: openssh-askpass < %{version}, openssh-askpass > %{version}
136 %description gnome-askpass
137 Ssh (Secure Shell) a program for logging into a remote machine and for
138 executing commands in a remote machine. It is intended to replace
139 rlogin and rsh, and provide secure encrypted communications between
140 two untrusted hosts over an insecure network. X11 connections and
141 arbitrary TCP/IP ports can also be forwarded over the secure channel.
143 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
144 it up to date in terms of security and features, as well as removing
145 all patented algorithms to seperate libraries (OpenSSL).
147 This package contains the GNOME passphrase dialog.
149 %description -l pl gnome-askpass
150 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
151 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
152 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
153 pomiedzy dwoma hostami.
155 Ten pakiet zawiera ,,odpytywacz has³a'' dla GNOME.
166 --with-gnome-askpass \
167 --with-tcp-wrappers \
168 --with-md5-passwords \
169 --with-ipaddr-display \
174 echo '#define LOGIN_PROGRAM "/bin/login"' >>config.h
177 cd contrib && gcc $RPM_OPT_FLAGS `gnome-config --cflags gnome gnomeui` \
178 gnome-ssh-askpass.c -o gnome-ssh-askpass \
179 `gnome-config --libs gnome gnomeui`
182 rm -rf $RPM_BUILD_ROOT
184 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{pam.d,rc.d/init.d,sysconfig,security}}
186 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
188 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/sshd
189 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/passwdssh
190 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/sshd
191 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
192 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ssh_config
193 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sshd_config
194 install -d $RPM_BUILD_ROOT%{_libexecdir}/ssh
195 install contrib/gnome-ssh-askpass \
196 $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass
198 gzip -9nf ChangeLog OVERVIEW COPYING.Ylonen README README.Ylonen
200 touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
203 rm -rf $RPM_BUILD_ROOT
206 /sbin/chkconfig --add sshd
207 if [ ! -f %{_sysconfdir}/ssh_host_key -o ! -s %{_sysconfdir}/ssh_host_key ]; then
208 %{_bindir}/ssh-keygen -b 1024 -f %{_sysconfdir}/ssh_host_key -N '' 1>&2
210 if [ ! -f %{_sysconfdir}/ssh_host_dsa_key -o ! -s %{_sysconfdir}/ssh_host_dsa_key ]; then
211 %{_bindir}/ssh-keygen -d -f %{_sysconfdir}/ssh_host_dsa_key -N '' 1>&2
213 if [ -f /var/lock/subsys/sshd ]; then
214 /etc/rc.d/init.d/sshd restart 1>&2
216 echo "Run \"/etc/rc.d/init.d/sshd start\" to start openssh daemon."
218 if ! grep ssh /etc/security/passwd.conf >/dev/null 2>&1 ; then
219 echo "ssh" >> /etc/security/passwd.conf
223 if [ "$1" = "0" ]; then
224 if [ -f /var/lock/subsys/sshd ]; then
225 /etc/rc.d/init.d/sshd stop 1>&2
227 /sbin/chkconfig --del sshd
231 %defattr(644,root,root,755)
232 %doc {ChangeLog,OVERVIEW,COPYING.Ylonen,README,README.Ylonen}.gz
233 %attr(755,root,root) %{_bindir}/ssh-keygen
234 %{_mandir}/man1/ssh-keygen.1*
238 %defattr(644,root,root,755)
239 %attr(0755,root,root) %{_bindir}/ssh
240 %attr(0755,root,root) %{_bindir}/ssh-agent
241 %attr(0755,root,root) %{_bindir}/ssh-add
242 %attr(755,root,root) %{_bindir}/scp
243 %{_mandir}/man1/scp.1*
244 %{_mandir}/man1/ssh.1*
245 %{_mandir}/man1/ssh-agent.1*
246 %{_mandir}/man1/ssh-add.1*
247 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ssh_config
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{_sbindir}/sshd
252 %{_mandir}/man8/sshd.8*
253 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sshd_config
254 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/sshd
255 %attr(754,root,root) /etc/rc.d/init.d/sshd
256 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sshd
257 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.sshd
260 %defattr(644,root,root,755)
261 %dir %{_libexecdir}/ssh
262 %attr(755,root,root) %{_libexecdir}/ssh/ssh-askpass