]>
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 | # |
a06a4e96 | 19 | BuildPrereq: openssl-devel |
20 | BuildPrereq: nkitb | |
21 | BuildPrereq: glibdev | |
22 | BuildPrereq: gtkdev | |
23 | BuildPrereq: gnlibsd | |
8c119fd0 | 24 | |
25 | %package clients | |
26 | Summary: OpenSSH Secure Shell protocol clients | |
27 | Requires: openssh | |
4655fe80 | 28 | Group: Applications/Internet |
e9c75a39 | 29 | Obsoletes: ssh-clients |
8efc0c15 | 30 | |
d397b172 | 31 | %package server |
8c119fd0 | 32 | Summary: OpenSSH Secure Shell protocol server (sshd) |
4655fe80 | 33 | Requires: openssh |
d397b172 | 34 | Group: System Environment/Daemons |
deecec71 | 35 | PreReq: openssh |
e9c75a39 | 36 | Obsoletes: ssh-server |
d397b172 | 37 | |
38 | %package askpass | |
8c119fd0 | 39 | Summary: OpenSSH GNOME passphrase dialog |
d397b172 | 40 | Group: Applications/Internet |
41 | Requires: openssh | |
8c119fd0 | 42 | Obsoletes: ssh-extras |
e9c75a39 | 43 | Obsoletes: ssh-askpass |
d397b172 | 44 | |
8efc0c15 | 45 | %description |
46 | Ssh (Secure Shell) a program for logging into a remote machine and for | |
47 | executing commands in a remote machine. It is intended to replace | |
48 | rlogin and rsh, and provide secure encrypted communications between | |
49 | two untrusted hosts over an insecure network. X11 connections and | |
50 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | |
51 | ||
52 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | |
53 | up to date in terms of security and features, as well as removing all | |
54 | patented algorithms to seperate libraries (OpenSSL). | |
55 | ||
8c119fd0 | 56 | This package includes the core files necessary for both the OpenSSH |
57 | client and server. To make this package useful, you should also | |
58 | install openssh-clients, openssh-server, or both. | |
59 | ||
60 | %description clients | |
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 | ||
d397b172 | 71 | This package includes the clients necessary to make encrypted connections |
72 | to SSH servers. | |
73 | ||
74 | %description server | |
75 | Ssh (Secure Shell) a program for logging into a remote machine and for | |
76 | executing commands in a remote machine. It is intended to replace | |
77 | rlogin and rsh, and provide secure encrypted communications between | |
78 | two untrusted hosts over an insecure network. X11 connections and | |
79 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | |
80 | ||
81 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | |
82 | up to date in terms of security and features, as well as removing all | |
83 | patented algorithms to seperate libraries (OpenSSL). | |
84 | ||
8c119fd0 | 85 | This package contains the secure shell daemon. The sshd is the server |
86 | part of the secure shell protocol and allows ssh clients to connect to | |
87 | your host. | |
d397b172 | 88 | |
89 | %description askpass | |
90 | Ssh (Secure Shell) a program for logging into a remote machine and for | |
91 | executing commands in a remote machine. It is intended to replace | |
92 | rlogin and rsh, and provide secure encrypted communications between | |
93 | two untrusted hosts over an insecure network. X11 connections and | |
94 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | |
95 | ||
96 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | |
97 | up to date in terms of security and features, as well as removing all | |
98 | patented algorithms to seperate libraries (OpenSSL). | |
99 | ||
100 | This package contains the GNOME passphrase dialog. | |
101 | ||
8efc0c15 | 102 | %changelog |
09564242 | 103 | * Mon Jun 12 2000 Damien Miller <djm@mindrot.org> |
104 | - Glob manpages to catch compressed files | |
5cc53885 | 105 | * Wed Mar 15 2000 Damien Miller <djm@ibs.com.au> |
106 | - Updated for new location | |
107 | - Updated for new gnome-ssh-askpass build | |
d56ad4fc | 108 | * Sun Dec 26 1999 Chris Saia <csaia@wtower.com> |
109 | - Made symlink to gnome-ssh-askpass called ssh-askpass | |
a06a4e96 | 110 | * Wed Nov 24 1999 Chris Saia <csaia@wtower.com> |
111 | - Removed patches that included /etc/pam.d/sshd, /sbin/init.d/rc.sshd, and | |
112 | /var/adm/fillup-templates/rc.config.sshd, since Damien merged these into | |
113 | his released tarfile | |
114 | - Changed permissions on ssh_config in the install procedure to 644 from 600 | |
115 | even though it was correct in the %files section and thus right in the RPMs | |
116 | - Postinstall script for the server now only prints "Generating SSH host | |
117 | key..." if we need to actually do this, in order to eliminate a confusing | |
118 | message if an SSH host key is already in place | |
119 | - Marked all manual pages as %doc(umentation) | |
4655fe80 | 120 | * Mon Nov 22 1999 Chris Saia <csaia@wtower.com> |
121 | - Added flag to configure daemon with TCP Wrappers support | |
122 | - Added building prerequisites (works in RPM 3.0 and newer) | |
123 | * Thu Nov 18 1999 Chris Saia <csaia@wtower.com> | |
124 | - Made this package correct for SuSE. | |
125 | - Changed instances of pam_pwdb.so to pam_unix.so, since it works more properly | |
126 | with SuSE, and lib_pwdb.so isn't installed by default. | |
8c119fd0 | 127 | * Mon Nov 15 1999 Damien Miller <djm@mindrot.org> |
128 | - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com> | |
10554a99 | 129 | * Sat Nov 13 1999 Damien Miller <djm@mindrot.org> |
e9c75a39 | 130 | - Added 'Obsoletes' directives |
f025becb | 131 | * Tue Nov 09 1999 Damien Miller <djm@ibs.com.au> |
132 | - Use make install | |
d397b172 | 133 | - Subpackages |
e1a9c08d | 134 | * Mon Nov 08 1999 Damien Miller <djm@ibs.com.au> |
135 | - Added links for slogin | |
136 | - Fixed perms on manpages | |
38393fc0 | 137 | * Sat Oct 30 1999 Damien Miller <djm@ibs.com.au> |
138 | - Renamed init script | |
339660f6 | 139 | * Fri Oct 29 1999 Damien Miller <djm@ibs.com.au> |
140 | - Back to old binary names | |
5aecb327 | 141 | * Thu Oct 28 1999 Damien Miller <djm@ibs.com.au> |
142 | - Use autoconf | |
143 | - New binary names | |
8efc0c15 | 144 | * Wed Oct 27 1999 Damien Miller <djm@ibs.com.au> |
145 | - Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec. | |
146 | ||
147 | %prep | |
1e3ae36c | 148 | |
149 | %setup -q | |
8efc0c15 | 150 | |
151 | %build | |
f025becb | 152 | CFLAGS="$RPM_OPT_FLAGS" \ |
7f8f5e00 | 153 | ./configure --prefix=/usr --sysconfdir=/etc/ssh \ |
154 | --libexecdir=/usr/libexec/ssh --with-gnome-askpass \ | |
155 | --with-tcp-wrappers --with-ipv4-default | |
df16c1f2 | 156 | make |
157 | ||
5cc53885 | 158 | cd contrib |
2a19c4d3 | 159 | gcc -O -g `gnome-config --cflags gnome gnomeui` \ |
5cc53885 | 160 | gnome-ssh-askpass.c -o gnome-ssh-askpass \ |
161 | `gnome-config --libs gnome gnomeui` | |
162 | cd .. | |
163 | ||
8efc0c15 | 164 | %install |
165 | rm -rf $RPM_BUILD_ROOT | |
ff8ecdb8 | 166 | make install DESTDIR=$RPM_BUILD_ROOT/ |
4655fe80 | 167 | install -d $RPM_BUILD_ROOT/etc/ssh/ |
22574738 | 168 | install -d $RPM_BUILD_ROOT/etc/pam.d/ |
4655fe80 | 169 | install -d $RPM_BUILD_ROOT/sbin/init.d/ |
a06a4e96 | 170 | install -d $RPM_BUILD_ROOT/var/adm/fillup-templates |
7f8f5e00 | 171 | install -d $RPM_BUILD_ROOT/usr/libexec/openssh |
172 | install -m644 contrib/sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd | |
5cc53885 | 173 | install -m744 contrib/suse/rc.sshd $RPM_BUILD_ROOT/sbin/init.d/sshd |
4655fe80 | 174 | ln -s ../../sbin/init.d/sshd $RPM_BUILD_ROOT/usr/sbin/rcsshd |
7f8f5e00 | 175 | install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/gnome-ssh-askpass |
176 | ln -s gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/ssh-askpass | |
5cc53885 | 177 | install -m744 contrib/suse/rc.config.sshd \ |
a06a4e96 | 178 | $RPM_BUILD_ROOT/var/adm/fillup-templates |
f1bcacf9 | 179 | |
8efc0c15 | 180 | %clean |
181 | rm -rf $RPM_BUILD_ROOT | |
182 | ||
d397b172 | 183 | %post server |
a06a4e96 | 184 | if [ "$1" = 1 ]; then |
185 | echo "Creating SSH stop/start scripts in the rc directories..." | |
4655fe80 | 186 | ln -s ../sshd /sbin/init.d/rc2.d/K20sshd |
187 | ln -s ../sshd /sbin/init.d/rc2.d/S20sshd | |
188 | ln -s ../sshd /sbin/init.d/rc3.d/K20sshd | |
189 | ln -s ../sshd /sbin/init.d/rc3.d/S20sshd | |
190 | fi | |
191 | echo "Updating /etc/rc.config..." | |
192 | if [ -x /bin/fillup ] ; then | |
193 | /bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.sshd | |
194 | else | |
195 | echo "ERROR: fillup not found. This should NOT happen in SuSE Linux." | |
196 | echo "Update /etc/rc.config by hand from the following template file:" | |
197 | echo " /var/adm/fillup-templates/rc.config.sshd" | |
198 | fi | |
f1bcacf9 | 199 | if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then |
a06a4e96 | 200 | echo "Generating SSH host key..." |
f1bcacf9 | 201 | /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2 |
8efc0c15 | 202 | fi |
ebdeb9a8 | 203 | if [ ! -f /etc/ssh/ssh_host_dsa_key -o ! -s /etc/ssh/ssh_host_dsa_key ]; then |
204 | echo "Generating SSH DSA host key..." | |
205 | /usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N '' >&2 | |
206 | fi | |
f1bcacf9 | 207 | if test -r /var/run/sshd.pid |
8efc0c15 | 208 | then |
a06a4e96 | 209 | echo "Restarting the running SSH daemon..." |
4655fe80 | 210 | /usr/sbin/rcsshd restart >&2 |
8efc0c15 | 211 | fi |
212 | ||
d397b172 | 213 | %preun server |
8efc0c15 | 214 | if [ "$1" = 0 ] |
215 | then | |
a06a4e96 | 216 | echo "Stopping the SSH daemon..." |
4655fe80 | 217 | /usr/sbin/rcsshd stop >&2 |
a06a4e96 | 218 | echo "Removing SSH stop/start scripts from the rc directories..." |
4655fe80 | 219 | rm /sbin/init.d/rc2.d/K20sshd |
220 | rm /sbin/init.d/rc2.d/S20sshd | |
221 | rm /sbin/init.d/rc3.d/K20sshd | |
222 | rm /sbin/init.d/rc3.d/S20sshd | |
8efc0c15 | 223 | fi |
224 | ||
225 | %files | |
226 | %defattr(-,root,root) | |
bedac4b1 | 227 | %doc COPYING.Ylonen ChangeLog OVERVIEW README* |
d2dcff5f | 228 | %doc RFC.nroff TODO UPGRADING CREDITS |
8c119fd0 | 229 | %attr(0755,root,root) /usr/bin/ssh-keygen |
230 | %attr(0755,root,root) /usr/bin/scp | |
09564242 | 231 | %attr(0644,root,root) %doc /usr/man/man1/ssh-keygen.1* |
232 | %attr(0644,root,root) %doc /usr/man/man1/scp.1* | |
8c119fd0 | 233 | %attr(0755,root,root) %dir /etc/ssh |
7f8f5e00 | 234 | %attr(0755,root,root) %dir /usr/libexec/openssh |
8c119fd0 | 235 | |
236 | %files clients | |
237 | %defattr(-,root,root) | |
f370266e | 238 | %attr(4755,root,root) /usr/bin/ssh |
372e9169 | 239 | %attr(0755,root,root) /usr/bin/ssh-agent |
372e9169 | 240 | %attr(0755,root,root) /usr/bin/ssh-add |
09564242 | 241 | %attr(0644,root,root) %doc /usr/man/man1/ssh.1* |
242 | %attr(0644,root,root) %doc /usr/man/man1/ssh-agent.1* | |
243 | %attr(0644,root,root) %doc /usr/man/man1/ssh-add.1* | |
a06a4e96 | 244 | %attr(0644,root,root) %config /etc/ssh/ssh_config |
8c119fd0 | 245 | %attr(-,root,root) /usr/bin/slogin |
09564242 | 246 | %attr(-,root,root) %doc /usr/man/man1/slogin.1* |
f1bcacf9 | 247 | |
d397b172 | 248 | %files server |
249 | %defattr(-,root,root) | |
250 | %attr(0755,root,root) /usr/sbin/sshd | |
7f8f5e00 | 251 | %attr(0755,root,root) /usr/libexec/openssh/sftp-server |
09564242 | 252 | %attr(0644,root,root) %doc /usr/man/man8/sshd.8* |
feab8600 | 253 | %attr(0644,root,root) %doc /usr/man/man8/sftp-server.8* |
a06a4e96 | 254 | %attr(0600,root,root) %config /etc/ssh/sshd_config |
255 | %attr(0644,root,root) %config /etc/pam.d/sshd | |
4655fe80 | 256 | %attr(0755,root,root) %config /sbin/init.d/sshd |
257 | %attr(-,root,root) /usr/sbin/rcsshd | |
258 | %attr(0644,root,root) /var/adm/fillup-templates/rc.config.sshd | |
8efc0c15 | 259 | |
d397b172 | 260 | %files askpass |
261 | %defattr(-,root,root) | |
7f8f5e00 | 262 | %attr(0755,root,root) /usr/libexec/openssh/ssh-askpass |
263 | %attr(0755,root,root) /usr/libexec/openssh/gnome-ssh-askpass | |
8c119fd0 | 264 |