Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 1 | Summary: OpenSSH, a free Secure Shell (SSH) implementation |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 2 | Name: openssh |
Damien Miller | 95a29b1 | 2000-01-17 11:57:39 +1100 | [diff] [blame] | 3 | Version: 1.2.1pre27 |
Damien Miller | 297dc42 | 1999-11-25 13:24:58 +1100 | [diff] [blame] | 4 | Release: 1 |
Damien Miller | 56825a1 | 1999-11-11 10:50:04 +1100 | [diff] [blame] | 5 | Source0: openssh-%{version}.tar.gz |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 6 | Copyright: BSD |
| 7 | Group: Applications/Internet |
| 8 | BuildRoot: /tmp/openssh-%{version}-buildroot |
Damien Miller | 2297799 | 2000-01-16 10:17:52 +1100 | [diff] [blame] | 9 | PreReq: openssl |
Damien Miller | c6d5ce8 | 1999-11-15 16:01:07 +1100 | [diff] [blame] | 10 | Obsoletes: ssh |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 11 | # |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 12 | # (Build[ing] Prereq[uisites] only work for RPM 2.95 and newer.) |
| 13 | # building prerequisites -- stuff for |
| 14 | # OpenSSL (openssl-devel), |
| 15 | # TCP Wrappers (nkitb), |
| 16 | # and Gnome (glibdev, gtkdev, and gnlibsd) |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 17 | # |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 18 | BuildPrereq: openssl-devel |
| 19 | BuildPrereq: nkitb |
| 20 | BuildPrereq: glibdev |
| 21 | BuildPrereq: gtkdev |
| 22 | BuildPrereq: gnlibsd |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 23 | |
| 24 | %package clients |
| 25 | Summary: OpenSSH Secure Shell protocol clients |
| 26 | Requires: openssh |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 27 | Group: Applications/Internet |
Damien Miller | c6d5ce8 | 1999-11-15 16:01:07 +1100 | [diff] [blame] | 28 | Obsoletes: ssh-clients |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 29 | |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 30 | %package server |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 31 | Summary: OpenSSH Secure Shell protocol server (sshd) |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 32 | Requires: openssh |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 33 | Group: System Environment/Daemons |
Damien Miller | 2297799 | 2000-01-16 10:17:52 +1100 | [diff] [blame] | 34 | PreReq: openssh |
Damien Miller | c6d5ce8 | 1999-11-15 16:01:07 +1100 | [diff] [blame] | 35 | Obsoletes: ssh-server |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 36 | |
| 37 | %package askpass |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 38 | Summary: OpenSSH GNOME passphrase dialog |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 39 | Group: Applications/Internet |
| 40 | Requires: openssh |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 41 | Obsoletes: ssh-extras |
Damien Miller | c6d5ce8 | 1999-11-15 16:01:07 +1100 | [diff] [blame] | 42 | Obsoletes: ssh-askpass |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 43 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 44 | %description |
| 45 | Ssh (Secure Shell) a program for logging into a remote machine and for |
| 46 | executing commands in a remote machine. It is intended to replace |
| 47 | rlogin and rsh, and provide secure encrypted communications between |
| 48 | two untrusted hosts over an insecure network. X11 connections and |
| 49 | arbitrary TCP/IP ports can also be forwarded over the secure channel. |
| 50 | |
| 51 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it |
| 52 | up to date in terms of security and features, as well as removing all |
| 53 | patented algorithms to seperate libraries (OpenSSL). |
| 54 | |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 55 | This package includes the core files necessary for both the OpenSSH |
| 56 | client and server. To make this package useful, you should also |
| 57 | install openssh-clients, openssh-server, or both. |
| 58 | |
| 59 | %description clients |
| 60 | Ssh (Secure Shell) a program for logging into a remote machine and for |
| 61 | executing commands in a remote machine. It is intended to replace |
| 62 | rlogin and rsh, and provide secure encrypted communications between |
| 63 | two untrusted hosts over an insecure network. X11 connections and |
| 64 | arbitrary TCP/IP ports can also be forwarded over the secure channel. |
| 65 | |
| 66 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it |
| 67 | up to date in terms of security and features, as well as removing all |
| 68 | patented algorithms to seperate libraries (OpenSSL). |
| 69 | |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 70 | This package includes the clients necessary to make encrypted connections |
| 71 | to SSH servers. |
| 72 | |
| 73 | %description server |
| 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. |
| 79 | |
| 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). |
| 83 | |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 84 | This package contains the secure shell daemon. The sshd is the server |
| 85 | part of the secure shell protocol and allows ssh clients to connect to |
| 86 | your host. |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 87 | |
| 88 | %description askpass |
| 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. |
| 94 | |
| 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 seperate libraries (OpenSSL). |
| 98 | |
| 99 | This package contains the GNOME passphrase dialog. |
| 100 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 101 | %changelog |
Damien Miller | 95c8e5d | 1999-12-27 16:43:42 +1100 | [diff] [blame] | 102 | * Sun Dec 26 1999 Chris Saia <csaia@wtower.com> |
| 103 | - Made symlink to gnome-ssh-askpass called ssh-askpass |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 104 | * Wed Nov 24 1999 Chris Saia <csaia@wtower.com> |
| 105 | - Removed patches that included /etc/pam.d/sshd, /sbin/init.d/rc.sshd, and |
| 106 | /var/adm/fillup-templates/rc.config.sshd, since Damien merged these into |
| 107 | his released tarfile |
| 108 | - Changed permissions on ssh_config in the install procedure to 644 from 600 |
| 109 | even though it was correct in the %files section and thus right in the RPMs |
| 110 | - Postinstall script for the server now only prints "Generating SSH host |
| 111 | key..." if we need to actually do this, in order to eliminate a confusing |
| 112 | message if an SSH host key is already in place |
| 113 | - Marked all manual pages as %doc(umentation) |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 114 | * Mon Nov 22 1999 Chris Saia <csaia@wtower.com> |
| 115 | - Added flag to configure daemon with TCP Wrappers support |
| 116 | - Added building prerequisites (works in RPM 3.0 and newer) |
| 117 | * Thu Nov 18 1999 Chris Saia <csaia@wtower.com> |
| 118 | - Made this package correct for SuSE. |
| 119 | - Changed instances of pam_pwdb.so to pam_unix.so, since it works more properly |
| 120 | with SuSE, and lib_pwdb.so isn't installed by default. |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 121 | * Mon Nov 15 1999 Damien Miller <djm@mindrot.org> |
| 122 | - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com> |
Damien Miller | 38c6088 | 1999-11-13 13:09:31 +1100 | [diff] [blame] | 123 | * Sat Nov 13 1999 Damien Miller <djm@mindrot.org> |
Damien Miller | c6d5ce8 | 1999-11-15 16:01:07 +1100 | [diff] [blame] | 124 | - Added 'Obsoletes' directives |
Damien Miller | 742d2cb | 1999-11-09 14:28:26 +1100 | [diff] [blame] | 125 | * Tue Nov 09 1999 Damien Miller <djm@ibs.com.au> |
| 126 | - Use make install |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 127 | - Subpackages |
Damien Miller | 356a0b0 | 1999-11-08 15:30:59 +1100 | [diff] [blame] | 128 | * Mon Nov 08 1999 Damien Miller <djm@ibs.com.au> |
| 129 | - Added links for slogin |
| 130 | - Fixed perms on manpages |
Damien Miller | 2bbb9d0 | 1999-10-30 09:46:20 +1000 | [diff] [blame] | 131 | * Sat Oct 30 1999 Damien Miller <djm@ibs.com.au> |
| 132 | - Renamed init script |
Damien Miller | 070f7a1 | 1999-10-29 10:29:29 +1000 | [diff] [blame] | 133 | * Fri Oct 29 1999 Damien Miller <djm@ibs.com.au> |
| 134 | - Back to old binary names |
Damien Miller | 0623076 | 1999-10-28 14:03:14 +1000 | [diff] [blame] | 135 | * Thu Oct 28 1999 Damien Miller <djm@ibs.com.au> |
| 136 | - Use autoconf |
| 137 | - New binary names |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 138 | * Wed Oct 27 1999 Damien Miller <djm@ibs.com.au> |
| 139 | - Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec. |
| 140 | |
| 141 | %prep |
Damien Miller | 871f3ca | 1999-12-07 16:32:10 +1100 | [diff] [blame] | 142 | |
| 143 | %setup -q |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 144 | |
| 145 | %build |
Damien Miller | 742d2cb | 1999-11-09 14:28:26 +1100 | [diff] [blame] | 146 | CFLAGS="$RPM_OPT_FLAGS" \ |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 147 | ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-gnome-askpass \ |
Damien Miller | 0727893 | 2000-01-22 14:05:37 +1100 | [diff] [blame^] | 148 | --with-tcp-wrappers --with-ipv4-default |
Damien Miller | cdb8b1d | 1999-11-09 14:31:49 +1100 | [diff] [blame] | 149 | make |
| 150 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 151 | %install |
| 152 | rm -rf $RPM_BUILD_ROOT |
Damien Miller | 645c598 | 2000-01-03 14:42:09 +1100 | [diff] [blame] | 153 | make install prefix="$RPM_BUILD_ROOT/usr" sysconfdir="$RPM_BUILD_ROOT/etc/ssh" |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 154 | install -d $RPM_BUILD_ROOT/etc/ssh/ |
Damien Miller | 2b72a4a | 1999-11-09 14:34:31 +1100 | [diff] [blame] | 155 | install -d $RPM_BUILD_ROOT/etc/pam.d/ |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 156 | install -d $RPM_BUILD_ROOT/sbin/init.d/ |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 157 | install -d $RPM_BUILD_ROOT/var/adm/fillup-templates |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 158 | install -m644 sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd |
| 159 | install -m744 packages/suse/rc.sshd $RPM_BUILD_ROOT/sbin/init.d/sshd |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 160 | ln -s ../../sbin/init.d/sshd $RPM_BUILD_ROOT/usr/sbin/rcsshd |
Damien Miller | 95c8e5d | 1999-12-27 16:43:42 +1100 | [diff] [blame] | 161 | ln -s gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 162 | install -m744 packages/suse/rc.config.sshd \ |
| 163 | $RPM_BUILD_ROOT/var/adm/fillup-templates |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 164 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 165 | %clean |
| 166 | rm -rf $RPM_BUILD_ROOT |
| 167 | |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 168 | %post server |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 169 | if [ "$1" = 1 ]; then |
| 170 | echo "Creating SSH stop/start scripts in the rc directories..." |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 171 | ln -s ../sshd /sbin/init.d/rc2.d/K20sshd |
| 172 | ln -s ../sshd /sbin/init.d/rc2.d/S20sshd |
| 173 | ln -s ../sshd /sbin/init.d/rc3.d/K20sshd |
| 174 | ln -s ../sshd /sbin/init.d/rc3.d/S20sshd |
| 175 | fi |
| 176 | echo "Updating /etc/rc.config..." |
| 177 | if [ -x /bin/fillup ] ; then |
| 178 | /bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.sshd |
| 179 | else |
| 180 | echo "ERROR: fillup not found. This should NOT happen in SuSE Linux." |
| 181 | echo "Update /etc/rc.config by hand from the following template file:" |
| 182 | echo " /var/adm/fillup-templates/rc.config.sshd" |
| 183 | fi |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 184 | if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 185 | echo "Generating SSH host key..." |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 186 | /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] | 187 | fi |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 188 | if test -r /var/run/sshd.pid |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 189 | then |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 190 | echo "Restarting the running SSH daemon..." |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 191 | /usr/sbin/rcsshd restart >&2 |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 192 | fi |
| 193 | |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 194 | %preun server |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 195 | if [ "$1" = 0 ] |
| 196 | then |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 197 | echo "Stopping the SSH daemon..." |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 198 | /usr/sbin/rcsshd stop >&2 |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 199 | echo "Removing SSH stop/start scripts from the rc directories..." |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 200 | rm /sbin/init.d/rc2.d/K20sshd |
| 201 | rm /sbin/init.d/rc2.d/S20sshd |
| 202 | rm /sbin/init.d/rc3.d/K20sshd |
| 203 | rm /sbin/init.d/rc3.d/S20sshd |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 204 | fi |
| 205 | |
| 206 | %files |
| 207 | %defattr(-,root,root) |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 208 | %doc COPYING.Ylonen ChangeLog OVERVIEW README README.Ylonen |
Damien Miller | c0d7390 | 1999-12-27 09:23:58 +1100 | [diff] [blame] | 209 | %doc RFC.nroff TODO UPGRADING CREDITS |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 210 | %attr(0755,root,root) /usr/bin/ssh-keygen |
| 211 | %attr(0755,root,root) /usr/bin/scp |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 212 | %attr(0644,root,root) %doc /usr/man/man1/ssh-keygen.1 |
| 213 | %attr(0644,root,root) %doc /usr/man/man1/scp.1 |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 214 | %attr(0755,root,root) %dir /etc/ssh |
Damien Miller | cadc6bb | 1999-12-28 15:19:49 +1100 | [diff] [blame] | 215 | %attr(0755,root,root) %dir /usr/libexec/ssh |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 216 | |
| 217 | %files clients |
| 218 | %defattr(-,root,root) |
Damien Miller | b77870f | 1999-11-10 12:48:08 +1100 | [diff] [blame] | 219 | %attr(4755,root,root) /usr/bin/ssh |
Damien Miller | 29d6852 | 1999-10-28 14:34:49 +1000 | [diff] [blame] | 220 | %attr(0755,root,root) /usr/bin/ssh-agent |
Damien Miller | 29d6852 | 1999-10-28 14:34:49 +1000 | [diff] [blame] | 221 | %attr(0755,root,root) /usr/bin/ssh-add |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 222 | %attr(0644,root,root) %doc /usr/man/man1/ssh.1 |
| 223 | %attr(0644,root,root) %doc /usr/man/man1/ssh-agent.1 |
| 224 | %attr(0644,root,root) %doc /usr/man/man1/ssh-add.1 |
| 225 | %attr(0644,root,root) %config /etc/ssh/ssh_config |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 226 | %attr(-,root,root) /usr/bin/slogin |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 227 | %attr(-,root,root) %doc /usr/man/man1/slogin.1 |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 228 | |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 229 | %files server |
| 230 | %defattr(-,root,root) |
| 231 | %attr(0755,root,root) /usr/sbin/sshd |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 232 | %attr(0644,root,root) %doc /usr/man/man8/sshd.8 |
| 233 | %attr(0600,root,root) %config /etc/ssh/sshd_config |
| 234 | %attr(0644,root,root) %config /etc/pam.d/sshd |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 235 | %attr(0755,root,root) %config /sbin/init.d/sshd |
| 236 | %attr(-,root,root) /usr/sbin/rcsshd |
| 237 | %attr(0644,root,root) /var/adm/fillup-templates/rc.config.sshd |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 238 | |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 239 | %files askpass |
| 240 | %defattr(-,root,root) |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 241 | %attr(0755,root,root) /usr/libexec/ssh/ssh-askpass |
Damien Miller | 95c8e5d | 1999-12-27 16:43:42 +1100 | [diff] [blame] | 242 | %attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 243 | |