]> andersk Git - openssh.git/blob - contrib/redhat/openssh.spec
- SunOS 4.x support from Todd C. Miller <Todd.Miller@courtesan.com>
[openssh.git] / contrib / redhat / openssh.spec
1 # Version of OpenSSH
2 %define oversion 2.1.0p2
3
4 # Version of ssh-askpass
5 %define aversion 1.0
6
7 Summary: OpenSSH free Secure Shell (SSH) implementation
8 Name: openssh
9 Version: %{oversion}
10 Release: 1
11 Packager: Damien Miller <djm@ibs.com.au>
12 URL: http://www.openssh.com/
13 Source0: http://violet.ibs.com.au/openssh/files/openssh-%{oversion}.tar.gz
14 Source1: http://www.ntrnet.net/~jmknoble/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz
15 Copyright: BSD
16 Group: Applications/Internet
17 BuildRoot: /tmp/openssh-%{version}-buildroot
18 Obsoletes: ssh
19 PreReq: openssl >= 0.9.5a
20 Requires: openssl >= 0.9.5a
21 BuildPreReq: perl
22 BuildPreReq: openssl-devel
23 BuildPreReq: tcp_wrappers
24 BuildPreReq: gnome-libs-devel
25
26 %package clients
27 Summary: OpenSSH Secure Shell protocol clients
28 Requires: openssh
29 Group: System Environment/Daemons
30 Obsoletes: ssh-clients
31
32 %package server
33 Summary: OpenSSH Secure Shell protocol server (sshd)
34 Group: System Environment/Daemons
35 Obsoletes: ssh-server
36 PreReq: openssh chkconfig >= 0.9
37
38 %package askpass
39 Summary: OpenSSH X11 passphrase dialog
40 Group: Applications/Internet
41 Requires: openssh
42 Obsoletes: ssh-extras
43
44 %package askpass-gnome
45 Summary: OpenSSH GNOME passphrase dialog
46 Group: Applications/Internet
47 Requires: openssh
48 Obsoletes: ssh-extras
49
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
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
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
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.
93
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.
107
108 %description askpass-gnome
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
121 %changelog
122 * Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
123 - Updated for new location
124 - Updated for new gnome-ssh-askpass build
125 * Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
126 - Added Jim Knoble's <jmknoble@pobox.com> askpass
127 * Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
128 - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
129 * Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
130 - Added 'Obsoletes' directives
131 * Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
132 - Use make install
133 - Subpackages
134 * Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
135 - Added links for slogin
136 - Fixed perms on manpages
137 * Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
138 - Renamed init script
139 * Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
140 - Back to old binary names
141 * Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
142 - Use autoconf
143 - New binary names
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
149 %setup -a 1
150
151 %build
152
153 CFLAGS="$RPM_OPT_FLAGS" \
154         ./configure --prefix=/usr --sysconfdir=/etc/ssh \
155                --with-tcp-wrappers --with-ipv4-default
156
157 make
158
159 cd x11-ssh-askpass-%{aversion}
160 xmkmf -a
161 make
162 cd ..
163
164 cd contrib
165 gcc -O -g `gnome-config --cflags gnome gnomeui` \
166         gnome-ssh-askpass.c -o gnome-ssh-askpass \
167         `gnome-config --libs gnome gnomeui`
168 cd ..
169
170 %install
171 rm -rf $RPM_BUILD_ROOT
172 make install DESTDIR=$RPM_BUILD_ROOT/
173
174 install -d $RPM_BUILD_ROOT/etc/pam.d/
175 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
176 install -d $RPM_BUILD_ROOT/usr/libexec/ssh
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
179
180 install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/x11-ssh-askpass
181 ln -s /usr/libexec/ssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass
182
183 install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/gnome-ssh-askpass
184
185 %clean
186 rm -rf $RPM_BUILD_ROOT
187
188 %post server
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
192 fi
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
196 if test -r /var/run/sshd.pid
197 then
198         /etc/rc.d/init.d/sshd restart >&2
199 fi
200
201 %preun server
202 if [ "$1" = 0 ]
203 then
204         /etc/rc.d/init.d/sshd stop >&2
205         /sbin/chkconfig --del sshd
206 fi
207
208 %files
209 %defattr(-,root,root)
210 %doc ChangeLog OVERVIEW COPYING.Ylonen README* INSTALL 
211 %doc CREDITS UPGRADING
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
217 %attr(0755,root,root) %dir /usr/libexec/ssh
218
219 %files clients
220 %defattr(-,root,root)
221 %attr(4755,root,root) /usr/bin/ssh
222 %attr(0755,root,root) /usr/bin/ssh-agent
223 %attr(0755,root,root) /usr/bin/ssh-add
224 %attr(0644,root,root) /usr/man/man1/ssh.1
225 %attr(0644,root,root) /usr/man/man1/ssh-agent.1
226 %attr(0644,root,root) /usr/man/man1/ssh-add.1
227 %attr(0644,root,root) %config(noreplace) /etc/ssh/ssh_config
228 %attr(-,root,root) /usr/bin/slogin
229 %attr(-,root,root) /usr/man/man1/slogin.1
230
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
235 %attr(0600,root,root) %config(noreplace) /etc/ssh/sshd_config
236 %attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
237 %attr(0755,root,root) %config /etc/rc.d/init.d/sshd
238
239 %files askpass
240 %defattr(-,root,root)
241 %doc x11-ssh-askpass-%{aversion}/README
242 %doc x11-ssh-askpass-%{aversion}/ChangeLog
243 %doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
244 %attr(0755,root,root) /usr/libexec/ssh/ssh-askpass
245 %attr(0755,root,root) /usr/libexec/ssh/x11-ssh-askpass
246
247 %files askpass-gnome
248 %defattr(-,root,root)
249 %attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass
This page took 0.81661 seconds and 5 git commands to generate.