]>
Commit | Line | Data |
---|---|---|
4655fe80 | 1 | Summary: OpenSSH, a free Secure Shell (SSH) implementation |
8efc0c15 | 2 | Name: openssh |
2e5ea4a2 | 3 | Version: 2.2.0p1 |
177813fe | 4 | URL: http://www.openssh.com/ |
f3cdcfdb | 5 | Release: 1 |
4f6716dc | 6 | Source0: openssh-%{version}.tar.gz |
8efc0c15 | 7 | Copyright: BSD |
8 | Group: Applications/Internet | |
9 | BuildRoot: /tmp/openssh-%{version}-buildroot | |
deecec71 | 10 | PreReq: openssl |
e9c75a39 | 11 | Obsoletes: ssh |
4655fe80 | 12 | # |
a06a4e96 | 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) | |
4655fe80 | 18 | # |
19ece6d2 | 19 | BuildPrereq: openssl |
a06a4e96 | 20 | BuildPrereq: nkitb |
21 | BuildPrereq: glibdev | |
22 | BuildPrereq: gtkdev | |
23 | BuildPrereq: gnlibsd | |
8c119fd0 | 24 | |
8efc0c15 | 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 | ||
19ece6d2 | 36 | This package includes all files necessary for both the OpenSSH |
37 | client and server. Additionally, this package contains the GNOME | |
38 | passphrase dialog. | |
d397b172 | 39 | |
8efc0c15 | 40 | %changelog |
09564242 | 41 | * Mon Jun 12 2000 Damien Miller <djm@mindrot.org> |
42 | - Glob manpages to catch compressed files | |
5cc53885 | 43 | * Wed Mar 15 2000 Damien Miller <djm@ibs.com.au> |
44 | - Updated for new location | |
45 | - Updated for new gnome-ssh-askpass build | |
d56ad4fc | 46 | * Sun Dec 26 1999 Chris Saia <csaia@wtower.com> |
47 | - Made symlink to gnome-ssh-askpass called ssh-askpass | |
a06a4e96 | 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) | |
4655fe80 | 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. | |
8c119fd0 | 65 | * Mon Nov 15 1999 Damien Miller <djm@mindrot.org> |
66 | - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com> | |
10554a99 | 67 | * Sat Nov 13 1999 Damien Miller <djm@mindrot.org> |
e9c75a39 | 68 | - Added 'Obsoletes' directives |
f025becb | 69 | * Tue Nov 09 1999 Damien Miller <djm@ibs.com.au> |
70 | - Use make install | |
d397b172 | 71 | - Subpackages |
e1a9c08d | 72 | * Mon Nov 08 1999 Damien Miller <djm@ibs.com.au> |
73 | - Added links for slogin | |
74 | - Fixed perms on manpages | |
38393fc0 | 75 | * Sat Oct 30 1999 Damien Miller <djm@ibs.com.au> |
76 | - Renamed init script | |
339660f6 | 77 | * Fri Oct 29 1999 Damien Miller <djm@ibs.com.au> |
78 | - Back to old binary names | |
5aecb327 | 79 | * Thu Oct 28 1999 Damien Miller <djm@ibs.com.au> |
80 | - Use autoconf | |
81 | - New binary names | |
8efc0c15 | 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 | |
1e3ae36c | 86 | |
87 | %setup -q | |
8efc0c15 | 88 | |
89 | %build | |
f025becb | 90 | CFLAGS="$RPM_OPT_FLAGS" \ |
19ece6d2 | 91 | ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-gnome-askpass \ |
92 | --with-tcp-wrappers --with-ipv4-default --libexecdir=/usr/lib/ssh | |
df16c1f2 | 93 | make |
94 | ||
5cc53885 | 95 | cd contrib |
2a19c4d3 | 96 | gcc -O -g `gnome-config --cflags gnome gnomeui` \ |
5cc53885 | 97 | gnome-ssh-askpass.c -o gnome-ssh-askpass \ |
98 | `gnome-config --libs gnome gnomeui` | |
99 | cd .. | |
100 | ||
8efc0c15 | 101 | %install |
102 | rm -rf $RPM_BUILD_ROOT | |
ff8ecdb8 | 103 | make install DESTDIR=$RPM_BUILD_ROOT/ |
4655fe80 | 104 | install -d $RPM_BUILD_ROOT/etc/ssh/ |
22574738 | 105 | install -d $RPM_BUILD_ROOT/etc/pam.d/ |
4655fe80 | 106 | install -d $RPM_BUILD_ROOT/sbin/init.d/ |
a06a4e96 | 107 | install -d $RPM_BUILD_ROOT/var/adm/fillup-templates |
19ece6d2 | 108 | install -d $RPM_BUILD_ROOT/usr/lib/ssh |
7f8f5e00 | 109 | install -m644 contrib/sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd |
5cc53885 | 110 | install -m744 contrib/suse/rc.sshd $RPM_BUILD_ROOT/sbin/init.d/sshd |
4655fe80 | 111 | ln -s ../../sbin/init.d/sshd $RPM_BUILD_ROOT/usr/sbin/rcsshd |
19ece6d2 | 112 | install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/lib/ssh/gnome-ssh-askpass |
113 | ln -s gnome-ssh-askpass $RPM_BUILD_ROOT/usr/lib/ssh/ssh-askpass | |
5cc53885 | 114 | install -m744 contrib/suse/rc.config.sshd \ |
a06a4e96 | 115 | $RPM_BUILD_ROOT/var/adm/fillup-templates |
f1bcacf9 | 116 | |
8efc0c15 | 117 | %clean |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
19ece6d2 | 120 | %post |
a06a4e96 | 121 | if [ "$1" = 1 ]; then |
122 | echo "Creating SSH stop/start scripts in the rc directories..." | |
4655fe80 | 123 | ln -s ../sshd /sbin/init.d/rc2.d/K20sshd |
124 | ln -s ../sshd /sbin/init.d/rc2.d/S20sshd | |
125 | ln -s ../sshd /sbin/init.d/rc3.d/K20sshd | |
126 | ln -s ../sshd /sbin/init.d/rc3.d/S20sshd | |
127 | fi | |
128 | echo "Updating /etc/rc.config..." | |
129 | if [ -x /bin/fillup ] ; then | |
130 | /bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.sshd | |
131 | else | |
132 | echo "ERROR: fillup not found. This should NOT happen in SuSE Linux." | |
133 | echo "Update /etc/rc.config by hand from the following template file:" | |
134 | echo " /var/adm/fillup-templates/rc.config.sshd" | |
135 | fi | |
f1bcacf9 | 136 | if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then |
a06a4e96 | 137 | echo "Generating SSH host key..." |
f1bcacf9 | 138 | /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2 |
8efc0c15 | 139 | fi |
ebdeb9a8 | 140 | if [ ! -f /etc/ssh/ssh_host_dsa_key -o ! -s /etc/ssh/ssh_host_dsa_key ]; then |
141 | echo "Generating SSH DSA host key..." | |
142 | /usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N '' >&2 | |
143 | fi | |
f1bcacf9 | 144 | if test -r /var/run/sshd.pid |
8efc0c15 | 145 | then |
a06a4e96 | 146 | echo "Restarting the running SSH daemon..." |
4655fe80 | 147 | /usr/sbin/rcsshd restart >&2 |
8efc0c15 | 148 | fi |
149 | ||
19ece6d2 | 150 | %preun |
8efc0c15 | 151 | if [ "$1" = 0 ] |
152 | then | |
a06a4e96 | 153 | echo "Stopping the SSH daemon..." |
4655fe80 | 154 | /usr/sbin/rcsshd stop >&2 |
a06a4e96 | 155 | echo "Removing SSH stop/start scripts from the rc directories..." |
4655fe80 | 156 | rm /sbin/init.d/rc2.d/K20sshd |
157 | rm /sbin/init.d/rc2.d/S20sshd | |
158 | rm /sbin/init.d/rc3.d/K20sshd | |
159 | rm /sbin/init.d/rc3.d/S20sshd | |
8efc0c15 | 160 | fi |
161 | ||
162 | %files | |
163 | %defattr(-,root,root) | |
bedac4b1 | 164 | %doc COPYING.Ylonen ChangeLog OVERVIEW README* |
8d25eab8 | 165 | %doc RFC.nroff TODO CREDITS LICENSE |
19ece6d2 | 166 | %attr(0755,root,root) %dir /etc/ssh |
167 | %attr(0644,root,root) %config /etc/ssh/ssh_config | |
168 | %attr(0600,root,root) %config /etc/ssh/sshd_config | |
3c4d4fef | 169 | %attr(0600,root,root) %config /etc/ssh/primes |
19ece6d2 | 170 | %attr(0644,root,root) %config /etc/pam.d/sshd |
171 | %attr(0755,root,root) %config /sbin/init.d/sshd | |
8c119fd0 | 172 | %attr(0755,root,root) /usr/bin/ssh-keygen |
173 | %attr(0755,root,root) /usr/bin/scp | |
f370266e | 174 | %attr(4755,root,root) /usr/bin/ssh |
19ece6d2 | 175 | %attr(-,root,root) /usr/bin/slogin |
372e9169 | 176 | %attr(0755,root,root) /usr/bin/ssh-agent |
372e9169 | 177 | %attr(0755,root,root) /usr/bin/ssh-add |
19ece6d2 | 178 | %attr(0755,root,root) /usr/sbin/sshd |
179 | %attr(-,root,root) /usr/sbin/rcsshd | |
180 | %attr(0755,root,root) %dir /usr/lib/ssh | |
181 | %attr(0755,root,root) /usr/lib/ssh/ssh-askpass | |
182 | %attr(0755,root,root) /usr/lib/ssh/gnome-ssh-askpass | |
183 | %attr(0644,root,root) %doc /usr/man/man1/scp.1* | |
09564242 | 184 | %attr(0644,root,root) %doc /usr/man/man1/ssh.1* |
19ece6d2 | 185 | %attr(-,root,root) %doc /usr/man/man1/slogin.1* |
09564242 | 186 | %attr(0644,root,root) %doc /usr/man/man1/ssh-agent.1* |
187 | %attr(0644,root,root) %doc /usr/man/man1/ssh-add.1* | |
19ece6d2 | 188 | %attr(0644,root,root) %doc /usr/man/man1/ssh-keygen.1* |
09564242 | 189 | %attr(0644,root,root) %doc /usr/man/man8/sshd.8* |
4655fe80 | 190 | %attr(0644,root,root) /var/adm/fillup-templates/rc.config.sshd |
8efc0c15 | 191 |