]>
Commit | Line | Data |
---|---|---|
bc7ea646 | 1 | # Version of OpenSSH |
feab8600 | 2 | %define oversion 2.2.0p2 |
bc7ea646 | 3 | |
4 | # Version of ssh-askpass | |
c80876b4 | 5 | %define aversion 1.0.1 |
bc7ea646 | 6 | |
1e970014 | 7 | # Do we want to disable building of x11-askpass? (1=yes 0=no) |
8 | %define no_x11_askpass 0 | |
9 | ||
10 | # Do we want to disable building of gnome-askpass? (1=yes 0=no) | |
11 | %define no_gnome_askpass 0 | |
12 | ||
8efc0c15 | 13 | Summary: OpenSSH free Secure Shell (SSH) implementation |
14 | Name: openssh | |
bc7ea646 | 15 | Version: %{oversion} |
8efc0c15 | 16 | Release: 1 |
71d43804 | 17 | Packager: Damien Miller <djm@mindrot.org> |
177813fe | 18 | URL: http://www.openssh.com/ |
71d43804 | 19 | Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{oversion}.tar.gz |
c80876b4 | 20 | Source1: http://www.ntrnet.net/~jmknoble/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz |
8efc0c15 | 21 | Copyright: BSD |
22 | Group: Applications/Internet | |
23 | BuildRoot: /tmp/openssh-%{version}-buildroot | |
e9c75a39 | 24 | Obsoletes: ssh |
8ce64345 | 25 | PreReq: openssl >= 0.9.5a |
26 | Requires: openssl >= 0.9.5a | |
d2dcff5f | 27 | BuildPreReq: perl |
bc7ea646 | 28 | BuildPreReq: openssl-devel |
253bd324 | 29 | BuildPreReq: tcp_wrappers |
71d43804 | 30 | %if ! %{no_gnome_askpass} |
bc7ea646 | 31 | BuildPreReq: gnome-libs-devel |
1e970014 | 32 | %endif |
8c119fd0 | 33 | |
34 | %package clients | |
35 | Summary: OpenSSH Secure Shell protocol clients | |
36 | Requires: openssh | |
71d43804 | 37 | Group: Applications/Internet |
e9c75a39 | 38 | Obsoletes: ssh-clients |
8efc0c15 | 39 | |
d397b172 | 40 | %package server |
8c119fd0 | 41 | Summary: OpenSSH Secure Shell protocol server (sshd) |
d397b172 | 42 | Group: System Environment/Daemons |
e9c75a39 | 43 | Obsoletes: ssh-server |
30a39691 | 44 | PreReq: openssh chkconfig >= 0.9 |
d397b172 | 45 | |
46 | %package askpass | |
bc7ea646 | 47 | Summary: OpenSSH X11 passphrase dialog |
48 | Group: Applications/Internet | |
49 | Requires: openssh | |
50 | Obsoletes: ssh-extras | |
bc7ea646 | 51 | |
bc7ea646 | 52 | %package askpass-gnome |
8c119fd0 | 53 | Summary: OpenSSH GNOME passphrase dialog |
d397b172 | 54 | Group: Applications/Internet |
55 | Requires: openssh | |
8c119fd0 | 56 | Obsoletes: ssh-extras |
d397b172 | 57 | |
8efc0c15 | 58 | %description |
59 | Ssh (Secure Shell) a program for logging into a remote machine and for | |
60 | executing commands in a remote machine. It is intended to replace | |
61 | rlogin and rsh, and provide secure encrypted communications between | |
62 | two untrusted hosts over an insecure network. X11 connections and | |
63 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | |
64 | ||
65 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | |
66 | up to date in terms of security and features, as well as removing all | |
67 | patented algorithms to seperate libraries (OpenSSL). | |
68 | ||
8c119fd0 | 69 | This package includes the core files necessary for both the OpenSSH |
70 | client and server. To make this package useful, you should also | |
71 | install openssh-clients, openssh-server, or both. | |
72 | ||
73 | %description clients | |
74 | Ssh (Secure Shell) a program for logging into a remote machine and for | |
75 | executing commands in a remote machine. It is intended to replace | |
76 | rlogin and rsh, and provide secure encrypted communications between | |
77 | two untrusted hosts over an insecure network. X11 connections and | |
78 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | |
79 | ||
80 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | |
81 | up to date in terms of security and features, as well as removing all | |
82 | patented algorithms to seperate libraries (OpenSSL). | |
83 | ||
d397b172 | 84 | This package includes the clients necessary to make encrypted connections |
85 | to SSH servers. | |
86 | ||
87 | %description server | |
88 | Ssh (Secure Shell) a program for logging into a remote machine and for | |
89 | executing commands in a remote machine. It is intended to replace | |
90 | rlogin and rsh, and provide secure encrypted communications between | |
91 | two untrusted hosts over an insecure network. X11 connections and | |
92 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | |
93 | ||
94 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | |
95 | up to date in terms of security and features, as well as removing all | |
96 | patented algorithms to seperate libraries (OpenSSL). | |
97 | ||
8c119fd0 | 98 | This package contains the secure shell daemon. The sshd is the server |
99 | part of the secure shell protocol and allows ssh clients to connect to | |
100 | your host. | |
d397b172 | 101 | |
bc7ea646 | 102 | %description askpass |
103 | Ssh (Secure Shell) a program for logging into a remote machine and for | |
104 | executing commands in a remote machine. It is intended to replace | |
105 | rlogin and rsh, and provide secure encrypted communications between | |
106 | two untrusted hosts over an insecure network. X11 connections and | |
107 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | |
108 | ||
109 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | |
110 | up to date in terms of security and features, as well as removing all | |
111 | patented algorithms to seperate libraries (OpenSSL). | |
112 | ||
113 | This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase | |
114 | dialog. | |
bc7ea646 | 115 | |
8a4958eb | 116 | %description askpass-gnome |
d397b172 | 117 | Ssh (Secure Shell) a program for logging into a remote machine and for |
118 | executing commands in a remote machine. It is intended to replace | |
119 | rlogin and rsh, and provide secure encrypted communications between | |
120 | two untrusted hosts over an insecure network. X11 connections and | |
121 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | |
122 | ||
123 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | |
124 | up to date in terms of security and features, as well as removing all | |
125 | patented algorithms to seperate libraries (OpenSSL). | |
126 | ||
127 | This package contains the GNOME passphrase dialog. | |
128 | ||
8efc0c15 | 129 | %changelog |
feab8600 | 130 | * Tue Sep 05 2000 Damien Miller <djm@mindrot.org> |
131 | - Use RPM configure macro | |
71d43804 | 132 | * Tue Aug 08 2000 Damien Miller <djm@mindrot.org> |
133 | - Some surgery to sshd.init (generate keys at runtime) | |
134 | - Cleanup of groups and removal of keygen calls | |
1e970014 | 135 | * Wed Jul 12 2000 Damien Miller <djm@mindrot.org> |
136 | - Make building of X11-askpass and gnome-askpass optional | |
09564242 | 137 | * Mon Jun 12 2000 Damien Miller <djm@mindrot.org> |
138 | - Glob manpages to catch compressed files | |
5cc53885 | 139 | * Wed Mar 15 2000 Damien Miller <djm@ibs.com.au> |
140 | - Updated for new location | |
141 | - Updated for new gnome-ssh-askpass build | |
bc7ea646 | 142 | * Sun Dec 26 1999 Damien Miller <djm@mindrot.org> |
143 | - Added Jim Knoble's <jmknoble@pobox.com> askpass | |
8c119fd0 | 144 | * Mon Nov 15 1999 Damien Miller <djm@mindrot.org> |
145 | - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com> | |
10554a99 | 146 | * Sat Nov 13 1999 Damien Miller <djm@mindrot.org> |
e9c75a39 | 147 | - Added 'Obsoletes' directives |
f025becb | 148 | * Tue Nov 09 1999 Damien Miller <djm@ibs.com.au> |
149 | - Use make install | |
d397b172 | 150 | - Subpackages |
e1a9c08d | 151 | * Mon Nov 08 1999 Damien Miller <djm@ibs.com.au> |
152 | - Added links for slogin | |
153 | - Fixed perms on manpages | |
38393fc0 | 154 | * Sat Oct 30 1999 Damien Miller <djm@ibs.com.au> |
155 | - Renamed init script | |
339660f6 | 156 | * Fri Oct 29 1999 Damien Miller <djm@ibs.com.au> |
157 | - Back to old binary names | |
5aecb327 | 158 | * Thu Oct 28 1999 Damien Miller <djm@ibs.com.au> |
159 | - Use autoconf | |
160 | - New binary names | |
8efc0c15 | 161 | * Wed Oct 27 1999 Damien Miller <djm@ibs.com.au> |
162 | - Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec. | |
163 | ||
164 | %prep | |
165 | ||
feab8600 | 166 | %setup -q -a 1 |
8efc0c15 | 167 | |
168 | %build | |
169 | ||
7f8f5e00 | 170 | %configure --sysconfdir=/etc/ssh --libexecdir=/usr/libexec/openssh \ |
171 | --with-tcp-wrappers --with-rsh=/usr/bin/rsh | |
bc7ea646 | 172 | |
173 | make | |
8efc0c15 | 174 | |
1e970014 | 175 | %if ! %{no_x11_askpass} |
bc7ea646 | 176 | cd x11-ssh-askpass-%{aversion} |
177 | xmkmf -a | |
df16c1f2 | 178 | make |
bc7ea646 | 179 | cd .. |
1e970014 | 180 | %endif |
df16c1f2 | 181 | |
1e970014 | 182 | %if ! %{no_gnome_askpass} |
5cc53885 | 183 | cd contrib |
720da3f6 | 184 | gcc -O -g `gnome-config --cflags gnome gnomeui` \ |
5cc53885 | 185 | gnome-ssh-askpass.c -o gnome-ssh-askpass \ |
186 | `gnome-config --libs gnome gnomeui` | |
187 | cd .. | |
1e970014 | 188 | %endif |
5cc53885 | 189 | |
8efc0c15 | 190 | %install |
191 | rm -rf $RPM_BUILD_ROOT | |
ff8ecdb8 | 192 | make install DESTDIR=$RPM_BUILD_ROOT/ |
8efc0c15 | 193 | |
22574738 | 194 | install -d $RPM_BUILD_ROOT/etc/pam.d/ |
195 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d | |
7f8f5e00 | 196 | install -d $RPM_BUILD_ROOT/usr/libexec/openssh |
5cc53885 | 197 | install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd |
198 | install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd | |
f1bcacf9 | 199 | |
1e970014 | 200 | %if ! %{no_x11_askpass} |
7f8f5e00 | 201 | install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/x11-ssh-askpass |
202 | ln -s /usr/libexec/openssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/ssh-askpass | |
1e970014 | 203 | %endif |
bc7ea646 | 204 | |
1e970014 | 205 | %if ! %{no_gnome_askpass} |
7f8f5e00 | 206 | install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/gnome-ssh-askpass |
1e970014 | 207 | %endif |
5cc53885 | 208 | |
8efc0c15 | 209 | %clean |
210 | rm -rf $RPM_BUILD_ROOT | |
211 | ||
d397b172 | 212 | %post server |
f1bcacf9 | 213 | /sbin/chkconfig --add sshd |
71d43804 | 214 | if test -r /var/run/sshd.pid ; then |
f1bcacf9 | 215 | /etc/rc.d/init.d/sshd restart >&2 |
8efc0c15 | 216 | fi |
217 | ||
d397b172 | 218 | %preun server |
71d43804 | 219 | if [ "$1" = 0 ] ; then |
f1bcacf9 | 220 | /etc/rc.d/init.d/sshd stop >&2 |
221 | /sbin/chkconfig --del sshd | |
8efc0c15 | 222 | fi |
223 | ||
224 | %files | |
225 | %defattr(-,root,root) | |
bedac4b1 | 226 | %doc ChangeLog OVERVIEW COPYING.Ylonen README* INSTALL |
d2dcff5f | 227 | %doc CREDITS UPGRADING |
8c119fd0 | 228 | %attr(0755,root,root) /usr/bin/ssh-keygen |
229 | %attr(0755,root,root) /usr/bin/scp | |
09564242 | 230 | %attr(0644,root,root) /usr/man/man1/ssh-keygen.1* |
231 | %attr(0644,root,root) /usr/man/man1/scp.1* | |
8c119fd0 | 232 | %attr(0755,root,root) %dir /etc/ssh |
7f8f5e00 | 233 | %attr(0755,root,root) %dir /usr/libexec/openssh |
8c119fd0 | 234 | |
235 | %files clients | |
236 | %defattr(-,root,root) | |
f370266e | 237 | %attr(4755,root,root) /usr/bin/ssh |
372e9169 | 238 | %attr(0755,root,root) /usr/bin/ssh-agent |
372e9169 | 239 | %attr(0755,root,root) /usr/bin/ssh-add |
09564242 | 240 | %attr(0644,root,root) /usr/man/man1/ssh.1* |
241 | %attr(0644,root,root) /usr/man/man1/ssh-agent.1* | |
242 | %attr(0644,root,root) /usr/man/man1/ssh-add.1* | |
4655fe80 | 243 | %attr(0644,root,root) %config(noreplace) /etc/ssh/ssh_config |
8c119fd0 | 244 | %attr(-,root,root) /usr/bin/slogin |
09564242 | 245 | %attr(-,root,root) /usr/man/man1/slogin.1* |
f1bcacf9 | 246 | |
d397b172 | 247 | %files server |
248 | %defattr(-,root,root) | |
249 | %attr(0755,root,root) /usr/sbin/sshd | |
09564242 | 250 | %attr(0644,root,root) /usr/man/man8/sshd.8* |
4655fe80 | 251 | %attr(0600,root,root) %config(noreplace) /etc/ssh/sshd_config |
252 | %attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd | |
f1bcacf9 | 253 | %attr(0755,root,root) %config /etc/rc.d/init.d/sshd |
8efc0c15 | 254 | |
1e970014 | 255 | %if ! %{no_x11_askpass} |
d397b172 | 256 | %files askpass |
257 | %defattr(-,root,root) | |
f28583d0 | 258 | %doc x11-ssh-askpass-%{aversion}/README |
259 | %doc x11-ssh-askpass-%{aversion}/ChangeLog | |
260 | %doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad | |
7f8f5e00 | 261 | %attr(0755,root,root) /usr/libexec/openssh/ssh-askpass |
262 | %attr(0755,root,root) /usr/libexec/openssh/x11-ssh-askpass | |
1e970014 | 263 | %endif |
8c119fd0 | 264 | |
1e970014 | 265 | %if ! %{no_gnome_askpass} |
bc7ea646 | 266 | %files askpass-gnome |
267 | %defattr(-,root,root) | |
7f8f5e00 | 268 | %attr(0755,root,root) /usr/libexec/openssh/gnome-ssh-askpass |
1e970014 | 269 | %endif |