Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 1 | Summary: OpenSSH free Secure Shell (SSH) implementation |
| 2 | Name: openssh |
Damien Miller | a63023b | 1999-11-19 17:14:16 +1100 | [diff] [blame] | 3 | Version: 1.2pre13 |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 4 | Release: 1 |
| 5 | Packager: Damien Miller <djm@ibs.com.au> |
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 | c6d5ce8 | 1999-11-15 16:01:07 +1100 | [diff] [blame] | 10 | Obsoletes: ssh |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 11 | |
| 12 | %package clients |
| 13 | Summary: OpenSSH Secure Shell protocol clients |
| 14 | Requires: openssh |
| 15 | Group: System Environment/Daemons |
Damien Miller | c6d5ce8 | 1999-11-15 16:01:07 +1100 | [diff] [blame] | 16 | Obsoletes: ssh-clients |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 17 | |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 18 | %package server |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 19 | Summary: OpenSSH Secure Shell protocol server (sshd) |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 20 | Requires: openssh chkconfig >= 0.9 |
| 21 | Group: System Environment/Daemons |
Damien Miller | c6d5ce8 | 1999-11-15 16:01:07 +1100 | [diff] [blame] | 22 | Obsoletes: ssh-server |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 23 | |
| 24 | %package askpass |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 25 | Summary: OpenSSH GNOME passphrase dialog |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 26 | Group: Applications/Internet |
| 27 | Requires: openssh |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 28 | Obsoletes: ssh-extras |
Damien Miller | c6d5ce8 | 1999-11-15 16:01:07 +1100 | [diff] [blame] | 29 | Obsoletes: ssh-askpass |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 30 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 31 | %description |
| 32 | Ssh (Secure Shell) a program for logging into a remote machine and for |
| 33 | executing commands in a remote machine. It is intended to replace |
| 34 | rlogin and rsh, and provide secure encrypted communications between |
| 35 | two untrusted hosts over an insecure network. X11 connections and |
| 36 | arbitrary TCP/IP ports can also be forwarded over the secure channel. |
| 37 | |
| 38 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it |
| 39 | up to date in terms of security and features, as well as removing all |
| 40 | patented algorithms to seperate libraries (OpenSSL). |
| 41 | |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 42 | This package includes the core files necessary for both the OpenSSH |
| 43 | client and server. To make this package useful, you should also |
| 44 | install openssh-clients, openssh-server, or both. |
| 45 | |
| 46 | %description clients |
| 47 | Ssh (Secure Shell) a program for logging into a remote machine and for |
| 48 | executing commands in a remote machine. It is intended to replace |
| 49 | rlogin and rsh, and provide secure encrypted communications between |
| 50 | two untrusted hosts over an insecure network. X11 connections and |
| 51 | arbitrary TCP/IP ports can also be forwarded over the secure channel. |
| 52 | |
| 53 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it |
| 54 | up to date in terms of security and features, as well as removing all |
| 55 | patented algorithms to seperate libraries (OpenSSL). |
| 56 | |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 57 | This package includes the clients necessary to make encrypted connections |
| 58 | to SSH servers. |
| 59 | |
| 60 | %description server |
| 61 | Ssh (Secure Shell) a program for logging into a remote machine and for |
| 62 | executing commands in a remote machine. It is intended to replace |
| 63 | rlogin and rsh, and provide secure encrypted communications between |
| 64 | two untrusted hosts over an insecure network. X11 connections and |
| 65 | arbitrary TCP/IP ports can also be forwarded over the secure channel. |
| 66 | |
| 67 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it |
| 68 | up to date in terms of security and features, as well as removing all |
| 69 | patented algorithms to seperate libraries (OpenSSL). |
| 70 | |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 71 | This package contains the secure shell daemon. The sshd is the server |
| 72 | part of the secure shell protocol and allows ssh clients to connect to |
| 73 | your host. |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 74 | |
| 75 | %description askpass |
| 76 | Ssh (Secure Shell) a program for logging into a remote machine and for |
| 77 | executing commands in a remote machine. It is intended to replace |
| 78 | rlogin and rsh, and provide secure encrypted communications between |
| 79 | two untrusted hosts over an insecure network. X11 connections and |
| 80 | arbitrary TCP/IP ports can also be forwarded over the secure channel. |
| 81 | |
| 82 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it |
| 83 | up to date in terms of security and features, as well as removing all |
| 84 | patented algorithms to seperate libraries (OpenSSL). |
| 85 | |
| 86 | This package contains the GNOME passphrase dialog. |
| 87 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 88 | %changelog |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 89 | * Mon Nov 15 1999 Damien Miller <djm@mindrot.org> |
| 90 | - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com> |
Damien Miller | 38c6088 | 1999-11-13 13:09:31 +1100 | [diff] [blame] | 91 | * Sat Nov 13 1999 Damien Miller <djm@mindrot.org> |
Damien Miller | c6d5ce8 | 1999-11-15 16:01:07 +1100 | [diff] [blame] | 92 | - Added 'Obsoletes' directives |
Damien Miller | 742d2cb | 1999-11-09 14:28:26 +1100 | [diff] [blame] | 93 | * Tue Nov 09 1999 Damien Miller <djm@ibs.com.au> |
| 94 | - Use make install |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 95 | - Subpackages |
Damien Miller | 356a0b0 | 1999-11-08 15:30:59 +1100 | [diff] [blame] | 96 | * Mon Nov 08 1999 Damien Miller <djm@ibs.com.au> |
| 97 | - Added links for slogin |
| 98 | - Fixed perms on manpages |
Damien Miller | 2bbb9d0 | 1999-10-30 09:46:20 +1000 | [diff] [blame] | 99 | * Sat Oct 30 1999 Damien Miller <djm@ibs.com.au> |
| 100 | - Renamed init script |
Damien Miller | 070f7a1 | 1999-10-29 10:29:29 +1000 | [diff] [blame] | 101 | * Fri Oct 29 1999 Damien Miller <djm@ibs.com.au> |
| 102 | - Back to old binary names |
Damien Miller | 0623076 | 1999-10-28 14:03:14 +1000 | [diff] [blame] | 103 | * Thu Oct 28 1999 Damien Miller <djm@ibs.com.au> |
| 104 | - Use autoconf |
| 105 | - New binary names |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 106 | * Wed Oct 27 1999 Damien Miller <djm@ibs.com.au> |
| 107 | - Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec. |
| 108 | |
| 109 | %prep |
| 110 | |
Damien Miller | ab5e0d0 | 1999-11-11 12:55:45 +1100 | [diff] [blame] | 111 | %setup |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 112 | |
| 113 | %build |
| 114 | |
Damien Miller | 742d2cb | 1999-11-09 14:28:26 +1100 | [diff] [blame] | 115 | CFLAGS="$RPM_OPT_FLAGS" \ |
Damien Miller | 973fb02 | 1999-11-09 14:48:48 +1100 | [diff] [blame] | 116 | ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-gnome-askpass |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 117 | |
Damien Miller | cdb8b1d | 1999-11-09 14:31:49 +1100 | [diff] [blame] | 118 | make |
| 119 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 120 | %install |
| 121 | rm -rf $RPM_BUILD_ROOT |
Damien Miller | 742d2cb | 1999-11-09 14:28:26 +1100 | [diff] [blame] | 122 | make install prefix="$RPM_BUILD_ROOT/usr" |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 123 | |
Damien Miller | 2b72a4a | 1999-11-09 14:34:31 +1100 | [diff] [blame] | 124 | install -d $RPM_BUILD_ROOT/etc/ssh |
| 125 | install -d $RPM_BUILD_ROOT/etc/pam.d/ |
| 126 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 127 | install -m644 sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd |
Damien Miller | 2bbb9d0 | 1999-10-30 09:46:20 +1000 | [diff] [blame] | 128 | install -m755 sshd.init.redhat $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 129 | install -m600 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config |
| 130 | install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 131 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 132 | %clean |
| 133 | rm -rf $RPM_BUILD_ROOT |
| 134 | |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 135 | %post server |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 136 | /sbin/chkconfig --add sshd |
| 137 | if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then |
| 138 | /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] | 139 | fi |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 140 | if test -r /var/run/sshd.pid |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 141 | then |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 142 | /etc/rc.d/init.d/sshd restart >&2 |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 143 | fi |
| 144 | |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 145 | %preun server |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 146 | if [ "$1" = 0 ] |
| 147 | then |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 148 | /etc/rc.d/init.d/sshd stop >&2 |
| 149 | /sbin/chkconfig --del sshd |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 150 | fi |
| 151 | |
| 152 | %files |
| 153 | %defattr(-,root,root) |
Damien Miller | 01c114c | 1999-11-19 17:25:16 +1100 | [diff] [blame] | 154 | %doc ChangeLog OVERVIEW COPYING.Ylonen README README.Ylonen INSTALL UPGRADING |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 155 | %attr(0755,root,root) /usr/bin/ssh-keygen |
| 156 | %attr(0755,root,root) /usr/bin/scp |
| 157 | %attr(0644,root,root) /usr/man/man1/ssh-keygen.1 |
| 158 | %attr(0644,root,root) /usr/man/man1/scp.1 |
| 159 | %attr(0755,root,root) %dir /etc/ssh |
| 160 | |
| 161 | %files clients |
| 162 | %defattr(-,root,root) |
Damien Miller | b77870f | 1999-11-10 12:48:08 +1100 | [diff] [blame] | 163 | %attr(4755,root,root) /usr/bin/ssh |
Damien Miller | 29d6852 | 1999-10-28 14:34:49 +1000 | [diff] [blame] | 164 | %attr(0755,root,root) /usr/bin/ssh-agent |
Damien Miller | 29d6852 | 1999-10-28 14:34:49 +1000 | [diff] [blame] | 165 | %attr(0755,root,root) /usr/bin/ssh-add |
Damien Miller | 356a0b0 | 1999-11-08 15:30:59 +1100 | [diff] [blame] | 166 | %attr(0644,root,root) /usr/man/man1/ssh.1 |
| 167 | %attr(0644,root,root) /usr/man/man1/ssh-agent.1 |
Damien Miller | 356a0b0 | 1999-11-08 15:30:59 +1100 | [diff] [blame] | 168 | %attr(0644,root,root) /usr/man/man1/ssh-add.1 |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 169 | %attr(0644,root,root) %config /etc/ssh/ssh_config |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 170 | %attr(-,root,root) /usr/bin/slogin |
| 171 | %attr(-,root,root) /usr/man/man1/slogin.1 |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 172 | |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 173 | %files server |
| 174 | %defattr(-,root,root) |
| 175 | %attr(0755,root,root) /usr/sbin/sshd |
| 176 | %attr(0644,root,root) /usr/man/man8/sshd.8 |
Damien Miller | a37010e | 1999-10-29 09:18:29 +1000 | [diff] [blame] | 177 | %attr(0600,root,root) %config /etc/ssh/sshd_config |
| 178 | %attr(0600,root,root) %config /etc/pam.d/sshd |
| 179 | %attr(0755,root,root) %config /etc/rc.d/init.d/sshd |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 180 | |
Damien Miller | 3f51bf5 | 1999-11-09 14:46:02 +1100 | [diff] [blame] | 181 | %files askpass |
| 182 | %defattr(-,root,root) |
Damien Miller | 18ac171 | 1999-11-19 12:43:19 +1100 | [diff] [blame] | 183 | %attr(0755,root,root) /usr/libexec/ssh/ssh-askpass |
Damien Miller | 7b5722f | 1999-11-19 17:23:50 +1100 | [diff] [blame] | 184 | %attr(0755,root,root) %dir /usr/libexec/ssh |
Damien Miller | 3668206 | 1999-11-15 17:19:24 +1100 | [diff] [blame] | 185 | |