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 | 82e7ae5 | 2001-03-20 09:30:50 +1100 | [diff] [blame] | 3 | Version: 2.5.2p1 |
Damien Miller | 11402af | 2000-05-07 18:05:59 +1000 | [diff] [blame] | 4 | URL: http://www.openssh.com/ |
Damien Miller | 297dc42 | 1999-11-25 13:24:58 +1100 | [diff] [blame] | 5 | Release: 1 |
Damien Miller | 56825a1 | 1999-11-11 10:50:04 +1100 | [diff] [blame] | 6 | Source0: openssh-%{version}.tar.gz |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 7 | Copyright: BSD |
| 8 | Group: Applications/Internet |
| 9 | BuildRoot: /tmp/openssh-%{version}-buildroot |
Damien Miller | 2297799 | 2000-01-16 10:17:52 +1100 | [diff] [blame] | 10 | PreReq: openssl |
Damien Miller | c6d5ce8 | 1999-11-15 16:01:07 +1100 | [diff] [blame] | 11 | Obsoletes: ssh |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 12 | # |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 13 | # (Build[ing] Prereq[uisites] only work for RPM 2.95 and newer.) |
| 14 | # building prerequisites -- stuff for |
| 15 | # OpenSSL (openssl-devel), |
| 16 | # TCP Wrappers (nkitb), |
| 17 | # and Gnome (glibdev, gtkdev, and gnlibsd) |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 18 | # |
Damien Miller | 2efcd3c | 2000-09-16 16:30:55 +1100 | [diff] [blame] | 19 | BuildPrereq: openssl |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 20 | BuildPrereq: nkitb |
| 21 | BuildPrereq: glibdev |
| 22 | BuildPrereq: gtkdev |
| 23 | BuildPrereq: gnlibsd |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 24 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 25 | %description |
| 26 | Ssh (Secure Shell) a program for logging into a remote machine and for |
| 27 | executing commands in a remote machine. It is intended to replace |
| 28 | rlogin and rsh, and provide secure encrypted communications between |
| 29 | two untrusted hosts over an insecure network. X11 connections and |
| 30 | arbitrary TCP/IP ports can also be forwarded over the secure channel. |
| 31 | |
| 32 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it |
| 33 | up to date in terms of security and features, as well as removing all |
| 34 | patented algorithms to seperate libraries (OpenSSL). |
| 35 | |
Damien Miller | 2efcd3c | 2000-09-16 16:30:55 +1100 | [diff] [blame] | 36 | This package includes all files necessary for both the OpenSSH |
| 37 | client and server. Additionally, this package contains the GNOME |
| 38 | passphrase dialog. |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 39 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 40 | %changelog |
Damien Miller | e69f18c | 2000-06-12 16:38:54 +1000 | [diff] [blame] | 41 | * Mon Jun 12 2000 Damien Miller <djm@mindrot.org> |
| 42 | - Glob manpages to catch compressed files |
Damien Miller | ddaffa4 | 2000-03-15 12:31:18 +1100 | [diff] [blame] | 43 | * Wed Mar 15 2000 Damien Miller <djm@ibs.com.au> |
| 44 | - Updated for new location |
| 45 | - Updated for new gnome-ssh-askpass build |
Damien Miller | 95c8e5d | 1999-12-27 16:43:42 +1100 | [diff] [blame] | 46 | * Sun Dec 26 1999 Chris Saia <csaia@wtower.com> |
| 47 | - Made symlink to gnome-ssh-askpass called ssh-askpass |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 48 | * Wed Nov 24 1999 Chris Saia <csaia@wtower.com> |
| 49 | - Removed patches that included /etc/pam.d/sshd, /sbin/init.d/rc.sshd, and |
| 50 | /var/adm/fillup-templates/rc.config.sshd, since Damien merged these into |
| 51 | his released tarfile |
| 52 | - Changed permissions on ssh_config in the install procedure to 644 from 600 |
| 53 | even though it was correct in the %files section and thus right in the RPMs |
| 54 | - Postinstall script for the server now only prints "Generating SSH host |
| 55 | key..." if we need to actually do this, in order to eliminate a confusing |
| 56 | message if an SSH host key is already in place |
| 57 | - Marked all manual pages as %doc(umentation) |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 58 | * Mon Nov 22 1999 Chris Saia <csaia@wtower.com> |
| 59 | - Added flag to configure daemon with TCP Wrappers support |
| 60 | - Added building prerequisites (works in RPM 3.0 and newer) |
| 61 | * Thu Nov 18 1999 Chris Saia <csaia@wtower.com> |
| 62 | - Made this package correct for SuSE. |
| 63 | - Changed instances of pam_pwdb.so to pam_unix.so, since it works more properly |
| 64 | with SuSE, and lib_pwdb.so isn't installed by default. |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 65 | * Mon Nov 15 1999 Damien Miller <djm@mindrot.org> |
| 66 | - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com> |
Damien Miller | 38c6088 | 1999-11-13 13:09:31 +1100 | [diff] [blame] | 67 | * Sat Nov 13 1999 Damien Miller <djm@mindrot.org> |
Damien Miller | c6d5ce8 | 1999-11-15 16:01:07 +1100 | [diff] [blame] | 68 | - Added 'Obsoletes' directives |
Damien Miller | 742d2cb | 1999-11-09 14:28:26 +1100 | [diff] [blame] | 69 | * Tue Nov 09 1999 Damien Miller <djm@ibs.com.au> |
| 70 | - Use make install |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 71 | - Subpackages |
Damien Miller | 356a0b0 | 1999-11-08 15:30:59 +1100 | [diff] [blame] | 72 | * Mon Nov 08 1999 Damien Miller <djm@ibs.com.au> |
| 73 | - Added links for slogin |
| 74 | - Fixed perms on manpages |
Damien Miller | 2bbb9d0 | 1999-10-30 09:46:20 +1000 | [diff] [blame] | 75 | * Sat Oct 30 1999 Damien Miller <djm@ibs.com.au> |
| 76 | - Renamed init script |
Damien Miller | 070f7a1 | 1999-10-29 10:29:29 +1000 | [diff] [blame] | 77 | * Fri Oct 29 1999 Damien Miller <djm@ibs.com.au> |
| 78 | - Back to old binary names |
Damien Miller | 0623076 | 1999-10-28 14:03:14 +1000 | [diff] [blame] | 79 | * Thu Oct 28 1999 Damien Miller <djm@ibs.com.au> |
| 80 | - Use autoconf |
| 81 | - New binary names |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 82 | * Wed Oct 27 1999 Damien Miller <djm@ibs.com.au> |
| 83 | - Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec. |
| 84 | |
| 85 | %prep |
Damien Miller | 871f3ca | 1999-12-07 16:32:10 +1100 | [diff] [blame] | 86 | |
| 87 | %setup -q |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 88 | |
| 89 | %build |
Damien Miller | 742d2cb | 1999-11-09 14:28:26 +1100 | [diff] [blame] | 90 | CFLAGS="$RPM_OPT_FLAGS" \ |
Damien Miller | 01fa638 | 2001-01-17 11:23:39 +1100 | [diff] [blame] | 91 | ./configure --prefix=/usr \ |
| 92 | --sysconfdir=/etc/ssh \ |
| 93 | --with-pam \ |
| 94 | --with-gnome-askpass \ |
| 95 | --with-tcp-wrappers \ |
| 96 | --with-ipv4-default \ |
| 97 | --libexecdir=/usr/lib/ssh |
Damien Miller | cdb8b1d | 1999-11-09 14:31:49 +1100 | [diff] [blame] | 98 | make |
| 99 | |
Damien Miller | ddaffa4 | 2000-03-15 12:31:18 +1100 | [diff] [blame] | 100 | cd contrib |
Damien Miller | bb68c16 | 2000-03-15 12:38:13 +1100 | [diff] [blame] | 101 | gcc -O -g `gnome-config --cflags gnome gnomeui` \ |
Damien Miller | ddaffa4 | 2000-03-15 12:31:18 +1100 | [diff] [blame] | 102 | gnome-ssh-askpass.c -o gnome-ssh-askpass \ |
| 103 | `gnome-config --libs gnome gnomeui` |
| 104 | cd .. |
| 105 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 106 | %install |
| 107 | rm -rf $RPM_BUILD_ROOT |
Damien Miller | 7d7c60d | 2000-01-26 14:37:48 +1100 | [diff] [blame] | 108 | make install DESTDIR=$RPM_BUILD_ROOT/ |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 109 | install -d $RPM_BUILD_ROOT/etc/ssh/ |
Damien Miller | 2b72a4a | 1999-11-09 14:34:31 +1100 | [diff] [blame] | 110 | install -d $RPM_BUILD_ROOT/etc/pam.d/ |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 111 | install -d $RPM_BUILD_ROOT/sbin/init.d/ |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 112 | install -d $RPM_BUILD_ROOT/var/adm/fillup-templates |
Damien Miller | 2efcd3c | 2000-09-16 16:30:55 +1100 | [diff] [blame] | 113 | install -d $RPM_BUILD_ROOT/usr/lib/ssh |
Damien Miller | 606f880 | 2000-09-16 15:39:56 +1100 | [diff] [blame] | 114 | install -m644 contrib/sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd |
Damien Miller | ddaffa4 | 2000-03-15 12:31:18 +1100 | [diff] [blame] | 115 | install -m744 contrib/suse/rc.sshd $RPM_BUILD_ROOT/sbin/init.d/sshd |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 116 | ln -s ../../sbin/init.d/sshd $RPM_BUILD_ROOT/usr/sbin/rcsshd |
Damien Miller | 2efcd3c | 2000-09-16 16:30:55 +1100 | [diff] [blame] | 117 | install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/lib/ssh/gnome-ssh-askpass |
| 118 | ln -s gnome-ssh-askpass $RPM_BUILD_ROOT/usr/lib/ssh/ssh-askpass |
Damien Miller | ddaffa4 | 2000-03-15 12:31:18 +1100 | [diff] [blame] | 119 | install -m744 contrib/suse/rc.config.sshd \ |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 120 | $RPM_BUILD_ROOT/var/adm/fillup-templates |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 121 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 122 | %clean |
| 123 | rm -rf $RPM_BUILD_ROOT |
| 124 | |
Damien Miller | 2efcd3c | 2000-09-16 16:30:55 +1100 | [diff] [blame] | 125 | %post |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 126 | if [ "$1" = 1 ]; then |
| 127 | echo "Creating SSH stop/start scripts in the rc directories..." |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 128 | ln -s ../sshd /sbin/init.d/rc2.d/K20sshd |
| 129 | ln -s ../sshd /sbin/init.d/rc2.d/S20sshd |
| 130 | ln -s ../sshd /sbin/init.d/rc3.d/K20sshd |
| 131 | ln -s ../sshd /sbin/init.d/rc3.d/S20sshd |
| 132 | fi |
| 133 | echo "Updating /etc/rc.config..." |
| 134 | if [ -x /bin/fillup ] ; then |
| 135 | /bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.sshd |
| 136 | else |
| 137 | echo "ERROR: fillup not found. This should NOT happen in SuSE Linux." |
| 138 | echo "Update /etc/rc.config by hand from the following template file:" |
| 139 | echo " /var/adm/fillup-templates/rc.config.sshd" |
| 140 | fi |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 141 | 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] | 142 | echo "Generating SSH host key..." |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 143 | /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] | 144 | fi |
Damien Miller | 58e579b | 2000-05-08 00:05:31 +1000 | [diff] [blame] | 145 | if [ ! -f /etc/ssh/ssh_host_dsa_key -o ! -s /etc/ssh/ssh_host_dsa_key ]; then |
| 146 | echo "Generating SSH DSA host key..." |
| 147 | /usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N '' >&2 |
| 148 | fi |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 149 | if test -r /var/run/sshd.pid |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 150 | then |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 151 | echo "Restarting the running SSH daemon..." |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 152 | /usr/sbin/rcsshd restart >&2 |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 153 | fi |
| 154 | |
Damien Miller | 2efcd3c | 2000-09-16 16:30:55 +1100 | [diff] [blame] | 155 | %preun |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 156 | if [ "$1" = 0 ] |
| 157 | then |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 158 | echo "Stopping the SSH daemon..." |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 159 | /usr/sbin/rcsshd stop >&2 |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 160 | echo "Removing SSH stop/start scripts from the rc directories..." |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 161 | rm /sbin/init.d/rc2.d/K20sshd |
| 162 | rm /sbin/init.d/rc2.d/S20sshd |
| 163 | rm /sbin/init.d/rc3.d/K20sshd |
| 164 | rm /sbin/init.d/rc3.d/S20sshd |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 165 | fi |
| 166 | |
| 167 | %files |
| 168 | %defattr(-,root,root) |
Damien Miller | 981eeed | 2000-12-27 19:06:05 +1100 | [diff] [blame] | 169 | %doc ChangeLog OVERVIEW README* |
Damien Miller | ab36050 | 2000-11-06 12:52:25 +1100 | [diff] [blame] | 170 | %doc RFC.nroff TODO CREDITS LICENSE |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 171 | %attr(0755,root,root) %dir /etc/ssh |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 172 | %attr(0644,root,root) %config /etc/ssh/ssh_config |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 173 | %attr(0600,root,root) %config /etc/ssh/sshd_config |
Damien Miller | 0986b55 | 2000-11-11 08:36:38 +1100 | [diff] [blame] | 174 | %attr(0600,root,root) %config /etc/ssh/primes |
Damien Miller | 93168eb | 1999-12-07 16:20:49 +1100 | [diff] [blame] | 175 | %attr(0644,root,root) %config /etc/pam.d/sshd |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 176 | %attr(0755,root,root) %config /sbin/init.d/sshd |
Damien Miller | 2efcd3c | 2000-09-16 16:30:55 +1100 | [diff] [blame] | 177 | %attr(0755,root,root) /usr/bin/ssh-keygen |
| 178 | %attr(0755,root,root) /usr/bin/scp |
| 179 | %attr(4755,root,root) /usr/bin/ssh |
| 180 | %attr(-,root,root) /usr/bin/slogin |
| 181 | %attr(0755,root,root) /usr/bin/ssh-agent |
| 182 | %attr(0755,root,root) /usr/bin/ssh-add |
Damien Miller | 3380426 | 2001-02-04 23:20:18 +1100 | [diff] [blame] | 183 | %attr(0755,root,root) /usr/bin/ssh-keyscan |
| 184 | %attr(0755,root,root) /usr/bin/sftp |
Damien Miller | 2efcd3c | 2000-09-16 16:30:55 +1100 | [diff] [blame] | 185 | %attr(0755,root,root) /usr/sbin/sshd |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 186 | %attr(-,root,root) /usr/sbin/rcsshd |
Damien Miller | 2efcd3c | 2000-09-16 16:30:55 +1100 | [diff] [blame] | 187 | %attr(0755,root,root) %dir /usr/lib/ssh |
| 188 | %attr(0755,root,root) /usr/lib/ssh/ssh-askpass |
| 189 | %attr(0755,root,root) /usr/lib/ssh/gnome-ssh-askpass |
| 190 | %attr(0644,root,root) %doc /usr/man/man1/scp.1* |
| 191 | %attr(0644,root,root) %doc /usr/man/man1/ssh.1* |
| 192 | %attr(-,root,root) %doc /usr/man/man1/slogin.1* |
| 193 | %attr(0644,root,root) %doc /usr/man/man1/ssh-agent.1* |
| 194 | %attr(0644,root,root) %doc /usr/man/man1/ssh-add.1* |
| 195 | %attr(0644,root,root) %doc /usr/man/man1/ssh-keygen.1* |
| 196 | %attr(0644,root,root) %doc /usr/man/man8/sshd.8* |
Damien Miller | 294df78 | 1999-11-23 10:11:29 +1100 | [diff] [blame] | 197 | %attr(0644,root,root) /var/adm/fillup-templates/rc.config.sshd |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 198 | |