]>
Commit | Line | Data |
---|---|---|
bc7ea646 | 1 | # Version of OpenSSH |
d0c832f3 | 2 | %define oversion 2.1.0beta1 |
bc7ea646 | 3 | |
4 | # Version of ssh-askpass | |
177813fe | 5 | %define aversion 1.0 |
bc7ea646 | 6 | |
8efc0c15 | 7 | Summary: OpenSSH free Secure Shell (SSH) implementation |
8 | Name: openssh | |
bc7ea646 | 9 | Version: %{oversion} |
8efc0c15 | 10 | Release: 1 |
11 | Packager: Damien Miller <djm@ibs.com.au> | |
177813fe | 12 | URL: http://www.openssh.com/ |
bc7ea646 | 13 | Source0: http://violet.ibs.com.au/openssh/files/openssh-%{oversion}.tar.gz |
9755cbdb | 14 | Source1: http://www.ntrnet.net/~jmknoble/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz |
8efc0c15 | 15 | Copyright: BSD |
16 | Group: Applications/Internet | |
17 | BuildRoot: /tmp/openssh-%{version}-buildroot | |
e9c75a39 | 18 | Obsoletes: ssh |
8ce64345 | 19 | PreReq: openssl >= 0.9.5a |
20 | Requires: openssl >= 0.9.5a | |
d2dcff5f | 21 | BuildPreReq: perl |
bc7ea646 | 22 | BuildPreReq: openssl-devel |
253bd324 | 23 | BuildPreReq: tcp_wrappers |
bc7ea646 | 24 | BuildPreReq: gnome-libs-devel |
8c119fd0 | 25 | |
26 | %package clients | |
27 | Summary: OpenSSH Secure Shell protocol clients | |
28 | Requires: openssh | |
29 | Group: System Environment/Daemons | |
e9c75a39 | 30 | Obsoletes: ssh-clients |
8efc0c15 | 31 | |
d397b172 | 32 | %package server |
8c119fd0 | 33 | Summary: OpenSSH Secure Shell protocol server (sshd) |
d397b172 | 34 | Group: System Environment/Daemons |
e9c75a39 | 35 | Obsoletes: ssh-server |
30a39691 | 36 | PreReq: openssh chkconfig >= 0.9 |
d397b172 | 37 | |
38 | %package askpass | |
bc7ea646 | 39 | Summary: OpenSSH X11 passphrase dialog |
40 | Group: Applications/Internet | |
41 | Requires: openssh | |
42 | Obsoletes: ssh-extras | |
bc7ea646 | 43 | |
bc7ea646 | 44 | %package askpass-gnome |
8c119fd0 | 45 | Summary: OpenSSH GNOME passphrase dialog |
d397b172 | 46 | Group: Applications/Internet |
47 | Requires: openssh | |
8c119fd0 | 48 | Obsoletes: ssh-extras |
d397b172 | 49 | |
8efc0c15 | 50 | %description |
51 | Ssh (Secure Shell) a program for logging into a remote machine and for | |
52 | executing commands in a remote machine. It is intended to replace | |
53 | rlogin and rsh, and provide secure encrypted communications between | |
54 | two untrusted hosts over an insecure network. X11 connections and | |
55 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | |
56 | ||
57 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | |
58 | up to date in terms of security and features, as well as removing all | |
59 | patented algorithms to seperate libraries (OpenSSL). | |
60 | ||
8c119fd0 | 61 | This package includes the core files necessary for both the OpenSSH |
62 | client and server. To make this package useful, you should also | |
63 | install openssh-clients, openssh-server, or both. | |
64 | ||
65 | %description clients | |
66 | Ssh (Secure Shell) a program for logging into a remote machine and for | |
67 | executing commands in a remote machine. It is intended to replace | |
68 | rlogin and rsh, and provide secure encrypted communications between | |
69 | two untrusted hosts over an insecure network. X11 connections and | |
70 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | |
71 | ||
72 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | |
73 | up to date in terms of security and features, as well as removing all | |
74 | patented algorithms to seperate libraries (OpenSSL). | |
75 | ||
d397b172 | 76 | This package includes the clients necessary to make encrypted connections |
77 | to SSH servers. | |
78 | ||
79 | %description server | |
80 | Ssh (Secure Shell) a program for logging into a remote machine and for | |
81 | executing commands in a remote machine. It is intended to replace | |
82 | rlogin and rsh, and provide secure encrypted communications between | |
83 | two untrusted hosts over an insecure network. X11 connections and | |
84 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | |
85 | ||
86 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | |
87 | up to date in terms of security and features, as well as removing all | |
88 | patented algorithms to seperate libraries (OpenSSL). | |
89 | ||
8c119fd0 | 90 | This package contains the secure shell daemon. The sshd is the server |
91 | part of the secure shell protocol and allows ssh clients to connect to | |
92 | your host. | |
d397b172 | 93 | |
bc7ea646 | 94 | %description askpass |
95 | Ssh (Secure Shell) a program for logging into a remote machine and for | |
96 | executing commands in a remote machine. It is intended to replace | |
97 | rlogin and rsh, and provide secure encrypted communications between | |
98 | two untrusted hosts over an insecure network. X11 connections and | |
99 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | |
100 | ||
101 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | |
102 | up to date in terms of security and features, as well as removing all | |
103 | patented algorithms to seperate libraries (OpenSSL). | |
104 | ||
105 | This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase | |
106 | dialog. | |
bc7ea646 | 107 | |
8a4958eb | 108 | %description askpass-gnome |
d397b172 | 109 | Ssh (Secure Shell) a program for logging into a remote machine and for |
110 | executing commands in a remote machine. It is intended to replace | |
111 | rlogin and rsh, and provide secure encrypted communications between | |
112 | two untrusted hosts over an insecure network. X11 connections and | |
113 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | |
114 | ||
115 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | |
116 | up to date in terms of security and features, as well as removing all | |
117 | patented algorithms to seperate libraries (OpenSSL). | |
118 | ||
119 | This package contains the GNOME passphrase dialog. | |
120 | ||
8efc0c15 | 121 | %changelog |
5cc53885 | 122 | * Wed Mar 15 2000 Damien Miller <djm@ibs.com.au> |
123 | - Updated for new location | |
124 | - Updated for new gnome-ssh-askpass build | |
bc7ea646 | 125 | * Sun Dec 26 1999 Damien Miller <djm@mindrot.org> |
126 | - Added Jim Knoble's <jmknoble@pobox.com> askpass | |
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 | |
148 | ||
bc7ea646 | 149 | %setup -a 1 |
8efc0c15 | 150 | |
151 | %build | |
152 | ||
f025becb | 153 | CFLAGS="$RPM_OPT_FLAGS" \ |
253bd324 | 154 | ./configure --prefix=/usr --sysconfdir=/etc/ssh \ |
5cc53885 | 155 | --with-tcp-wrappers --with-ipv4-default |
bc7ea646 | 156 | |
157 | make | |
8efc0c15 | 158 | |
bc7ea646 | 159 | cd x11-ssh-askpass-%{aversion} |
160 | xmkmf -a | |
df16c1f2 | 161 | make |
bc7ea646 | 162 | cd .. |
df16c1f2 | 163 | |
5cc53885 | 164 | cd contrib |
720da3f6 | 165 | gcc -O -g `gnome-config --cflags gnome gnomeui` \ |
5cc53885 | 166 | gnome-ssh-askpass.c -o gnome-ssh-askpass \ |
167 | `gnome-config --libs gnome gnomeui` | |
168 | cd .. | |
169 | ||
8efc0c15 | 170 | %install |
171 | rm -rf $RPM_BUILD_ROOT | |
ff8ecdb8 | 172 | make install DESTDIR=$RPM_BUILD_ROOT/ |
8efc0c15 | 173 | |
22574738 | 174 | install -d $RPM_BUILD_ROOT/etc/pam.d/ |
175 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d | |
fb9a1607 | 176 | install -d $RPM_BUILD_ROOT/usr/libexec/ssh |
5cc53885 | 177 | install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd |
178 | install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd | |
f1bcacf9 | 179 | |
e5c2eb8c | 180 | install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/x11-ssh-askpass |
bc7ea646 | 181 | ln -s /usr/libexec/ssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass |
bc7ea646 | 182 | |
5cc53885 | 183 | install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/gnome-ssh-askpass |
184 | ||
8efc0c15 | 185 | %clean |
186 | rm -rf $RPM_BUILD_ROOT | |
187 | ||
d397b172 | 188 | %post server |
f1bcacf9 | 189 | /sbin/chkconfig --add sshd |
190 | if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then | |
191 | /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2 | |
8efc0c15 | 192 | fi |
ebdeb9a8 | 193 | if [ ! -f /etc/ssh/ssh_host_dsa_key -o ! -s /etc/ssh/ssh_host_dsa_key ]; then |
194 | /usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N '' >&2 | |
195 | fi | |
f1bcacf9 | 196 | if test -r /var/run/sshd.pid |
8efc0c15 | 197 | then |
f1bcacf9 | 198 | /etc/rc.d/init.d/sshd restart >&2 |
8efc0c15 | 199 | fi |
200 | ||
d397b172 | 201 | %preun server |
8efc0c15 | 202 | if [ "$1" = 0 ] |
203 | then | |
f1bcacf9 | 204 | /etc/rc.d/init.d/sshd stop >&2 |
205 | /sbin/chkconfig --del sshd | |
8efc0c15 | 206 | fi |
207 | ||
208 | %files | |
209 | %defattr(-,root,root) | |
bedac4b1 | 210 | %doc ChangeLog OVERVIEW COPYING.Ylonen README* INSTALL |
d2dcff5f | 211 | %doc CREDITS UPGRADING |
8c119fd0 | 212 | %attr(0755,root,root) /usr/bin/ssh-keygen |
213 | %attr(0755,root,root) /usr/bin/scp | |
214 | %attr(0644,root,root) /usr/man/man1/ssh-keygen.1 | |
215 | %attr(0644,root,root) /usr/man/man1/scp.1 | |
216 | %attr(0755,root,root) %dir /etc/ssh | |
2614f09b | 217 | %attr(0755,root,root) %dir /usr/libexec/ssh |
8c119fd0 | 218 | |
219 | %files clients | |
220 | %defattr(-,root,root) | |
f370266e | 221 | %attr(4755,root,root) /usr/bin/ssh |
372e9169 | 222 | %attr(0755,root,root) /usr/bin/ssh-agent |
372e9169 | 223 | %attr(0755,root,root) /usr/bin/ssh-add |
e1a9c08d | 224 | %attr(0644,root,root) /usr/man/man1/ssh.1 |
225 | %attr(0644,root,root) /usr/man/man1/ssh-agent.1 | |
e1a9c08d | 226 | %attr(0644,root,root) /usr/man/man1/ssh-add.1 |
4655fe80 | 227 | %attr(0644,root,root) %config(noreplace) /etc/ssh/ssh_config |
8c119fd0 | 228 | %attr(-,root,root) /usr/bin/slogin |
229 | %attr(-,root,root) /usr/man/man1/slogin.1 | |
f1bcacf9 | 230 | |
d397b172 | 231 | %files server |
232 | %defattr(-,root,root) | |
233 | %attr(0755,root,root) /usr/sbin/sshd | |
234 | %attr(0644,root,root) /usr/man/man8/sshd.8 | |
4655fe80 | 235 | %attr(0600,root,root) %config(noreplace) /etc/ssh/sshd_config |
236 | %attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd | |
f1bcacf9 | 237 | %attr(0755,root,root) %config /etc/rc.d/init.d/sshd |
8efc0c15 | 238 | |
d397b172 | 239 | %files askpass |
240 | %defattr(-,root,root) | |
f28583d0 | 241 | %doc x11-ssh-askpass-%{aversion}/README |
242 | %doc x11-ssh-askpass-%{aversion}/ChangeLog | |
243 | %doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad | |
736890c4 | 244 | %attr(0755,root,root) /usr/libexec/ssh/ssh-askpass |
bc7ea646 | 245 | %attr(0755,root,root) /usr/libexec/ssh/x11-ssh-askpass |
8c119fd0 | 246 | |
bc7ea646 | 247 | %files askpass-gnome |
248 | %defattr(-,root,root) | |
249 | %attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass |