]> andersk Git - openssh.git/blob - packages/suse/openssh.spec
3bf96f8724e3e7ac454d9e6998df27fefd59df3d
[openssh.git] / packages / suse / openssh.spec
1 Summary: OpenSSH, a free Secure Shell (SSH) implementation
2 Name: openssh
3 Version: 1.2.1pre23
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 * Sun Dec 26 1999 Chris Saia <csaia@wtower.com>
101 - Made symlink to gnome-ssh-askpass called ssh-askpass
102 * Wed Nov 24 1999 Chris Saia <csaia@wtower.com>
103 - Removed patches that included /etc/pam.d/sshd, /sbin/init.d/rc.sshd, and
104   /var/adm/fillup-templates/rc.config.sshd, since Damien merged these into
105   his released tarfile
106 - Changed permissions on ssh_config in the install procedure to 644 from 600
107   even though it was correct in the %files section and thus right in the RPMs
108 - Postinstall script for the server now only prints "Generating SSH host
109   key..." if we need to actually do this, in order to eliminate a confusing
110   message if an SSH host key is already in place
111 - Marked all manual pages as %doc(umentation)
112 * Mon Nov 22 1999 Chris Saia <csaia@wtower.com>
113 - Added flag to configure daemon with TCP Wrappers support
114 - Added building prerequisites (works in RPM 3.0 and newer)
115 * Thu Nov 18 1999 Chris Saia <csaia@wtower.com>
116 - Made this package correct for SuSE.
117 - Changed instances of pam_pwdb.so to pam_unix.so, since it works more properly
118   with SuSE, and lib_pwdb.so isn't installed by default.
119 * Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
120 - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
121 * Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
122 - Added 'Obsoletes' directives
123 * Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
124 - Use make install
125 - Subpackages
126 * Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
127 - Added links for slogin
128 - Fixed perms on manpages
129 * Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
130 - Renamed init script
131 * Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
132 - Back to old binary names
133 * Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
134 - Use autoconf
135 - New binary names
136 * Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
137 - Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
138
139 %prep
140
141 %setup -q
142
143 %build
144 CFLAGS="$RPM_OPT_FLAGS" \
145 ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-gnome-askpass \
146             --with-tcp-wrappers
147 make
148
149 %install
150 rm -rf $RPM_BUILD_ROOT
151 make install prefix="$RPM_BUILD_ROOT/usr"
152 install -d $RPM_BUILD_ROOT/etc/ssh/
153 install -d $RPM_BUILD_ROOT/etc/pam.d/
154 install -d $RPM_BUILD_ROOT/sbin/init.d/
155 install -d $RPM_BUILD_ROOT/var/adm/fillup-templates
156 install -m644 sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd
157 install -m744 packages/suse/rc.sshd $RPM_BUILD_ROOT/sbin/init.d/sshd
158 install -m644 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config
159 install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config
160 ln -s ../../sbin/init.d/sshd $RPM_BUILD_ROOT/usr/sbin/rcsshd
161 ln -s gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass
162 install -m744 packages/suse/rc.config.sshd \
163    $RPM_BUILD_ROOT/var/adm/fillup-templates
164
165 %clean
166 rm -rf $RPM_BUILD_ROOT
167
168 %post server
169 if [ "$1" = 1 ]; then
170   echo "Creating SSH stop/start scripts in the rc directories..."
171   ln -s ../sshd /sbin/init.d/rc2.d/K20sshd
172   ln -s ../sshd /sbin/init.d/rc2.d/S20sshd
173   ln -s ../sshd /sbin/init.d/rc3.d/K20sshd
174   ln -s ../sshd /sbin/init.d/rc3.d/S20sshd
175 fi
176 echo "Updating /etc/rc.config..."
177 if [ -x /bin/fillup ] ; then
178   /bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.sshd
179 else
180   echo "ERROR: fillup not found.  This should NOT happen in SuSE Linux."
181   echo "Update /etc/rc.config by hand from the following template file:"
182   echo "  /var/adm/fillup-templates/rc.config.sshd"
183 fi
184 if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then
185         echo "Generating SSH host key..."
186         /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
187 fi
188 if test -r /var/run/sshd.pid
189 then
190         echo "Restarting the running SSH daemon..."
191         /usr/sbin/rcsshd restart >&2
192 fi
193
194 %preun server
195 if [ "$1" = 0 ]
196 then
197         echo "Stopping the SSH daemon..."
198         /usr/sbin/rcsshd stop >&2
199         echo "Removing SSH stop/start scripts from the rc directories..."
200         rm /sbin/init.d/rc2.d/K20sshd
201         rm /sbin/init.d/rc2.d/S20sshd
202         rm /sbin/init.d/rc3.d/K20sshd
203         rm /sbin/init.d/rc3.d/S20sshd
204 fi
205
206 %files
207 %defattr(-,root,root)
208 %doc COPYING.Ylonen ChangeLog OVERVIEW README README.Ylonen 
209 %doc RFC.nroff TODO UPGRADING CREDITS
210 %attr(0755,root,root) /usr/bin/ssh-keygen
211 %attr(0755,root,root) /usr/bin/scp
212 %attr(0644,root,root) %doc /usr/man/man1/ssh-keygen.1
213 %attr(0644,root,root) %doc /usr/man/man1/scp.1
214 %attr(0755,root,root) %dir /etc/ssh
215 %attr(0755,root,root) %dir /usr/libexec/ssh
216
217 %files clients
218 %defattr(-,root,root)
219 %attr(4755,root,root) /usr/bin/ssh
220 %attr(0755,root,root) /usr/bin/ssh-agent
221 %attr(0755,root,root) /usr/bin/ssh-add
222 %attr(0644,root,root) %doc /usr/man/man1/ssh.1
223 %attr(0644,root,root) %doc /usr/man/man1/ssh-agent.1
224 %attr(0644,root,root) %doc /usr/man/man1/ssh-add.1
225 %attr(0644,root,root) %config /etc/ssh/ssh_config
226 %attr(-,root,root) /usr/bin/slogin
227 %attr(-,root,root) %doc /usr/man/man1/slogin.1
228
229 %files server
230 %defattr(-,root,root)
231 %attr(0755,root,root) /usr/sbin/sshd
232 %attr(0644,root,root) %doc /usr/man/man8/sshd.8
233 %attr(0600,root,root) %config /etc/ssh/sshd_config
234 %attr(0644,root,root) %config /etc/pam.d/sshd
235 %attr(0755,root,root) %config /sbin/init.d/sshd
236 %attr(-,root,root) /usr/sbin/rcsshd
237 %attr(0644,root,root) /var/adm/fillup-templates/rc.config.sshd
238
239 %files askpass
240 %defattr(-,root,root)
241 %attr(0755,root,root) /usr/libexec/ssh/ssh-askpass
242 %attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass
243
This page took 0.0434 seconds and 3 git commands to generate.