3 # _without_gnome - without gnome-askpass utility
5 Summary: OpenSSH free Secure Shell (SSH) implementation
6 Summary(pl): Publicznie dostêpna implementacja bezpiecznego shella (SSH)
11 Group: Applications/Networking
12 Group(de): Applikationen/Netzwerkwesen
13 Group(pl): Aplikacje/Sieciowe
14 Source0: ftp://ftp.ca.openbsd.org/pub/OpenBSD/OpenSSH/portable/%{name}-%{version}.tar.gz
15 Source1: %{name}d.conf
17 Source3: %{name}d.init
18 Source4: %{name}d.pamd
19 Source5: %{name}.sysconfig
21 Patch0: %{name}-libwrap.patch
22 Patch1: %{name}-no_libnsl.patch
23 Patch2: %{name}-no-openssl-ver-check.patch
24 Patch3: %{name}-set_12.patch
25 URL: http://www.openssh.com/
26 BuildRequires: XFree86-devel
27 BuildRequires: autoconf
28 BuildRequires: automake
29 %{!?_without_gnome:BuildRequires: gnome-libs-devel}
30 BuildRequires: openssl-devel >= 0.9.6a
31 BuildRequires: pam-devel
32 BuildRequires: zlib-devel
33 BuildRequires: libwrap-devel
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 Obsoletes: ssh < %{version}
37 Obsoletes: ssh > %{version}
39 %define _sysconfdir /etc/ssh
40 %define _libexecdir %{_libdir}/%{name}
43 Ssh (Secure Shell) a program for logging into a remote machine and for
44 executing commands in a remote machine. It is intended to replace
45 rlogin and rsh, and provide secure encrypted communications between
46 two untrusted hosts over an insecure network. X11 connections and
47 arbitrary TCP/IP ports can also be forwarded over the secure channel.
49 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
50 it up to date in terms of security and features, as well as removing
51 all patented algorithms to seperate libraries (OpenSSL).
53 This package includes the core files necessary for both the OpenSSH
54 client and server. To make this package useful, you should also
55 install openssh-clients, openssh-server, or both.
58 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
59 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
60 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
61 pomiedzy dwoma hostami.
64 Summary: OpenSSH Secure Shell protocol clients
65 Summary(pl): Klienci protoko³u Secure Shell
67 Group: Applications/Networking
68 Group(de): Applikationen/Netzwerkwesen
69 Group(pl): Aplikacje/Sieciowe
70 Obsoletes: ssh-clients < %{version}
71 Obsoletes: ssh-clients > %{version}
72 Requires: %{name} = %{version}
75 Ssh (Secure Shell) a program for logging into a remote machine and for
76 executing commands in a remote machine. It is intended to replace
77 rlogin and rsh, and provide secure encrypted communications between
78 two untrusted hosts over an insecure network. X11 connections and
79 arbitrary TCP/IP ports can also be forwarded over the secure channel.
81 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
82 it up to date in terms of security and features, as well as removing
83 all patented algorithms to seperate libraries (OpenSSL).
85 This package includes the clients necessary to make encrypted
86 connections to SSH servers.
88 %description -l pl clients
89 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
90 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
91 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
92 pomiedzy dwoma hostami.
94 Ten pakiet zawiera klientów s³u¿±cych do ³±czenia siê z serwerami SSH.
97 Summary: OpenSSH Secure Shell protocol server (sshd)
98 Summary(pl): Serwer protoko³u Secure Shell (sshd)
100 Requires: chkconfig >= 0.9
101 Group: Networking/Daemons
102 Group(de): Netzwerkwesen/Server
103 Group(pl): Sieciowe/Serwery
104 Obsoletes: ssh-server < %{version}, ssh-server > %{version}
108 Prereq: /sbin/chkconfig
109 Prereq: %{name} = %{version}
112 Ssh (Secure Shell) a program for logging into a remote machine and for
113 executing commands in a remote machine. It is intended to replace
114 rlogin and rsh, and provide secure encrypted communications between
115 two untrusted hosts over an insecure network. X11 connections and
116 arbitrary TCP/IP ports can also be forwarded over the secure channel.
118 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
119 it up to date in terms of security and features, as well as removing
120 all patented algorithms to seperate libraries (OpenSSL).
122 This package contains the secure shell daemon. The sshd is the server
123 part of the secure shell protocol and allows ssh clients to connect to
126 %description -l pl server
127 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
128 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
129 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
130 pomiedzy dwoma hostami.
132 Ten pakiet zawiera serwer sshd (do którego mog± ³±czyæ siê klienci
135 %package gnome-askpass
136 Summary: OpenSSH GNOME passphrase dialog
137 Summary(pl): Odpytywacz has³a OpenSSH dla GNOME
138 Group: Applications/Networking
139 Group(de): Applikationen/Netzwerkwesen
140 Group(pl): Aplikacje/Sieciowe
141 Requires: %{name} = %{version}
142 Obsoletes: ssh-extras < %{version}, ssh-extras > %{version}
143 Obsoletes: ssh-askpass < %{version}, ssh-askpass > %{version}
144 Obsoletes: openssh-askpass < %{version}, openssh-askpass > %{version}
146 %description gnome-askpass
147 Ssh (Secure Shell) a program for logging into a remote machine and for
148 executing commands in a remote machine. It is intended to replace
149 rlogin and rsh, and provide secure encrypted communications between
150 two untrusted hosts over an insecure network. X11 connections and
151 arbitrary TCP/IP ports can also be forwarded over the secure channel.
153 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
154 it up to date in terms of security and features, as well as removing
155 all patented algorithms to seperate libraries (OpenSSL).
157 This package contains the GNOME passphrase dialog.
159 %description -l pl gnome-askpass
160 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
161 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
162 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
163 pomiedzy dwoma hostami.
165 Ten pakiet zawiera ,,odpytywacz has³a'' dla GNOME.
178 %{!?_without_gnome:--with-gnome-askpass} \
179 --with-tcp-wrappers \
182 --with-md5-passwords \
183 --with-ipaddr-display \
186 --with-pid-dir=%{_localstatedir}/run
188 echo '#define LOGIN_PROGRAM "/bin/login"' >>config.h
192 %{!?_without_gnome: cd contrib && %{__cc} %{rpmcflags} `gnome-config --cflags gnome gnomeui gtk` } \
193 %{!?_without_gnome: gnome-ssh-askpass.c -o gnome-ssh-askpass } \
194 %{!?_without_gnome: `gnome-config --libs gnome gnomeui gtk` }
197 rm -rf $RPM_BUILD_ROOT
198 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{pam.d,rc.d/init.d,sysconfig,security}}
200 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
202 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/sshd
203 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/passwdssh
204 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/sshd
205 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
206 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ssh_config
207 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sshd_config
208 install -d $RPM_BUILD_ROOT%{_libexecdir}/ssh
209 %{!?_without_gnome:install contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass}
211 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
212 echo ".so man1/ssh.1" > $RPM_BUILD_ROOT%{_mandir}/man1/slogin.1
214 gzip -9nf *.RNG TODO README OVERVIEW CREDITS Change*
216 touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
219 rm -rf $RPM_BUILD_ROOT
222 /sbin/chkconfig --add sshd
223 if [ -f /var/lock/subsys/sshd ]; then
224 /etc/rc.d/init.d/sshd restart 1>&2
226 echo "Run \"/etc/rc.d/init.d/sshd start\" to start openssh daemon."
228 if ! grep ssh /etc/security/passwd.conf >/dev/null 2>&1 ; then
229 echo "ssh" >> /etc/security/passwd.conf
233 if [ "$1" = "0" ]; then
234 if [ -f /var/lock/subsys/sshd ]; then
235 /etc/rc.d/init.d/sshd stop 1>&2
237 /sbin/chkconfig --del sshd
241 %defattr(644,root,root,755)
243 %attr(755,root,root) %{_bindir}/ssh-key*
244 %{_mandir}/man1/ssh-key*.1*
248 %defattr(644,root,root,755)
249 %attr(0755,root,root) %{_bindir}/ssh
250 %attr(0755,root,root) %{_bindir}/slogin
251 %attr(0755,root,root) %{_bindir}/sftp
252 %attr(0755,root,root) %{_bindir}/ssh-agent
253 %attr(0755,root,root) %{_bindir}/ssh-add
254 %attr(755,root,root) %{_bindir}/scp
255 %{_mandir}/man1/scp.1*
256 %{_mandir}/man1/ssh.1*
257 %{_mandir}/man1/slogin.1*
258 %{_mandir}/man1/sftp.1*
259 %{_mandir}/man1/ssh-agent.1*
260 %{_mandir}/man1/ssh-add.1*
261 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ssh_config
264 %defattr(644,root,root,755)
265 %attr(755,root,root) %{_sbindir}/sshd
266 %attr(755,root,root) %{_libexecdir}/sftp-server
268 %{_mandir}/man8/sshd.8*
269 %{_mandir}/man8/sftp-server.8*
270 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sshd_config
271 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/sshd
272 %attr(640,root,root) %{_sysconfdir}/moduli
273 %attr(754,root,root) /etc/rc.d/init.d/sshd
274 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sshd
275 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.sshd
277 %{!?_without_gnome:%files gnome-askpass}
278 %{!?_without_gnome:%defattr(644,root,root,755)}
279 %{!?_without_gnome:%dir %{_libexecdir}/ssh}
280 %{!?_without_gnome:%attr(755,root,root) %{_libexecdir}/ssh/ssh-askpass}