]> andersk Git - openssh.git/blob - contrib/redhat/openssh.spec
- (djm) Shadow expiry check fix from Pavel Troller <patrol@omni.sinus.cz>
[openssh.git] / contrib / redhat / openssh.spec
1 # Version of OpenSSH
2 %define oversion 2.2.0p2
3
4 # Version of ssh-askpass
5 %define aversion 1.0.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 0
12
13 Summary: OpenSSH free Secure Shell (SSH) implementation
14 Name: openssh
15 Version: %{oversion}
16 Release: 1
17 Packager: Damien Miller <djm@mindrot.org>
18 URL: http://www.openssh.com/
19 Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{oversion}.tar.gz
20 Source1: http://www.ntrnet.net/~jmknoble/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz 
21 Copyright: BSD
22 Group: Applications/Internet
23 BuildRoot: /tmp/openssh-%{version}-buildroot
24 Obsoletes: ssh
25 PreReq: openssl >= 0.9.5a
26 Requires: openssl >= 0.9.5a
27 BuildPreReq: perl
28 BuildPreReq: openssl-devel
29 BuildPreReq: tcp_wrappers
30 %if ! %{no_gnome_askpass}
31 BuildPreReq: gnome-libs-devel
32 %endif
33
34 %package clients
35 Summary: OpenSSH Secure Shell protocol clients
36 Requires: openssh
37 Group: Applications/Internet
38 Obsoletes: ssh-clients
39
40 %package server
41 Summary: OpenSSH Secure Shell protocol server (sshd)
42 Group: System Environment/Daemons
43 Obsoletes: ssh-server
44 PreReq: openssh chkconfig >= 0.9
45
46 %package askpass
47 Summary: OpenSSH X11 passphrase dialog
48 Group: Applications/Internet
49 Requires: openssh
50 Obsoletes: ssh-extras
51
52 %package askpass-gnome
53 Summary: OpenSSH GNOME passphrase dialog
54 Group: Applications/Internet
55 Requires: openssh
56 Obsoletes: ssh-extras
57
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
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
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
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.
101
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.
115
116 %description askpass-gnome
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
129 %changelog
130 * Tue Sep 05 2000 Damien Miller <djm@mindrot.org>
131 - Use RPM configure macro
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
135 * Wed Jul 12 2000 Damien Miller <djm@mindrot.org>
136 - Make building of X11-askpass and gnome-askpass optional
137 * Mon Jun 12 2000 Damien Miller <djm@mindrot.org>
138 - Glob manpages to catch compressed files
139 * Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
140 - Updated for new location
141 - Updated for new gnome-ssh-askpass build
142 * Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
143 - Added Jim Knoble's <jmknoble@pobox.com> askpass
144 * Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
145 - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
146 * Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
147 - Added 'Obsoletes' directives
148 * Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
149 - Use make install
150 - Subpackages
151 * Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
152 - Added links for slogin
153 - Fixed perms on manpages
154 * Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
155 - Renamed init script
156 * Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
157 - Back to old binary names
158 * Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
159 - Use autoconf
160 - New binary names
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
166 %setup -q -a 1
167
168 %build
169
170 %configure --sysconfdir=/etc/ssh --libexecdir=/usr/libexec/openssh \
171         --with-tcp-wrappers --with-rsh=/usr/bin/rsh
172
173 make
174
175 %if ! %{no_x11_askpass}
176 cd x11-ssh-askpass-%{aversion}
177 xmkmf -a
178 make
179 cd ..
180 %endif
181
182 %if ! %{no_gnome_askpass}
183 cd contrib
184 gcc -O -g `gnome-config --cflags gnome gnomeui` \
185         gnome-ssh-askpass.c -o gnome-ssh-askpass \
186         `gnome-config --libs gnome gnomeui`
187 cd ..
188 %endif
189
190 %install
191 rm -rf $RPM_BUILD_ROOT
192 make install DESTDIR=$RPM_BUILD_ROOT/
193
194 install -d $RPM_BUILD_ROOT/etc/pam.d/
195 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
196 install -d $RPM_BUILD_ROOT/usr/libexec/openssh
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
199
200 %if ! %{no_x11_askpass}
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
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 /sbin/chkconfig --add sshd
214 if test -r /var/run/sshd.pid ; then
215         /etc/rc.d/init.d/sshd restart >&2
216 fi
217
218 %preun server
219 if [ "$1" = 0 ] ; then
220         /etc/rc.d/init.d/sshd stop >&2
221         /sbin/chkconfig --del sshd
222 fi
223
224 %files
225 %defattr(-,root,root)
226 %doc ChangeLog OVERVIEW COPYING.Ylonen README* INSTALL 
227 %doc CREDITS UPGRADING
228 %attr(0755,root,root) /usr/bin/ssh-keygen
229 %attr(0755,root,root) /usr/bin/scp
230 %attr(0644,root,root) /usr/man/man1/ssh-keygen.1*
231 %attr(0644,root,root) /usr/man/man1/scp.1*
232 %attr(0755,root,root) %dir /etc/ssh
233 %attr(0755,root,root) %dir /usr/libexec/openssh
234
235 %files clients
236 %defattr(-,root,root)
237 %attr(4755,root,root) /usr/bin/ssh
238 %attr(0755,root,root) /usr/bin/ssh-agent
239 %attr(0755,root,root) /usr/bin/ssh-add
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*
243 %attr(0644,root,root) %config(noreplace) /etc/ssh/ssh_config
244 %attr(-,root,root) /usr/bin/slogin
245 %attr(-,root,root) /usr/man/man1/slogin.1*
246
247 %files server
248 %defattr(-,root,root)
249 %attr(0755,root,root) /usr/sbin/sshd
250 %attr(0644,root,root) /usr/man/man8/sshd.8*
251 %attr(0600,root,root) %config(noreplace) /etc/ssh/sshd_config
252 %attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
253 %attr(0755,root,root) %config /etc/rc.d/init.d/sshd
254
255 %if ! %{no_x11_askpass}
256 %files askpass
257 %defattr(-,root,root)
258 %doc x11-ssh-askpass-%{aversion}/README
259 %doc x11-ssh-askpass-%{aversion}/ChangeLog
260 %doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
261 %attr(0755,root,root) /usr/libexec/openssh/ssh-askpass
262 %attr(0755,root,root) /usr/libexec/openssh/x11-ssh-askpass
263 %endif
264
265 %if ! %{no_gnome_askpass}
266 %files askpass-gnome
267 %defattr(-,root,root)
268 %attr(0755,root,root) /usr/libexec/openssh/gnome-ssh-askpass
269 %endif
This page took 0.048313 seconds and 5 git commands to generate.