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