3 # bcond_off_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}-LIBS.patch
22 Patch2: %{name}-no_libnsl.patch
23 URL: http://www.openssh.com/
24 BuildRequires: XFree86-devel
25 BuildRequires: autoconf
26 %{!?bcond_off_gnome:BuildRequires: gnome-libs-devel}
27 BuildRequires: gtk+-devel
28 BuildRequires: openssl-devel >= 0.9.5a
29 BuildRequires: pam-devel
30 BuildRequires: zlib-devel
31 BuildRequires: libwrap-devel
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 Prereq: openssl >= 0.9.5a
34 Obsoletes: ssh < %{version}, ssh > %{version}
36 %define _sysconfdir /etc/ssh
39 Ssh (Secure Shell) a program for logging into a remote machine and for
40 executing commands in a remote machine. It is intended to replace
41 rlogin and rsh, and provide secure encrypted communications between
42 two untrusted hosts over an insecure network. X11 connections and
43 arbitrary TCP/IP ports can also be forwarded over the secure channel.
45 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
46 it up to date in terms of security and features, as well as removing
47 all patented algorithms to seperate libraries (OpenSSL).
49 This package includes the core files necessary for both the OpenSSH
50 client and server. To make this package useful, you should also
51 install openssh-clients, openssh-server, or both.
54 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
55 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
56 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
57 pomiedzy dwoma hostami.
60 Summary: OpenSSH Secure Shell protocol clients
61 Summary(pl): Klienci protoko³u Secure Shell
63 Group: Applications/Networking
64 Group(de): Applikationen/Netzwerkwesen
65 Group(pl): Aplikacje/Sieciowe
66 Obsoletes: ssh-clients < %{version}, ssh-clients > %{version}
67 Requires: %{name} = %{version}
70 Ssh (Secure Shell) a program for logging into a remote machine and for
71 executing commands in a remote machine. It is intended to replace
72 rlogin and rsh, and provide secure encrypted communications between
73 two untrusted hosts over an insecure network. X11 connections and
74 arbitrary TCP/IP ports can also be forwarded over the secure channel.
76 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
77 it up to date in terms of security and features, as well as removing
78 all patented algorithms to seperate libraries (OpenSSL).
80 This package includes the clients necessary to make encrypted
81 connections to SSH servers.
83 %description -l pl clients
84 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
85 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
86 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
87 pomiedzy dwoma hostami.
89 Ten pakiet zawiera klientów s³u¿±cych do ³±czenia siê z serwerami SSH.
92 Summary: OpenSSH Secure Shell protocol server (sshd)
93 Summary(pl): Serwer protoko³u Secure Shell (sshd)
94 Requires: openssh chkconfig >= 0.9
95 Group: Networking/Daemons
96 Group(de): Netzwerkwesen/Server
97 Group(pl): Sieciowe/Serwery
98 Obsoletes: ssh-server < %{version}, ssh-server > %{version}
103 Prereq: %{name} = %{version}
106 Ssh (Secure Shell) a program for logging into a remote machine and for
107 executing commands in a remote machine. It is intended to replace
108 rlogin and rsh, and provide secure encrypted communications between
109 two untrusted hosts over an insecure network. X11 connections and
110 arbitrary TCP/IP ports can also be forwarded over the secure channel.
112 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
113 it up to date in terms of security and features, as well as removing
114 all patented algorithms to seperate libraries (OpenSSL).
116 This package contains the secure shell daemon. The sshd is the server
117 part of the secure shell protocol and allows ssh clients to connect to
120 %description -l pl server
121 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
122 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
123 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
124 pomiedzy dwoma hostami.
126 Ten pakiet zawiera serwer sshd (do którego mog± ³±czyæ siê klienci
129 %package gnome-askpass
130 Summary: OpenSSH GNOME passphrase dialog
131 Summary(pl): Odpytywacz has³a OpenSSH dla GNOME
132 Group: Applications/Networking
133 Group(de): Applikationen/Netzwerkwesen
134 Group(pl): Aplikacje/Sieciowe
135 Requires: %{name} = %{version}
136 Obsoletes: ssh-extras < %{version}, ssh-extras > %{version}
137 Obsoletes: ssh-askpass < %{version}, ssh-askpass > %{version}
138 Obsoletes: openssh-askpass < %{version}, openssh-askpass > %{version}
140 %description gnome-askpass
141 Ssh (Secure Shell) a program for logging into a remote machine and for
142 executing commands in a remote machine. It is intended to replace
143 rlogin and rsh, and provide secure encrypted communications between
144 two untrusted hosts over an insecure network. X11 connections and
145 arbitrary TCP/IP ports can also be forwarded over the secure channel.
147 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
148 it up to date in terms of security and features, as well as removing
149 all patented algorithms to seperate libraries (OpenSSL).
151 This package contains the GNOME passphrase dialog.
153 %description -l pl gnome-askpass
154 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
155 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
156 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
157 pomiedzy dwoma hostami.
159 Ten pakiet zawiera ,,odpytywacz has³a'' dla GNOME.
170 %{!?bcond_off_gnome:--with-gnome-askpass} \
171 --with-tcp-wrappers \
172 --with-md5-passwords \
173 --with-ipaddr-display \
179 echo '#define LOGIN_PROGRAM "/bin/login"' >>config.h
183 %{!?bcond_off_gnome: cd contrib && gcc $RPM_OPT_FLAGS `gnome-config --cflags gnome gnomeui` } \
184 %{!?bcond_off_gnome: gnome-ssh-askpass.c -o gnome-ssh-askpass } \
185 %{!?bcond_off_gnome: `gnome-config --libs gnome gnomeui` }
188 rm -rf $RPM_BUILD_ROOT
190 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{pam.d,rc.d/init.d,sysconfig,security}}
192 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
194 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/sshd
195 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/passwdssh
196 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/sshd
197 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
198 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ssh_config
199 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sshd_config
200 install -d $RPM_BUILD_ROOT%{_libexecdir}/ssh
201 %{!?bcond_off_gnome:install contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass}
203 gzip -9nf *.RNG TODO README OVERVIEW CREDITS Change*
205 touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
208 rm -rf $RPM_BUILD_ROOT
211 /sbin/chkconfig --add sshd
212 if [ ! -f %{_sysconfdir}/ssh_host_key -o ! -s %{_sysconfdir}/ssh_host_key ]; then
213 %{_bindir}/ssh-keygen -b 1024 -f %{_sysconfdir}/ssh_host_key -N '' 1>&2
214 chmod 600 %{_sysconfdir}/ssh_host_key
216 if [ ! -f %{_sysconfdir}/ssh_host_dsa_key -o ! -s %{_sysconfdir}/ssh_host_dsa_key ]; then
217 %{_bindir}/ssh-keygen -d -f %{_sysconfdir}/ssh_host_dsa_key -N '' 1>&2
218 chmod 600 %{_sysconfdir}/ssh_host_dsa_key
220 if [ -f /var/lock/subsys/sshd ]; then
221 /etc/rc.d/init.d/sshd restart 1>&2
223 echo "Run \"/etc/rc.d/init.d/sshd start\" to start openssh daemon."
225 if ! grep ssh /etc/security/passwd.conf >/dev/null 2>&1 ; then
226 echo "ssh" >> /etc/security/passwd.conf
230 if [ "$1" = "0" ]; then
231 if [ -f /var/lock/subsys/sshd ]; then
232 /etc/rc.d/init.d/sshd stop 1>&2
234 /sbin/chkconfig --del sshd
238 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_bindir}/ssh-key*
241 %{_mandir}/man1/ssh-key*.1*
245 %defattr(644,root,root,755)
246 %attr(0755,root,root) %{_bindir}/ssh
247 %attr(0755,root,root) %{_bindir}/slogin
248 %attr(0755,root,root) %{_bindir}/sftp
249 %attr(0755,root,root) %{_bindir}/ssh-agent
250 %attr(0755,root,root) %{_bindir}/ssh-add
251 %attr(755,root,root) %{_bindir}/scp
252 %{_mandir}/man1/scp.1*
253 %{_mandir}/man1/ssh.1*
254 %{_mandir}/man1/sftp.1*
255 %{_mandir}/man1/ssh-agent.1*
256 %{_mandir}/man1/ssh-add.1*
257 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ssh_config
260 %defattr(644,root,root,755)
261 %attr(755,root,root) %{_sbindir}/sshd
262 %attr(755,root,root) %{_libexecdir}/sftp-server
263 %{_mandir}/man8/sshd.8*
264 %{_mandir}/man8/sftp-server.8*
265 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sshd_config
266 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/sshd
267 %attr(640,root,root) %{_sysconfdir}/primes
268 %attr(754,root,root) /etc/rc.d/init.d/sshd
269 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sshd
270 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.sshd
272 %{!?bcond_off_gnome:%files gnome-askpass}
273 %{!?bcond_off_gnome:%defattr(644,root,root,755)}
274 %{!?bcond_off_gnome:%dir %{_libexecdir}/ssh}
275 %{!?bcond_off_gnome:%attr(755,root,root) %{_libexecdir}/ssh/ssh-askpass}