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