]> andersk Git - openssh.git/blob - packages/suse/openssh.spec
- Prepare for 1.2.1pre20
[openssh.git] / packages / suse / openssh.spec
1 Summary: OpenSSH, a free Secure Shell (SSH) implementation
2 Name: openssh
3 Version: 1.2.1pre20
4 Release: 1
5 Source0: openssh-%{version}.tar.gz
6 Copyright: BSD
7 Group: Applications/Internet
8 BuildRoot: /tmp/openssh-%{version}-buildroot
9 Obsoletes: ssh
10 #
11 # (Build[ing] Prereq[uisites] only work for RPM 2.95 and newer.)
12 # building prerequisites -- stuff for
13 #   OpenSSL (openssl-devel),
14 #   TCP Wrappers (nkitb),
15 #   and Gnome (glibdev, gtkdev, and gnlibsd)
16 #
17 BuildPrereq: openssl-devel
18 BuildPrereq: nkitb
19 BuildPrereq: glibdev
20 BuildPrereq: gtkdev
21 BuildPrereq: gnlibsd
22
23 %package clients
24 Summary: OpenSSH Secure Shell protocol clients
25 Requires: openssh
26 Group: Applications/Internet
27 Obsoletes: ssh-clients
28
29 %package server
30 Summary: OpenSSH Secure Shell protocol server (sshd)
31 Requires: openssh
32 Group: System Environment/Daemons
33 Obsoletes: ssh-server
34
35 %package askpass
36 Summary: OpenSSH GNOME passphrase dialog
37 Group: Applications/Internet
38 Requires: openssh
39 Obsoletes: ssh-extras
40 Obsoletes: ssh-askpass
41
42 %description
43 Ssh (Secure Shell) a program for logging into a remote machine and for
44 executing commands in a remote machine.  It is intended to replace
45 rlogin and rsh, and provide secure encrypted communications between
46 two untrusted hosts over an insecure network.  X11 connections and
47 arbitrary TCP/IP ports can also be forwarded over the secure channel.
48
49 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
50 up to date in terms of security and features, as well as removing all 
51 patented algorithms to seperate libraries (OpenSSL).
52
53 This package includes the core files necessary for both the OpenSSH
54 client and server.  To make this package useful, you should also
55 install openssh-clients, openssh-server, or both.
56
57 %description clients
58 Ssh (Secure Shell) a program for logging into a remote machine and for
59 executing commands in a remote machine.  It is intended to replace
60 rlogin and rsh, and provide secure encrypted communications between
61 two untrusted hosts over an insecure network.  X11 connections and
62 arbitrary TCP/IP ports can also be forwarded over the secure channel.
63
64 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
65 up to date in terms of security and features, as well as removing all 
66 patented algorithms to seperate libraries (OpenSSL).
67
68 This package includes the clients necessary to make encrypted connections
69 to SSH servers.
70
71 %description server
72 Ssh (Secure Shell) a program for logging into a remote machine and for
73 executing commands in a remote machine.  It is intended to replace
74 rlogin and rsh, and provide secure encrypted communications between
75 two untrusted hosts over an insecure network.  X11 connections and
76 arbitrary TCP/IP ports can also be forwarded over the secure channel.
77
78 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
79 up to date in terms of security and features, as well as removing all 
80 patented algorithms to seperate libraries (OpenSSL).
81
82 This package contains the secure shell daemon. The sshd is the server 
83 part of the secure shell protocol and allows ssh clients to connect to 
84 your host.
85
86 %description askpass
87 Ssh (Secure Shell) a program for logging into a remote machine and for
88 executing commands in a remote machine.  It is intended to replace
89 rlogin and rsh, and provide secure encrypted communications between
90 two untrusted hosts over an insecure network.  X11 connections and
91 arbitrary TCP/IP ports can also be forwarded over the secure channel.
92
93 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
94 up to date in terms of security and features, as well as removing all 
95 patented algorithms to seperate libraries (OpenSSL).
96
97 This package contains the GNOME passphrase dialog.
98
99 %changelog
100 * Wed Nov 24 1999 Chris Saia <csaia@wtower.com>
101 - Removed patches that included /etc/pam.d/sshd, /sbin/init.d/rc.sshd, and
102   /var/adm/fillup-templates/rc.config.sshd, since Damien merged these into
103   his released tarfile
104 - Changed permissions on ssh_config in the install procedure to 644 from 600
105   even though it was correct in the %files section and thus right in the RPMs
106 - Postinstall script for the server now only prints "Generating SSH host
107   key..." if we need to actually do this, in order to eliminate a confusing
108   message if an SSH host key is already in place
109 - Marked all manual pages as %doc(umentation)
110 * Mon Nov 22 1999 Chris Saia <csaia@wtower.com>
111 - Added flag to configure daemon with TCP Wrappers support
112 - Added building prerequisites (works in RPM 3.0 and newer)
113 * Thu Nov 18 1999 Chris Saia <csaia@wtower.com>
114 - Made this package correct for SuSE.
115 - Changed instances of pam_pwdb.so to pam_unix.so, since it works more properly
116   with SuSE, and lib_pwdb.so isn't installed by default.
117 * Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
118 - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
119 * Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
120 - Added 'Obsoletes' directives
121 * Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
122 - Use make install
123 - Subpackages
124 * Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
125 - Added links for slogin
126 - Fixed perms on manpages
127 * Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
128 - Renamed init script
129 * Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
130 - Back to old binary names
131 * Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
132 - Use autoconf
133 - New binary names
134 * Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
135 - Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
136
137 %prep
138
139 %setup -q
140
141 %build
142 CFLAGS="$RPM_OPT_FLAGS" \
143 ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-gnome-askpass \
144             --with-tcp-wrappers
145 make
146
147 %install
148 rm -rf $RPM_BUILD_ROOT
149 make install prefix="$RPM_BUILD_ROOT/usr"
150 install -d $RPM_BUILD_ROOT/etc/ssh/
151 install -d $RPM_BUILD_ROOT/etc/pam.d/
152 install -d $RPM_BUILD_ROOT/sbin/init.d/
153 install -d $RPM_BUILD_ROOT/var/adm/fillup-templates
154 install -m644 sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd
155 install -m744 packages/suse/rc.sshd $RPM_BUILD_ROOT/sbin/init.d/sshd
156 install -m644 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config
157 install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config
158 ln -s ../../sbin/init.d/sshd $RPM_BUILD_ROOT/usr/sbin/rcsshd
159 install -m744 packages/suse/rc.config.sshd \
160    $RPM_BUILD_ROOT/var/adm/fillup-templates
161
162 %clean
163 rm -rf $RPM_BUILD_ROOT
164
165 %post server
166 if [ "$1" = 1 ]; then
167   echo "Creating SSH stop/start scripts in the rc directories..."
168   ln -s ../sshd /sbin/init.d/rc2.d/K20sshd
169   ln -s ../sshd /sbin/init.d/rc2.d/S20sshd
170   ln -s ../sshd /sbin/init.d/rc3.d/K20sshd
171   ln -s ../sshd /sbin/init.d/rc3.d/S20sshd
172 fi
173 echo "Updating /etc/rc.config..."
174 if [ -x /bin/fillup ] ; then
175   /bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.sshd
176 else
177   echo "ERROR: fillup not found.  This should NOT happen in SuSE Linux."
178   echo "Update /etc/rc.config by hand from the following template file:"
179   echo "  /var/adm/fillup-templates/rc.config.sshd"
180 fi
181 if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then
182         echo "Generating SSH host key..."
183         /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
184 fi
185 if test -r /var/run/sshd.pid
186 then
187         echo "Restarting the running SSH daemon..."
188         /usr/sbin/rcsshd restart >&2
189 fi
190
191 %preun server
192 if [ "$1" = 0 ]
193 then
194         echo "Stopping the SSH daemon..."
195         /usr/sbin/rcsshd stop >&2
196         echo "Removing SSH stop/start scripts from the rc directories..."
197         rm /sbin/init.d/rc2.d/K20sshd
198         rm /sbin/init.d/rc2.d/S20sshd
199         rm /sbin/init.d/rc3.d/K20sshd
200         rm /sbin/init.d/rc3.d/S20sshd
201 fi
202
203 %files
204 %defattr(-,root,root)
205 %doc COPYING.Ylonen ChangeLog OVERVIEW README README.Ylonen 
206 %doc RFC.nroff TODO UPGRADING
207 %attr(0755,root,root) /usr/bin/ssh-keygen
208 %attr(0755,root,root) /usr/bin/scp
209 %attr(0644,root,root) %doc /usr/man/man1/ssh-keygen.1
210 %attr(0644,root,root) %doc /usr/man/man1/scp.1
211 %attr(0755,root,root) %dir /etc/ssh
212
213 %files clients
214 %defattr(-,root,root)
215 %attr(4755,root,root) /usr/bin/ssh
216 %attr(0755,root,root) /usr/bin/ssh-agent
217 %attr(0755,root,root) /usr/bin/ssh-add
218 %attr(0644,root,root) %doc /usr/man/man1/ssh.1
219 %attr(0644,root,root) %doc /usr/man/man1/ssh-agent.1
220 %attr(0644,root,root) %doc /usr/man/man1/ssh-add.1
221 %attr(0644,root,root) %config /etc/ssh/ssh_config
222 %attr(-,root,root) /usr/bin/slogin
223 %attr(-,root,root) %doc /usr/man/man1/slogin.1
224
225 %files server
226 %defattr(-,root,root)
227 %attr(0755,root,root) /usr/sbin/sshd
228 %attr(0644,root,root) %doc /usr/man/man8/sshd.8
229 %attr(0600,root,root) %config /etc/ssh/sshd_config
230 %attr(0644,root,root) %config /etc/pam.d/sshd
231 %attr(0755,root,root) %config /sbin/init.d/sshd
232 %attr(-,root,root) /usr/sbin/rcsshd
233 %attr(0644,root,root) /var/adm/fillup-templates/rc.config.sshd
234
235 %files askpass
236 %defattr(-,root,root)
237 %attr(0755,root,root) %dir /usr/libexec/ssh
238 %attr(0755,root,root) /usr/libexec/ssh/ssh-askpass
239
This page took 0.063276 seconds and 5 git commands to generate.