2 %define oversion 2.5.2p1
4 # Version of ssh-askpass
7 # Do we want to disable building of x11-askpass? (1=yes 0=no)
8 %define no_x11_askpass 0
10 # Do we want to disable building of gnome-askpass? (1=yes 0=no)
11 %define no_gnome_askpass 0
13 # Do we want to link against a static libcrypto? (1=yes 0=no)
14 %define static_libcrypto 0
16 # Use Redhat 7.0 pam control file
19 # Reserve options to override askpass settings with:
20 # rpm -ba|--rebuild --define 'skip_xxx 1'
21 %{?skip_x11_askpass:%define no_x11_askpass 1}
22 %{?skip_gnome_askpass:%define no_gnome_askpass 1}
24 # Options for Redhat version:
25 # rpm -ba|--rebuild --define "rh7 1"
26 %{?rh7:%define redhat7 1}
28 # Options for static OpenSSL link:
29 # rpm -ba|--rebuild --define "static_openssl 1"
30 %{?static_openssl:%define static_libcrypto 1}
32 %define exact_openssl_version %(rpm -q openssl | cut -d - -f 2)
34 Summary: OpenSSH free Secure Shell (SSH) implementation
38 Packager: Damien Miller <djm@mindrot.org>
39 URL: http://www.openssh.com/
40 Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{oversion}.tar.gz
41 %if ! %{no_x11_askpass}
42 Source1: http://www.jmknoble.cx/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz
45 Group: Applications/Internet
46 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
48 BuildPreReq: perl, openssl-devel, tcp_wrappers
49 BuildPreReq: /bin/login, /usr/include/security/pam_appl.h
50 BuildPreReq: rpm >= 3.0.5
51 %if ! %{no_gnome_askpass}
52 BuildPreReq: gnome-libs-devel
54 %if ! %{static_libcrypto}
55 PreReq: openssl >= 0.9.5a
56 PreReq: openssl = %{exact_openssl_version}
57 Requires: openssl >= 0.9.5a
59 Requires: rpm >= 3.0.5
62 Summary: OpenSSH Secure Shell protocol clients
63 Requires: openssh = %{version}-%{release}
64 Group: Applications/Internet
65 Obsoletes: ssh-clients
68 Summary: OpenSSH Secure Shell protocol server (sshd)
69 Group: System Environment/Daemons
71 PreReq: openssh = %{version}-%{release}, chkconfig >= 0.9
73 Requires: /etc/pam.d/system-auth
77 Summary: OpenSSH X11 passphrase dialog
78 Group: Applications/Internet
79 Requires: openssh = %{version}-%{release}
82 %package askpass-gnome
83 Summary: OpenSSH GNOME passphrase dialog
84 Group: Applications/Internet
85 Requires: openssh = %{version}-%{release}
89 Ssh (Secure Shell) a program for logging into a remote machine and for
90 executing commands in a remote machine. It is intended to replace
91 rlogin and rsh, and provide secure encrypted communications between
92 two untrusted hosts over an insecure network. X11 connections and
93 arbitrary TCP/IP ports can also be forwarded over the secure channel.
95 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
96 up to date in terms of security and features, as well as removing all
97 patented algorithms to separate libraries (OpenSSL).
99 This package includes the core files necessary for both the OpenSSH
100 client and server. To make this package useful, you should also
101 install openssh-clients, openssh-server, or both.
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 it
111 up to date in terms of security and features, as well as removing all
112 patented algorithms to separate libraries (OpenSSL).
114 This package includes the clients necessary to make encrypted connections
118 Ssh (Secure Shell) a program for logging into a remote machine and for
119 executing commands in a remote machine. It is intended to replace
120 rlogin and rsh, and provide secure encrypted communications between
121 two untrusted hosts over an insecure network. X11 connections and
122 arbitrary TCP/IP ports can also be forwarded over the secure channel.
124 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
125 up to date in terms of security and features, as well as removing all
126 patented algorithms to separate libraries (OpenSSL).
128 This package contains the secure shell daemon. The sshd is the server
129 part of the secure shell protocol and allows ssh clients to connect to
133 Ssh (Secure Shell) a program for logging into a remote machine and for
134 executing commands in a remote machine. It is intended to replace
135 rlogin and rsh, and provide secure encrypted communications between
136 two untrusted hosts over an insecure network. X11 connections and
137 arbitrary TCP/IP ports can also be forwarded over the secure channel.
139 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
140 up to date in terms of security and features, as well as removing all
141 patented algorithms to separate libraries (OpenSSL).
143 This package contains Jim Knoble's <jmknoble@jmknoble.cx> X11 passphrase
146 %description askpass-gnome
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 it
154 up to date in terms of security and features, as well as removing all
155 patented algorithms to separate libraries (OpenSSL).
157 This package contains the GNOME passphrase dialog.
161 %if ! %{no_x11_askpass}
169 %define _sysconfdir /etc/ssh
172 --libexecdir=%{_libexecdir}/openssh \
174 --with-tcp-wrappers \
175 --with-ipv4-default \
176 --with-rsh=/usr/bin/rsh \
177 --with-default-path=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
179 %if %{static_libcrypto}
180 perl -pi -e "s|-lcrypto|/usr/lib/libcrypto.a|g" Makefile
185 %if ! %{no_x11_askpass}
186 pushd x11-ssh-askpass-%{aversion}
192 %if ! %{no_gnome_askpass}
194 gcc -O -g `gnome-config --cflags gnome gnomeui` \
195 gnome-ssh-askpass.c -o gnome-ssh-askpass \
196 `gnome-config --libs gnome gnomeui`
201 rm -rf $RPM_BUILD_ROOT
203 libexecdir=$RPM_BUILD_ROOT%{_libexecdir}/openssh \
204 DESTDIR=/ # Hack to disable key generation
207 install -d $RPM_BUILD_ROOT/etc/pam.d/
208 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
209 install -d $RPM_BUILD_ROOT%{_libexecdir}/openssh
211 install -m644 contrib/redhat/sshd.pam-7.x $RPM_BUILD_ROOT/etc/pam.d/sshd
213 install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
215 install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
217 %if ! %{no_x11_askpass}
218 install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/x11-ssh-askpass
219 ln -s /usr/libexec/openssh/x11-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/ssh-askpass
222 %if ! %{no_gnome_askpass}
223 install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/gnome-ssh-askpass
226 perl -pi -e "s|$RPM_BUILD_ROOT||g" $RPM_BUILD_ROOT%{_mandir}/man*/*
229 rm -rf $RPM_BUILD_ROOT
232 /sbin/chkconfig --add sshd
233 if test -r /var/run/sshd.pid ; then
234 /etc/rc.d/init.d/sshd restart >&2
238 if [ "$1" = 0 ] ; then
239 /etc/rc.d/init.d/sshd stop >&2
240 /sbin/chkconfig --del sshd
244 %defattr(-,root,root)
245 %doc ChangeLog OVERVIEW README* INSTALL
247 %attr(0755,root,root) %{_bindir}/ssh-keygen
248 %attr(0755,root,root) %{_bindir}/scp
249 %attr(0755,root,root) %{_bindir}/ssh-keyscan
250 %attr(0644,root,root) %{_mandir}/man1/ssh-keygen.1*
251 %attr(0644,root,root) %{_mandir}/man1/ssh-keyscan.1*
252 %attr(0644,root,root) %{_mandir}/man1/scp.1*
253 %attr(0755,root,root) %dir %{_sysconfdir}
254 %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/primes
255 %attr(0755,root,root) %dir %{_libexecdir}/openssh
258 %defattr(-,root,root)
259 %attr(4755,root,root) %{_bindir}/ssh
260 %attr(0755,root,root) %{_bindir}/ssh-agent
261 %attr(0755,root,root) %{_bindir}/ssh-add
262 %attr(0755,root,root) %{_bindir}/ssh-keyscan
263 %attr(0755,root,root) %{_bindir}/sftp
264 %attr(0644,root,root) %{_mandir}/man1/ssh.1*
265 %attr(0644,root,root) %{_mandir}/man1/ssh-agent.1*
266 %attr(0644,root,root) %{_mandir}/man1/ssh-add.1*
267 %attr(0644,root,root) %{_mandir}/man1/ssh-keyscan.1*
268 %attr(0644,root,root) %{_mandir}/man1/sftp.1*
269 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ssh_config
270 %attr(-,root,root) %{_bindir}/slogin
271 %attr(-,root,root) %{_mandir}/man1/slogin.1*
274 %defattr(-,root,root)
275 %attr(0755,root,root) %{_sbindir}/sshd
276 %attr(0755,root,root) %{_libexecdir}/openssh/sftp-server
277 %attr(0644,root,root) %{_mandir}/man8/sshd.8*
278 %attr(0644,root,root) %{_mandir}/man8/sftp-server.8*
279 #%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sshd_config
280 %attr(0600,root,root) %config %{_sysconfdir}/sshd_config
281 %attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
282 %attr(0755,root,root) %config /etc/rc.d/init.d/sshd
284 %if ! %{no_x11_askpass}
286 %defattr(-,root,root)
287 %doc x11-ssh-askpass-%{aversion}/README
288 %doc x11-ssh-askpass-%{aversion}/ChangeLog
289 %doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
290 %attr(0755,root,root) %{_libexecdir}/openssh/ssh-askpass
291 %attr(0755,root,root) %{_libexecdir}/openssh/x11-ssh-askpass
294 %if ! %{no_gnome_askpass}
296 %defattr(-,root,root)
297 %attr(0755,root,root) %{_libexecdir}/openssh/gnome-ssh-askpass
301 * Mon Oct 18 2000 Damien Miller <djm@mindrot.org>
302 - Merge some of Nalin Dahyabhai <nalin@redhat.com> changes from the
304 * Tue Sep 05 2000 Damien Miller <djm@mindrot.org>
305 - Use RPM configure macro
306 * Tue Aug 08 2000 Damien Miller <djm@mindrot.org>
307 - Some surgery to sshd.init (generate keys at runtime)
308 - Cleanup of groups and removal of keygen calls
309 * Wed Jul 12 2000 Damien Miller <djm@mindrot.org>
310 - Make building of X11-askpass and gnome-askpass optional
311 * Mon Jun 12 2000 Damien Miller <djm@mindrot.org>
312 - Glob manpages to catch compressed files
313 * Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
314 - Updated for new location
315 - Updated for new gnome-ssh-askpass build
316 * Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
317 - Added Jim Knoble's <jmknoble@pobox.com> askpass
318 * Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
319 - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
320 * Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
321 - Added 'Obsoletes' directives
322 * Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
325 * Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
326 - Added links for slogin
327 - Fixed perms on manpages
328 * Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
329 - Renamed init script
330 * Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
331 - Back to old binary names
332 * Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
335 * Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
336 - Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.