Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 1 | # Version of OpenSSH |
| 2 | %define oversion 1.2.1pre21 |
| 3 | |
| 4 | # Version of ssh-askpass |
| 5 | %define aversion 0.99 |
| 6 | |
| 7 | # Define if you want to build x11-ssh-askpass |
| 8 | #%define BUILD_X11_ASKPASS |
| 9 | |
| 10 | # Define if you want to build gnome-askpass |
| 11 | #%define BUILD_GNOME_ASKPASS |
| 12 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 13 | Summary: OpenSSH free Secure Shell (SSH) implementation |
| 14 | Name: openssh |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 15 | Version: %{oversion} |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 16 | Release: 1 |
| 17 | Packager: Damien Miller <djm@ibs.com.au> |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 18 | Source0: http://violet.ibs.com.au/openssh/files/openssh-%{oversion}.tar.gz |
| 19 | %ifdef BUILD_X11_ASKPASS |
| 20 | Source1: http://www.pobox.com/~jmknoble/jmk/x11-ssh-askpass-%{aversion}.tar.gz |
| 21 | %endif |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 22 | Copyright: BSD |
| 23 | Group: Applications/Internet |
| 24 | BuildRoot: /tmp/openssh-%{version}-buildroot |
Damien Miller | c6d5ce8 | 1999-11-15 16:01:07 +1100 | [diff] [blame] | 25 | Obsoletes: ssh |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 26 | Requires: openssl |
| 27 | PreReq: openssl |
| 28 | BuildPreReq: openssl-devel |
Damien Miller | aca55fe | 1999-12-07 16:31:18 +1100 | [diff] [blame] | 29 | BuildPreReq: tcp_wrappers |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 30 | |
| 31 | %ifdef BUILD_GNOME_ASKPASS |
| 32 | BuildPreReq: gnome-libs-devel |
| 33 | %endif |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 34 | |
| 35 | %package clients |
| 36 | Summary: OpenSSH Secure Shell protocol clients |
| 37 | Requires: openssh |
| 38 | Group: System Environment/Daemons |
Damien Miller | c6d5ce8 | 1999-11-15 16:01:07 +1100 | [diff] [blame] | 39 | Obsoletes: ssh-clients |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 40 | |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 41 | %package server |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 42 | Summary: OpenSSH Secure Shell protocol server (sshd) |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 43 | Requires: openssh chkconfig >= 0.9 |
| 44 | Group: System Environment/Daemons |
Damien Miller | c6d5ce8 | 1999-11-15 16:01:07 +1100 | [diff] [blame] | 45 | Obsoletes: ssh-server |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 46 | |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 47 | %ifdef BUILD_X11_ASKPASS |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 48 | %package askpass |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 49 | Summary: OpenSSH X11 passphrase dialog |
| 50 | Group: Applications/Internet |
| 51 | Requires: openssh |
| 52 | Obsoletes: ssh-extras |
| 53 | %endif |
| 54 | |
| 55 | %ifdef BUILD_GNOME_ASKPASS |
| 56 | %package askpass-gnome |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 57 | Summary: OpenSSH GNOME passphrase dialog |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 58 | Group: Applications/Internet |
| 59 | Requires: openssh |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 60 | Obsoletes: ssh-extras |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 61 | %endif |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 62 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 63 | %description |
| 64 | Ssh (Secure Shell) a program for logging into a remote machine and for |
| 65 | executing commands in a remote machine. It is intended to replace |
| 66 | rlogin and rsh, and provide secure encrypted communications between |
| 67 | two untrusted hosts over an insecure network. X11 connections and |
| 68 | arbitrary TCP/IP ports can also be forwarded over the secure channel. |
| 69 | |
| 70 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it |
| 71 | up to date in terms of security and features, as well as removing all |
| 72 | patented algorithms to seperate libraries (OpenSSL). |
| 73 | |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 74 | This package includes the core files necessary for both the OpenSSH |
| 75 | client and server. To make this package useful, you should also |
| 76 | install openssh-clients, openssh-server, or both. |
| 77 | |
| 78 | %description clients |
| 79 | Ssh (Secure Shell) a program for logging into a remote machine and for |
| 80 | executing commands in a remote machine. It is intended to replace |
| 81 | rlogin and rsh, and provide secure encrypted communications between |
| 82 | two untrusted hosts over an insecure network. X11 connections and |
| 83 | arbitrary TCP/IP ports can also be forwarded over the secure channel. |
| 84 | |
| 85 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it |
| 86 | up to date in terms of security and features, as well as removing all |
| 87 | patented algorithms to seperate libraries (OpenSSL). |
| 88 | |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 89 | This package includes the clients necessary to make encrypted connections |
| 90 | to SSH servers. |
| 91 | |
| 92 | %description server |
| 93 | Ssh (Secure Shell) a program for logging into a remote machine and for |
| 94 | executing commands in a remote machine. It is intended to replace |
| 95 | rlogin and rsh, and provide secure encrypted communications between |
| 96 | two untrusted hosts over an insecure network. X11 connections and |
| 97 | arbitrary TCP/IP ports can also be forwarded over the secure channel. |
| 98 | |
| 99 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it |
| 100 | up to date in terms of security and features, as well as removing all |
| 101 | patented algorithms to seperate libraries (OpenSSL). |
| 102 | |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 103 | This package contains the secure shell daemon. The sshd is the server |
| 104 | part of the secure shell protocol and allows ssh clients to connect to |
| 105 | your host. |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 106 | |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 107 | %ifdef BUILD_X11_ASKPASS |
| 108 | %package askpass-gnome |
| 109 | %description askpass |
| 110 | Ssh (Secure Shell) a program for logging into a remote machine and for |
| 111 | executing commands in a remote machine. It is intended to replace |
| 112 | rlogin and rsh, and provide secure encrypted communications between |
| 113 | two untrusted hosts over an insecure network. X11 connections and |
| 114 | arbitrary TCP/IP ports can also be forwarded over the secure channel. |
| 115 | |
| 116 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it |
| 117 | up to date in terms of security and features, as well as removing all |
| 118 | patented algorithms to seperate libraries (OpenSSL). |
| 119 | |
| 120 | This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase |
| 121 | dialog. |
| 122 | %endif |
| 123 | |
| 124 | %ifdef BUILD_GNOME_ASKPASS |
| 125 | %package askpass-gnome |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 126 | %description askpass |
| 127 | Ssh (Secure Shell) a program for logging into a remote machine and for |
| 128 | executing commands in a remote machine. It is intended to replace |
| 129 | rlogin and rsh, and provide secure encrypted communications between |
| 130 | two untrusted hosts over an insecure network. X11 connections and |
| 131 | arbitrary TCP/IP ports can also be forwarded over the secure channel. |
| 132 | |
| 133 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it |
| 134 | up to date in terms of security and features, as well as removing all |
| 135 | patented algorithms to seperate libraries (OpenSSL). |
| 136 | |
| 137 | This package contains the GNOME passphrase dialog. |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 138 | %endif |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 139 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 140 | %changelog |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 141 | * Sun Dec 26 1999 Damien Miller <djm@mindrot.org> |
| 142 | - Added Jim Knoble's <jmknoble@pobox.com> askpass |
| 143 | - Made subpackage building conditional |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 144 | * Mon Nov 15 1999 Damien Miller <djm@mindrot.org> |
| 145 | - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com> |
Damien Miller | 38c6088 | 1999-11-13 13:09:31 +1100 | [diff] [blame] | 146 | * Sat Nov 13 1999 Damien Miller <djm@mindrot.org> |
Damien Miller | c6d5ce8 | 1999-11-15 16:01:07 +1100 | [diff] [blame] | 147 | - Added 'Obsoletes' directives |
Damien Miller | 742d2cb | 1999-11-09 14:28:26 +1100 | [diff] [blame] | 148 | * Tue Nov 09 1999 Damien Miller <djm@ibs.com.au> |
| 149 | - Use make install |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 150 | - Subpackages |
Damien Miller | 356a0b0 | 1999-11-08 15:30:59 +1100 | [diff] [blame] | 151 | * Mon Nov 08 1999 Damien Miller <djm@ibs.com.au> |
| 152 | - Added links for slogin |
| 153 | - Fixed perms on manpages |
Damien Miller | 2bbb9d0 | 1999-10-30 09:46:20 +1000 | [diff] [blame] | 154 | * Sat Oct 30 1999 Damien Miller <djm@ibs.com.au> |
| 155 | - Renamed init script |
Damien Miller | 070f7a1 | 1999-10-29 10:29:29 +1000 | [diff] [blame] | 156 | * Fri Oct 29 1999 Damien Miller <djm@ibs.com.au> |
| 157 | - Back to old binary names |
Damien Miller | 0623076 | 1999-10-28 14:03:14 +1000 | [diff] [blame] | 158 | * Thu Oct 28 1999 Damien Miller <djm@ibs.com.au> |
| 159 | - Use autoconf |
| 160 | - New binary names |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 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. |
| 163 | |
| 164 | %prep |
| 165 | |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 166 | %ifdef BUILD_X11_ASKPASS |
| 167 | %setup -a 1 |
| 168 | %else |
| 169 | %setup |
| 170 | %endif |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 171 | |
| 172 | %build |
| 173 | |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 174 | %ifdef BUILD_GNOME_ASKPASS |
Damien Miller | 742d2cb | 1999-11-09 14:28:26 +1100 | [diff] [blame] | 175 | CFLAGS="$RPM_OPT_FLAGS" \ |
Damien Miller | aca55fe | 1999-12-07 16:31:18 +1100 | [diff] [blame] | 176 | ./configure --prefix=/usr --sysconfdir=/etc/ssh \ |
| 177 | --with-gnome-askpass --with-tcp-wrappers |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 178 | %else |
| 179 | CFLAGS="$RPM_OPT_FLAGS" \ |
| 180 | ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-tcp-wrappers |
| 181 | %endif |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 182 | |
Damien Miller | cdb8b1d | 1999-11-09 14:31:49 +1100 | [diff] [blame] | 183 | make |
| 184 | |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 185 | %ifdef BUILD_X11_ASKPASS |
| 186 | cd x11-ssh-askpass-%{aversion} |
| 187 | xmkmf -a |
| 188 | make |
| 189 | cd .. |
| 190 | %endif |
| 191 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 192 | %install |
| 193 | rm -rf $RPM_BUILD_ROOT |
Damien Miller | 742d2cb | 1999-11-09 14:28:26 +1100 | [diff] [blame] | 194 | make install prefix="$RPM_BUILD_ROOT/usr" |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 195 | |
Damien Miller | 2b72a4a | 1999-11-09 14:34:31 +1100 | [diff] [blame] | 196 | install -d $RPM_BUILD_ROOT/etc/ssh |
| 197 | install -d $RPM_BUILD_ROOT/etc/pam.d/ |
| 198 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 199 | install -m644 packages/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd |
| 200 | install -m755 packages/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 201 | install -m600 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config |
| 202 | install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 203 | |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 204 | %ifdef BUILD_X11_ASKPASS |
| 205 | install -s x11-ssh-askpass-%{aversion}/ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/x11-ssh-askpass |
| 206 | ln -s /usr/libexec/ssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass |
| 207 | %endif |
| 208 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 209 | %clean |
| 210 | rm -rf $RPM_BUILD_ROOT |
| 211 | |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 212 | %post server |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 213 | /sbin/chkconfig --add sshd |
| 214 | if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then |
| 215 | /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2 |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 216 | fi |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 217 | if test -r /var/run/sshd.pid |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 218 | then |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 219 | /etc/rc.d/init.d/sshd restart >&2 |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 220 | fi |
| 221 | |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 222 | %preun server |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 223 | if [ "$1" = 0 ] |
| 224 | then |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 225 | /etc/rc.d/init.d/sshd stop >&2 |
| 226 | /sbin/chkconfig --del sshd |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 227 | fi |
| 228 | |
| 229 | %files |
| 230 | %defattr(-,root,root) |
Damien Miller | 01c114c | 1999-11-19 17:25:16 +1100 | [diff] [blame] | 231 | %doc ChangeLog OVERVIEW COPYING.Ylonen README README.Ylonen INSTALL UPGRADING |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 232 | %attr(0755,root,root) /usr/bin/ssh-keygen |
| 233 | %attr(0755,root,root) /usr/bin/scp |
| 234 | %attr(0644,root,root) /usr/man/man1/ssh-keygen.1 |
| 235 | %attr(0644,root,root) /usr/man/man1/scp.1 |
| 236 | %attr(0755,root,root) %dir /etc/ssh |
| 237 | |
| 238 | %files clients |
| 239 | %defattr(-,root,root) |
Damien Miller | b77870f | 1999-11-10 12:48:08 +1100 | [diff] [blame] | 240 | %attr(4755,root,root) /usr/bin/ssh |
Damien Miller | 29d6852 | 1999-10-28 14:34:49 +1000 | [diff] [blame] | 241 | %attr(0755,root,root) /usr/bin/ssh-agent |
Damien Miller | 29d6852 | 1999-10-28 14:34:49 +1000 | [diff] [blame] | 242 | %attr(0755,root,root) /usr/bin/ssh-add |
Damien Miller | 356a0b0 | 1999-11-08 15:30:59 +1100 | [diff] [blame] | 243 | %attr(0644,root,root) /usr/man/man1/ssh.1 |
| 244 | %attr(0644,root,root) /usr/man/man1/ssh-agent.1 |
Damien Miller | 356a0b0 | 1999-11-08 15:30:59 +1100 | [diff] [blame] | 245 | %attr(0644,root,root) /usr/man/man1/ssh-add.1 |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 246 | %attr(0644,root,root) %config(noreplace) /etc/ssh/ssh_config |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 247 | %attr(-,root,root) /usr/bin/slogin |
| 248 | %attr(-,root,root) /usr/man/man1/slogin.1 |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 249 | %attr(0755,root,root) %dir /usr/libexec/ssh |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 250 | |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 251 | %files server |
| 252 | %defattr(-,root,root) |
| 253 | %attr(0755,root,root) /usr/sbin/sshd |
| 254 | %attr(0644,root,root) /usr/man/man8/sshd.8 |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 255 | %attr(0600,root,root) %config(noreplace) /etc/ssh/sshd_config |
| 256 | %attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 257 | %attr(0755,root,root) %config /etc/rc.d/init.d/sshd |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 258 | |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 259 | %ifdef BUILD_X11_ASKPASS |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 260 | %files askpass |
| 261 | %defattr(-,root,root) |
Damien Miller | 18ac171 | 1999-11-19 12:43:19 +1100 | [diff] [blame] | 262 | %attr(0755,root,root) /usr/libexec/ssh/ssh-askpass |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 263 | %attr(0755,root,root) /usr/libexec/ssh/x11-ssh-askpass |
| 264 | %endif |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 265 | |
Damien Miller | 3688440 | 1999-12-26 12:26:21 +1100 | [diff] [blame^] | 266 | %ifdef BUILD_GNOME_ASKPASS |
| 267 | %files askpass-gnome |
| 268 | %defattr(-,root,root) |
| 269 | %attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass |
| 270 | %endif |