diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-01-04 22:54:50 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-01-04 22:54:50 +0000 |
commit | 91c2a985f9d00247ba2fda6aebbffaeac609f328 (patch) | |
tree | 3088f4d4c8e1c7d49cd61918d31444739749dda7 /contrib/caldera/openssh.spec | |
parent | f1aa21f18f381b3dbc9c619699baa62298364072 (diff) |
20010105
- (bal) contrib/caldera/ provided by Tim Rice <tim@multitalents.net>
Diffstat (limited to 'contrib/caldera/openssh.spec')
-rw-r--r-- | contrib/caldera/openssh.spec | 334 |
1 files changed, 334 insertions, 0 deletions
diff --git a/contrib/caldera/openssh.spec b/contrib/caldera/openssh.spec new file mode 100644 index 000000000..3191c6744 --- /dev/null +++ b/contrib/caldera/openssh.spec | |||
@@ -0,0 +1,334 @@ | |||
1 | # Version of OpenSSH | ||
2 | %define oversion 2.3.0p2 | ||
3 | |||
4 | # Version of ssh-askpass | ||
5 | %define aversion 1.1.1 | ||
6 | |||
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 1 | ||
12 | |||
13 | # Do we want to include contributed programs? (1=yes 0=no) | ||
14 | %define contrib_programs 1 | ||
15 | |||
16 | Summary: OpenSSH free Secure Shell (SSH) implementation | ||
17 | Name: openssh | ||
18 | Version: %{oversion} | ||
19 | Release: 1 | ||
20 | Packager: Damien Miller <djm@mindrot.org> | ||
21 | URL: http://www.openssh.com/ | ||
22 | Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{oversion}.tar.gz | ||
23 | Source1: http://www.ntrnet.net/~jmknoble/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz | ||
24 | Copyright: BSD | ||
25 | Group: Applications/Internet | ||
26 | BuildRoot: /var/tmp/openssh-%{Version}-buildroot | ||
27 | #BuildRoot: /tmp/openssh-%{Version}-buildroot | ||
28 | Obsoletes: ssh | ||
29 | PreReq: openssl >= 0.9.5a | ||
30 | Requires: openssl >= 0.9.5a | ||
31 | BuildPreReq: perl, openssl-devel, tcp_wrappers | ||
32 | BuildPreReq: /bin/login, /usr/bin/rsh, /usr/include/security/pam_appl.h | ||
33 | %if ! %{no_gnome_askpass} | ||
34 | BuildPreReq: gnome-libs-devel | ||
35 | %endif | ||
36 | |||
37 | %package clients | ||
38 | Summary: OpenSSH Secure Shell protocol clients | ||
39 | Requires: openssh = %{Version}-%{release} | ||
40 | Group: Applications/Internet | ||
41 | Obsoletes: ssh-clients | ||
42 | |||
43 | %package server | ||
44 | Summary: OpenSSH Secure Shell protocol server (sshd) | ||
45 | Group: System Environment/Daemons | ||
46 | Obsoletes: ssh-server | ||
47 | #PreReq: openssh chkconfig >= 0.9 | ||
48 | |||
49 | %package askpass | ||
50 | Summary: OpenSSH X11 passphrase dialog | ||
51 | Group: Applications/Internet | ||
52 | Requires: openssh = %{Version}-%{release} | ||
53 | Obsoletes: ssh-extras | ||
54 | |||
55 | %package askpass-gnome | ||
56 | Summary: OpenSSH GNOME passphrase dialog | ||
57 | Group: Applications/Internet | ||
58 | Requires: openssh = %{Version}-%{release} | ||
59 | Obsoletes: ssh-extras | ||
60 | |||
61 | %description | ||
62 | Ssh (Secure Shell) a program for logging into a remote machine and for | ||
63 | executing commands in a remote machine. It is intended to replace | ||
64 | rlogin and rsh, and provide secure encrypted communications between | ||
65 | two untrusted hosts over an insecure network. X11 connections and | ||
66 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | ||
67 | |||
68 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | ||
69 | up to date in terms of security and features, as well as removing all | ||
70 | patented algorithms to separate libraries (OpenSSL). | ||
71 | |||
72 | This package includes the core files necessary for both the OpenSSH | ||
73 | client and server. To make this package useful, you should also | ||
74 | install openssh-clients, openssh-server, or both. | ||
75 | |||
76 | %description clients | ||
77 | Ssh (Secure Shell) a program for logging into a remote machine and for | ||
78 | executing commands in a remote machine. It is intended to replace | ||
79 | rlogin and rsh, and provide secure encrypted communications between | ||
80 | two untrusted hosts over an insecure network. X11 connections and | ||
81 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | ||
82 | |||
83 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | ||
84 | up to date in terms of security and features, as well as removing all | ||
85 | patented algorithms to separate libraries (OpenSSL). | ||
86 | |||
87 | This package includes the clients necessary to make encrypted connections | ||
88 | to SSH servers. | ||
89 | |||
90 | %description server | ||
91 | Ssh (Secure Shell) a program for logging into a remote machine and for | ||
92 | executing commands in a remote machine. It is intended to replace | ||
93 | rlogin and rsh, and provide secure encrypted communications between | ||
94 | two untrusted hosts over an insecure network. X11 connections and | ||
95 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | ||
96 | |||
97 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | ||
98 | up to date in terms of security and features, as well as removing all | ||
99 | patented algorithms to separate libraries (OpenSSL). | ||
100 | |||
101 | This package contains the secure shell daemon. The sshd is the server | ||
102 | part of the secure shell protocol and allows ssh clients to connect to | ||
103 | your host. | ||
104 | |||
105 | %description askpass | ||
106 | Ssh (Secure Shell) a program for logging into a remote machine and for | ||
107 | executing commands in a remote machine. It is intended to replace | ||
108 | rlogin and rsh, and provide secure encrypted communications between | ||
109 | two untrusted hosts over an insecure network. X11 connections and | ||
110 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | ||
111 | |||
112 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | ||
113 | up to date in terms of security and features, as well as removing all | ||
114 | patented algorithms to separate libraries (OpenSSL). | ||
115 | |||
116 | This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase | ||
117 | dialog. | ||
118 | |||
119 | %description askpass-gnome | ||
120 | Ssh (Secure Shell) a program for logging into a remote machine and for | ||
121 | executing commands in a remote machine. It is intended to replace | ||
122 | rlogin and rsh, and provide secure encrypted communications between | ||
123 | two untrusted hosts over an insecure network. X11 connections and | ||
124 | arbitrary TCP/IP ports can also be forwarded over the secure channel. | ||
125 | |||
126 | OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it | ||
127 | up to date in terms of security and features, as well as removing all | ||
128 | patented algorithms to separate libraries (OpenSSL). | ||
129 | |||
130 | This package contains the GNOME passphrase dialog. | ||
131 | |||
132 | %prep | ||
133 | |||
134 | %setup -a 1 | ||
135 | |||
136 | %build | ||
137 | |||
138 | %define _sysconfdir /etc/ssh | ||
139 | |||
140 | CFLAGS="$RPM_OPT_FLAGS" \ | ||
141 | ./configure \ | ||
142 | --prefix=/usr \ | ||
143 | --sysconfdir=/etc/ssh \ | ||
144 | --libexecdir=%{_libexecdir}/openssh \ | ||
145 | --with-tcp-wrappers \ | ||
146 | --with-ipv4-default \ | ||
147 | --with-rsh=/usr/bin/rsh | ||
148 | |||
149 | make | ||
150 | |||
151 | %if ! %{no_x11_askpass} | ||
152 | cd x11-ssh-askpass-%{aversion} | ||
153 | xmkmf -a | ||
154 | make | ||
155 | cd .. | ||
156 | %endif | ||
157 | |||
158 | %if ! %{no_gnome_askpass} | ||
159 | cd contrib | ||
160 | gcc -O -g `gnome-config --cflags gnome gnomeui` \ | ||
161 | gnome-ssh-askpass.c -o gnome-ssh-askpass \ | ||
162 | `gnome-config --libs gnome gnomeui` | ||
163 | cd .. | ||
164 | %endif | ||
165 | |||
166 | %install | ||
167 | rm -rf $RPM_BUILD_ROOT | ||
168 | make install DESTDIR=$RPM_BUILD_ROOT/ | ||
169 | |||
170 | # setup the environment we want | ||
171 | perl -pi -e "s,PermitRootLogin yes,PermitRootLogin no,;" \ | ||
172 | -e "s,X11Forwarding no,X11Forwarding yes,;" \ | ||
173 | -e "s,CheckMail no,CheckMail yes,;" \ | ||
174 | -e "s,^#Subsystem sftp,Subsystem sftp,;" \ | ||
175 | $RPM_BUILD_ROOT/etc/ssh/sshd_config | ||
176 | |||
177 | install -d $RPM_BUILD_ROOT/etc/pam.d/ | ||
178 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d | ||
179 | install -d $RPM_BUILD_ROOT/etc/sysconfig/daemons | ||
180 | install -d $RPM_BUILD_ROOT%{_libexecdir}/openssh | ||
181 | install -d $RPM_BUILD_ROOT/usr/local/bin | ||
182 | install -d $RPM_BUILD_ROOT/usr/local/man/man1 | ||
183 | install -m644 contrib/caldera/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd | ||
184 | install -m755 contrib/caldera/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd | ||
185 | install -m755 contrib/caldera/sshd.daemons $RPM_BUILD_ROOT/etc/sysconfig/daemons/sshd | ||
186 | perl -pi -e "s,\@OPENSSH_VERSION\@,%{Name}-%{Version},g" \ | ||
187 | $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd | ||
188 | perl -pi -e "s,\@OPENSSH_VERSION\@,%{Name}-%{Version},g" \ | ||
189 | $RPM_BUILD_ROOT/etc/sysconfig/daemons/sshd | ||
190 | %if %{contrib_programs} | ||
191 | install -m755 contrib/make-ssh-known-hosts.pl $RPM_BUILD_ROOT/usr/local/bin | ||
192 | install -m644 contrib/make-ssh-known-hosts.1 $RPM_BUILD_ROOT/usr/local/man/man1 | ||
193 | install -m755 contrib/ssh-copy-id $RPM_BUILD_ROOT/usr/local/bin | ||
194 | install -m644 contrib/ssh-copy-id.1 $RPM_BUILD_ROOT/usr/local/man/man1 | ||
195 | %endif | ||
196 | |||
197 | %if ! %{no_x11_askpass} | ||
198 | install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/x11-ssh-askpass | ||
199 | ln -s /usr/libexec/openssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/ssh-askpass | ||
200 | install -d $RPM_BUILD_ROOT/usr/X11R6/man/man1 | ||
201 | install -c -m 0444 x11-ssh-askpass-%{aversion}/x11-ssh-askpass.man $RPM_BUILD_ROOT/usr/X11R6/man/man1/x11-ssh-askpass.1x | ||
202 | ln -s /usr/X11R6/man/man1/x11-ssh-askpass.1x $RPM_BUILD_ROOT/usr/X11R6/man/man1/ssh-askpass.1x | ||
203 | %endif | ||
204 | |||
205 | %if ! %{no_gnome_askpass} | ||
206 | install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/gnome-ssh-askpass | ||
207 | %endif | ||
208 | |||
209 | %clean | ||
210 | ##rm -rf $RPM_BUILD_ROOT | ||
211 | |||
212 | %post server | ||
213 | if [ "$1" = 1 ]; then | ||
214 | echo "Creating SSH stop/start scripts in the rc directories..." | ||
215 | # /sbin/chkconfig --add sshd | ||
216 | lisa --SysV-init install sshd S90 2:3:4:5 K05 0:1:6 | ||
217 | fi | ||
218 | if test -r /var/run/sshd.pid | ||
219 | then | ||
220 | echo "Restarting the running SSH daemon..." | ||
221 | /etc/rc.d/init.d/sshd restart >&2 | ||
222 | else | ||
223 | echo "Starting the SSH daemon..." | ||
224 | /etc/rc.d/init.d/sshd start >&2 | ||
225 | fi | ||
226 | |||
227 | %preun server | ||
228 | if [ "$1" = 0 ] ; then | ||
229 | echo "Stopping the SSH daemon..." | ||
230 | /etc/rc.d/init.d/sshd stop >&2 | ||
231 | echo "Removing SSH stop/start scripts from the rc directories..." | ||
232 | # /sbin/chkconfig --del sshd | ||
233 | lisa --SysV-init remove sshd $1 | ||
234 | fi | ||
235 | |||
236 | %files | ||
237 | %defattr(-,root,root) | ||
238 | %doc ChangeLog OVERVIEW README* INSTALL | ||
239 | %doc CREDITS LICENCE | ||
240 | %attr(0755,root,root) %{_bindir}/ssh-keygen | ||
241 | %attr(0755,root,root) %{_bindir}/scp | ||
242 | %attr(0755,root,root) %{_bindir}/ssh-keyscan | ||
243 | %attr(0644,root,root) %{_mandir}/man1/ssh-keygen.1* | ||
244 | %attr(0644,root,root) %{_mandir}/man1/ssh-keyscan.1* | ||
245 | %attr(0644,root,root) %{_mandir}/man1/scp.1* | ||
246 | %attr(0755,root,root) %dir %{_sysconfdir} | ||
247 | %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/primes | ||
248 | %attr(0755,root,root) %dir %{_libexecdir}/openssh | ||
249 | |||
250 | %files clients | ||
251 | %defattr(-,root,root) | ||
252 | %attr(4755,root,root) %{_bindir}/ssh | ||
253 | %attr(0755,root,root) %{_bindir}/ssh-agent | ||
254 | %attr(0755,root,root) %{_bindir}/ssh-add | ||
255 | %attr(0644,root,root) %{_mandir}/man1/ssh.1* | ||
256 | %attr(0644,root,root) %{_mandir}/man1/ssh-agent.1* | ||
257 | %attr(0644,root,root) %{_mandir}/man1/ssh-add.1* | ||
258 | %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ssh_config | ||
259 | %attr(-,root,root) %{_bindir}/slogin | ||
260 | %attr(-,root,root) %{_mandir}/man1/slogin.1* | ||
261 | %if %{contrib_programs} | ||
262 | %attr(0755,root,root) /usr/local/bin/make-ssh-known-hosts.pl | ||
263 | %attr(0644,root,root) /usr/local/man/man1/make-ssh-known-hosts.1 | ||
264 | %attr(0755,root,root) /usr/local/bin/ssh-copy-id | ||
265 | %attr(0644,root,root) /usr/local/man/man1/ssh-copy-id.1 | ||
266 | %endif | ||
267 | |||
268 | %files server | ||
269 | %defattr(-,root,root) | ||
270 | %attr(0751,root,root) %{_sbindir}/sshd | ||
271 | %attr(0755,root,root) %{_libexecdir}/openssh/sftp-server | ||
272 | %attr(0644,root,root) %{_mandir}/man8/sshd.8* | ||
273 | %attr(0644,root,root) %{_mandir}/man8/sftp-server.8* | ||
274 | %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sshd_config | ||
275 | %attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd | ||
276 | %attr(0755,root,root) %config /etc/rc.d/init.d/sshd | ||
277 | %attr(0755,root,root) %config /etc/sysconfig/daemons/sshd | ||
278 | |||
279 | %if ! %{no_x11_askpass} | ||
280 | %files askpass | ||
281 | %defattr(-,root,root) | ||
282 | %doc x11-ssh-askpass-%{aversion}/README | ||
283 | %doc x11-ssh-askpass-%{aversion}/ChangeLog | ||
284 | %doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad | ||
285 | %attr(0755,root,root) %{_libexecdir}/openssh/ssh-askpass | ||
286 | %attr(0755,root,root) %{_libexecdir}/openssh/x11-ssh-askpass | ||
287 | %attr(0644,root,root) /usr/X11R6/man/man1/x11-ssh-askpass.1x | ||
288 | %attr(-,root,root) /usr/X11R6/man/man1/ssh-askpass.1x | ||
289 | %endif | ||
290 | |||
291 | %if ! %{no_gnome_askpass} | ||
292 | %files askpass-gnome | ||
293 | %defattr(-,root,root) | ||
294 | %attr(0755,root,root) %{_libexecdir}/openssh/gnome-ssh-askpass | ||
295 | %endif | ||
296 | |||
297 | %changelog | ||
298 | * Mon Oct 18 2000 Damien Miller <djm@mindrot.org> | ||
299 | - Merge some of Nalin Dahyabhai <nalin@redhat.com> changes from the | ||
300 | Redhat 7.0 spec file | ||
301 | * Tue Sep 05 2000 Damien Miller <djm@mindrot.org> | ||
302 | - Use RPM configure macro | ||
303 | * Tue Aug 08 2000 Damien Miller <djm@mindrot.org> | ||
304 | - Some surgery to sshd.init (generate keys at runtime) | ||
305 | - Cleanup of groups and removal of keygen calls | ||
306 | * Wed Jul 12 2000 Damien Miller <djm@mindrot.org> | ||
307 | - Make building of X11-askpass and gnome-askpass optional | ||
308 | * Mon Jun 12 2000 Damien Miller <djm@mindrot.org> | ||
309 | - Glob manpages to catch compressed files | ||
310 | * Wed Mar 15 2000 Damien Miller <djm@ibs.com.au> | ||
311 | - Updated for new location | ||
312 | - Updated for new gnome-ssh-askpass build | ||
313 | * Sun Dec 26 1999 Damien Miller <djm@mindrot.org> | ||
314 | - Added Jim Knoble's <jmknoble@pobox.com> askpass | ||
315 | * Mon Nov 15 1999 Damien Miller <djm@mindrot.org> | ||
316 | - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com> | ||
317 | * Sat Nov 13 1999 Damien Miller <djm@mindrot.org> | ||
318 | - Added 'Obsoletes' directives | ||
319 | * Tue Nov 09 1999 Damien Miller <djm@ibs.com.au> | ||
320 | - Use make install | ||
321 | - Subpackages | ||
322 | * Mon Nov 08 1999 Damien Miller <djm@ibs.com.au> | ||
323 | - Added links for slogin | ||
324 | - Fixed perms on manpages | ||
325 | * Sat Oct 30 1999 Damien Miller <djm@ibs.com.au> | ||
326 | - Renamed init script | ||
327 | * Fri Oct 29 1999 Damien Miller <djm@ibs.com.au> | ||
328 | - Back to old binary names | ||
329 | * Thu Oct 28 1999 Damien Miller <djm@ibs.com.au> | ||
330 | - Use autoconf | ||
331 | - New binary names | ||
332 | * Wed Oct 27 1999 Damien Miller <djm@ibs.com.au> | ||
333 | - Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec. | ||
334 | |||