2 %define oversion 2.2.0p2
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 Summary: OpenSSH free Secure Shell (SSH) implementation
17 Packager: Damien Miller <djm@mindrot.org>
18 URL: http://www.openssh.com/
19 Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{oversion}.tar.gz
20 Source1: http://www.ntrnet.net/~jmknoble/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz
22 Group: Applications/Internet
23 BuildRoot: /tmp/openssh-%{version}-buildroot
25 PreReq: openssl >= 0.9.5a
26 Requires: openssl >= 0.9.5a
28 BuildPreReq: openssl-devel
29 BuildPreReq: tcp_wrappers
30 %if ! %{no_gnome_askpass}
31 BuildPreReq: gnome-libs-devel
35 Summary: OpenSSH Secure Shell protocol clients
37 Group: Applications/Internet
38 Obsoletes: ssh-clients
41 Summary: OpenSSH Secure Shell protocol server (sshd)
42 Group: System Environment/Daemons
44 PreReq: openssh chkconfig >= 0.9
47 Summary: OpenSSH X11 passphrase dialog
48 Group: Applications/Internet
52 %package askpass-gnome
53 Summary: OpenSSH GNOME passphrase dialog
54 Group: Applications/Internet
59 Ssh (Secure Shell) a program for logging into a remote machine and for
60 executing commands in a remote machine. It is intended to replace
61 rlogin and rsh, and provide secure encrypted communications between
62 two untrusted hosts over an insecure network. X11 connections and
63 arbitrary TCP/IP ports can also be forwarded over the secure channel.
65 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
66 up to date in terms of security and features, as well as removing all
67 patented algorithms to seperate libraries (OpenSSL).
69 This package includes the core files necessary for both the OpenSSH
70 client and server. To make this package useful, you should also
71 install openssh-clients, openssh-server, or both.
74 Ssh (Secure Shell) a program for logging into a remote machine and for
75 executing commands in a remote machine. It is intended to replace
76 rlogin and rsh, and provide secure encrypted communications between
77 two untrusted hosts over an insecure network. X11 connections and
78 arbitrary TCP/IP ports can also be forwarded over the secure channel.
80 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
81 up to date in terms of security and features, as well as removing all
82 patented algorithms to seperate libraries (OpenSSL).
84 This package includes the clients necessary to make encrypted connections
88 Ssh (Secure Shell) a program for logging into a remote machine and for
89 executing commands in a remote machine. It is intended to replace
90 rlogin and rsh, and provide secure encrypted communications between
91 two untrusted hosts over an insecure network. X11 connections and
92 arbitrary TCP/IP ports can also be forwarded over the secure channel.
94 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
95 up to date in terms of security and features, as well as removing all
96 patented algorithms to seperate libraries (OpenSSL).
98 This package contains the secure shell daemon. The sshd is the server
99 part of the secure shell protocol and allows ssh clients to connect to
103 Ssh (Secure Shell) a program for logging into a remote machine and for
104 executing commands in a remote machine. It is intended to replace
105 rlogin and rsh, and provide secure encrypted communications between
106 two untrusted hosts over an insecure network. X11 connections and
107 arbitrary TCP/IP ports can also be forwarded over the secure channel.
109 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
110 up to date in terms of security and features, as well as removing all
111 patented algorithms to seperate libraries (OpenSSL).
113 This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase
116 %description askpass-gnome
117 Ssh (Secure Shell) a program for logging into a remote machine and for
118 executing commands in a remote machine. It is intended to replace
119 rlogin and rsh, and provide secure encrypted communications between
120 two untrusted hosts over an insecure network. X11 connections and
121 arbitrary TCP/IP ports can also be forwarded over the secure channel.
123 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
124 up to date in terms of security and features, as well as removing all
125 patented algorithms to seperate libraries (OpenSSL).
127 This package contains the GNOME passphrase dialog.
130 * Tue Sep 05 2000 Damien Miller <djm@mindrot.org>
131 - Use RPM configure macro
132 * Tue Aug 08 2000 Damien Miller <djm@mindrot.org>
133 - Some surgery to sshd.init (generate keys at runtime)
134 - Cleanup of groups and removal of keygen calls
135 * Wed Jul 12 2000 Damien Miller <djm@mindrot.org>
136 - Make building of X11-askpass and gnome-askpass optional
137 * Mon Jun 12 2000 Damien Miller <djm@mindrot.org>
138 - Glob manpages to catch compressed files
139 * Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
140 - Updated for new location
141 - Updated for new gnome-ssh-askpass build
142 * Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
143 - Added Jim Knoble's <jmknoble@pobox.com> askpass
144 * Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
145 - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
146 * Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
147 - Added 'Obsoletes' directives
148 * Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
151 * Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
152 - Added links for slogin
153 - Fixed perms on manpages
154 * Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
155 - Renamed init script
156 * Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
157 - Back to old binary names
158 * Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
161 * Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
162 - Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
170 %configure --sysconfdir=/etc/ssh --libexecdir=/usr/libexec/openssh \
171 --with-tcp-wrappers --with-rsh=/usr/bin/rsh
175 %if ! %{no_x11_askpass}
176 cd x11-ssh-askpass-%{aversion}
182 %if ! %{no_gnome_askpass}
184 gcc -O -g `gnome-config --cflags gnome gnomeui` \
185 gnome-ssh-askpass.c -o gnome-ssh-askpass \
186 `gnome-config --libs gnome gnomeui`
191 rm -rf $RPM_BUILD_ROOT
192 make install DESTDIR=$RPM_BUILD_ROOT/
194 install -d $RPM_BUILD_ROOT/etc/pam.d/
195 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
196 install -d $RPM_BUILD_ROOT/usr/libexec/openssh
197 install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
198 install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
200 %if ! %{no_x11_askpass}
201 install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/x11-ssh-askpass
202 ln -s /usr/libexec/openssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/ssh-askpass
205 %if ! %{no_gnome_askpass}
206 install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/gnome-ssh-askpass
210 rm -rf $RPM_BUILD_ROOT
213 /sbin/chkconfig --add sshd
214 if test -r /var/run/sshd.pid ; then
215 /etc/rc.d/init.d/sshd restart >&2
219 if [ "$1" = 0 ] ; then
220 /etc/rc.d/init.d/sshd stop >&2
221 /sbin/chkconfig --del sshd
225 %defattr(-,root,root)
226 %doc ChangeLog OVERVIEW COPYING.Ylonen README* INSTALL
227 %doc CREDITS UPGRADING
228 %attr(0755,root,root) /usr/bin/ssh-keygen
229 %attr(0755,root,root) /usr/bin/scp
230 %attr(0644,root,root) /usr/man/man1/ssh-keygen.1*
231 %attr(0644,root,root) /usr/man/man1/scp.1*
232 %attr(0755,root,root) %dir /etc/ssh
233 %attr(0755,root,root) %dir /usr/libexec/openssh
236 %defattr(-,root,root)
237 %attr(4755,root,root) /usr/bin/ssh
238 %attr(0755,root,root) /usr/bin/ssh-agent
239 %attr(0755,root,root) /usr/bin/ssh-add
240 %attr(0644,root,root) /usr/man/man1/ssh.1*
241 %attr(0644,root,root) /usr/man/man1/ssh-agent.1*
242 %attr(0644,root,root) /usr/man/man1/ssh-add.1*
243 %attr(0644,root,root) %config(noreplace) /etc/ssh/ssh_config
244 %attr(-,root,root) /usr/bin/slogin
245 %attr(-,root,root) /usr/man/man1/slogin.1*
248 %defattr(-,root,root)
249 %attr(0755,root,root) /usr/sbin/sshd
250 %attr(0644,root,root) /usr/man/man8/sshd.8*
251 %attr(0600,root,root) %config(noreplace) /etc/ssh/sshd_config
252 %attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
253 %attr(0755,root,root) %config /etc/rc.d/init.d/sshd
255 %if ! %{no_x11_askpass}
257 %defattr(-,root,root)
258 %doc x11-ssh-askpass-%{aversion}/README
259 %doc x11-ssh-askpass-%{aversion}/ChangeLog
260 %doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
261 %attr(0755,root,root) /usr/libexec/openssh/ssh-askpass
262 %attr(0755,root,root) /usr/libexec/openssh/x11-ssh-askpass
265 %if ! %{no_gnome_askpass}
267 %defattr(-,root,root)
268 %attr(0755,root,root) /usr/libexec/openssh/gnome-ssh-askpass