blob: db8cae35f2aba1e0617c1f1360eb0c3cbddd44b3 [file] [log] [blame]
Damien Miller294df781999-11-23 10:11:29 +11001Summary: OpenSSH, a free Secure Shell (SSH) implementation
Damien Millerd4a8b7e1999-10-27 13:42:43 +10002Name: openssh
Damien Miller95a29b12000-01-17 11:57:39 +11003Version: 1.2.1pre27
Damien Miller297dc421999-11-25 13:24:58 +11004Release: 1
Damien Miller56825a11999-11-11 10:50:04 +11005Source0: openssh-%{version}.tar.gz
Damien Millerd4a8b7e1999-10-27 13:42:43 +10006Copyright: BSD
7Group: Applications/Internet
8BuildRoot: /tmp/openssh-%{version}-buildroot
Damien Miller22977992000-01-16 10:17:52 +11009PreReq: openssl
Damien Millerc6d5ce81999-11-15 16:01:07 +110010Obsoletes: ssh
Damien Miller294df781999-11-23 10:11:29 +110011#
Damien Miller93168eb1999-12-07 16:20:49 +110012# (Build[ing] Prereq[uisites] only work for RPM 2.95 and newer.)
13# building prerequisites -- stuff for
14# OpenSSL (openssl-devel),
15# TCP Wrappers (nkitb),
16# and Gnome (glibdev, gtkdev, and gnlibsd)
Damien Miller294df781999-11-23 10:11:29 +110017#
Damien Miller93168eb1999-12-07 16:20:49 +110018BuildPrereq: openssl-devel
19BuildPrereq: nkitb
20BuildPrereq: glibdev
21BuildPrereq: gtkdev
22BuildPrereq: gnlibsd
Damien Miller36682061999-11-15 17:19:24 +110023
24%package clients
25Summary: OpenSSH Secure Shell protocol clients
26Requires: openssh
Damien Miller294df781999-11-23 10:11:29 +110027Group: Applications/Internet
Damien Millerc6d5ce81999-11-15 16:01:07 +110028Obsoletes: ssh-clients
Damien Millerd4a8b7e1999-10-27 13:42:43 +100029
Damien Miller3f51bf51999-11-09 14:46:02 +110030%package server
Damien Miller36682061999-11-15 17:19:24 +110031Summary: OpenSSH Secure Shell protocol server (sshd)
Damien Miller294df781999-11-23 10:11:29 +110032Requires: openssh
Damien Miller3f51bf51999-11-09 14:46:02 +110033Group: System Environment/Daemons
Damien Miller22977992000-01-16 10:17:52 +110034PreReq: openssh
Damien Millerc6d5ce81999-11-15 16:01:07 +110035Obsoletes: ssh-server
Damien Miller3f51bf51999-11-09 14:46:02 +110036
37%package askpass
Damien Miller36682061999-11-15 17:19:24 +110038Summary: OpenSSH GNOME passphrase dialog
Damien Miller3f51bf51999-11-09 14:46:02 +110039Group: Applications/Internet
40Requires: openssh
Damien Miller36682061999-11-15 17:19:24 +110041Obsoletes: ssh-extras
Damien Millerc6d5ce81999-11-15 16:01:07 +110042Obsoletes: ssh-askpass
Damien Miller3f51bf51999-11-09 14:46:02 +110043
Damien Millerd4a8b7e1999-10-27 13:42:43 +100044%description
45Ssh (Secure Shell) a program for logging into a remote machine and for
46executing commands in a remote machine. It is intended to replace
47rlogin and rsh, and provide secure encrypted communications between
48two untrusted hosts over an insecure network. X11 connections and
49arbitrary TCP/IP ports can also be forwarded over the secure channel.
50
51OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
52up to date in terms of security and features, as well as removing all
53patented algorithms to seperate libraries (OpenSSL).
54
Damien Miller36682061999-11-15 17:19:24 +110055This package includes the core files necessary for both the OpenSSH
56client and server. To make this package useful, you should also
57install openssh-clients, openssh-server, or both.
58
59%description clients
60Ssh (Secure Shell) a program for logging into a remote machine and for
61executing commands in a remote machine. It is intended to replace
62rlogin and rsh, and provide secure encrypted communications between
63two untrusted hosts over an insecure network. X11 connections and
64arbitrary TCP/IP ports can also be forwarded over the secure channel.
65
66OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
67up to date in terms of security and features, as well as removing all
68patented algorithms to seperate libraries (OpenSSL).
69
Damien Miller3f51bf51999-11-09 14:46:02 +110070This package includes the clients necessary to make encrypted connections
71to SSH servers.
72
73%description server
74Ssh (Secure Shell) a program for logging into a remote machine and for
75executing commands in a remote machine. It is intended to replace
76rlogin and rsh, and provide secure encrypted communications between
77two untrusted hosts over an insecure network. X11 connections and
78arbitrary TCP/IP ports can also be forwarded over the secure channel.
79
80OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
81up to date in terms of security and features, as well as removing all
82patented algorithms to seperate libraries (OpenSSL).
83
Damien Miller36682061999-11-15 17:19:24 +110084This package contains the secure shell daemon. The sshd is the server
85part of the secure shell protocol and allows ssh clients to connect to
86your host.
Damien Miller3f51bf51999-11-09 14:46:02 +110087
88%description askpass
89Ssh (Secure Shell) a program for logging into a remote machine and for
90executing commands in a remote machine. It is intended to replace
91rlogin and rsh, and provide secure encrypted communications between
92two untrusted hosts over an insecure network. X11 connections and
93arbitrary TCP/IP ports can also be forwarded over the secure channel.
94
95OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
96up to date in terms of security and features, as well as removing all
97patented algorithms to seperate libraries (OpenSSL).
98
99This package contains the GNOME passphrase dialog.
100
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000101%changelog
Damien Miller95c8e5d1999-12-27 16:43:42 +1100102* Sun Dec 26 1999 Chris Saia <csaia@wtower.com>
103- Made symlink to gnome-ssh-askpass called ssh-askpass
Damien Miller93168eb1999-12-07 16:20:49 +1100104* Wed Nov 24 1999 Chris Saia <csaia@wtower.com>
105- Removed patches that included /etc/pam.d/sshd, /sbin/init.d/rc.sshd, and
106 /var/adm/fillup-templates/rc.config.sshd, since Damien merged these into
107 his released tarfile
108- Changed permissions on ssh_config in the install procedure to 644 from 600
109 even though it was correct in the %files section and thus right in the RPMs
110- Postinstall script for the server now only prints "Generating SSH host
111 key..." if we need to actually do this, in order to eliminate a confusing
112 message if an SSH host key is already in place
113- Marked all manual pages as %doc(umentation)
Damien Miller294df781999-11-23 10:11:29 +1100114* Mon Nov 22 1999 Chris Saia <csaia@wtower.com>
115- Added flag to configure daemon with TCP Wrappers support
116- Added building prerequisites (works in RPM 3.0 and newer)
117* Thu Nov 18 1999 Chris Saia <csaia@wtower.com>
118- Made this package correct for SuSE.
119- Changed instances of pam_pwdb.so to pam_unix.so, since it works more properly
120 with SuSE, and lib_pwdb.so isn't installed by default.
Damien Miller36682061999-11-15 17:19:24 +1100121* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
122- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
Damien Miller38c60881999-11-13 13:09:31 +1100123* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
Damien Millerc6d5ce81999-11-15 16:01:07 +1100124- Added 'Obsoletes' directives
Damien Miller742d2cb1999-11-09 14:28:26 +1100125* Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
126- Use make install
Damien Miller3f51bf51999-11-09 14:46:02 +1100127- Subpackages
Damien Miller356a0b01999-11-08 15:30:59 +1100128* Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
129- Added links for slogin
130- Fixed perms on manpages
Damien Miller2bbb9d01999-10-30 09:46:20 +1000131* Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
132- Renamed init script
Damien Miller070f7a11999-10-29 10:29:29 +1000133* Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
134- Back to old binary names
Damien Miller06230761999-10-28 14:03:14 +1000135* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
136- Use autoconf
137- New binary names
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000138* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
139- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
140
141%prep
Damien Miller871f3ca1999-12-07 16:32:10 +1100142
143%setup -q
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000144
145%build
Damien Miller742d2cb1999-11-09 14:28:26 +1100146CFLAGS="$RPM_OPT_FLAGS" \
Damien Miller93168eb1999-12-07 16:20:49 +1100147./configure --prefix=/usr --sysconfdir=/etc/ssh --with-gnome-askpass \
Damien Miller07278932000-01-22 14:05:37 +1100148 --with-tcp-wrappers --with-ipv4-default
Damien Millercdb8b1d1999-11-09 14:31:49 +1100149make
150
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000151%install
152rm -rf $RPM_BUILD_ROOT
Damien Miller645c5982000-01-03 14:42:09 +1100153make install prefix="$RPM_BUILD_ROOT/usr" sysconfdir="$RPM_BUILD_ROOT/etc/ssh"
Damien Miller294df781999-11-23 10:11:29 +1100154install -d $RPM_BUILD_ROOT/etc/ssh/
Damien Miller2b72a4a1999-11-09 14:34:31 +1100155install -d $RPM_BUILD_ROOT/etc/pam.d/
Damien Miller294df781999-11-23 10:11:29 +1100156install -d $RPM_BUILD_ROOT/sbin/init.d/
Damien Miller93168eb1999-12-07 16:20:49 +1100157install -d $RPM_BUILD_ROOT/var/adm/fillup-templates
Damien Miller294df781999-11-23 10:11:29 +1100158install -m644 sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd
159install -m744 packages/suse/rc.sshd $RPM_BUILD_ROOT/sbin/init.d/sshd
Damien Miller294df781999-11-23 10:11:29 +1100160ln -s ../../sbin/init.d/sshd $RPM_BUILD_ROOT/usr/sbin/rcsshd
Damien Miller95c8e5d1999-12-27 16:43:42 +1100161ln -s gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass
Damien Miller93168eb1999-12-07 16:20:49 +1100162install -m744 packages/suse/rc.config.sshd \
163 $RPM_BUILD_ROOT/var/adm/fillup-templates
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000164
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000165%clean
166rm -rf $RPM_BUILD_ROOT
167
Damien Miller3f51bf51999-11-09 14:46:02 +1100168%post server
Damien Miller93168eb1999-12-07 16:20:49 +1100169if [ "$1" = 1 ]; then
170 echo "Creating SSH stop/start scripts in the rc directories..."
Damien Miller294df781999-11-23 10:11:29 +1100171 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
175fi
176echo "Updating /etc/rc.config..."
177if [ -x /bin/fillup ] ; then
178 /bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.sshd
179else
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"
183fi
Damien Millera37010e1999-10-29 09:18:29 +1000184if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then
Damien Miller93168eb1999-12-07 16:20:49 +1100185 echo "Generating SSH host key..."
Damien Millera37010e1999-10-29 09:18:29 +1000186 /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000187fi
Damien Millera37010e1999-10-29 09:18:29 +1000188if test -r /var/run/sshd.pid
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000189then
Damien Miller93168eb1999-12-07 16:20:49 +1100190 echo "Restarting the running SSH daemon..."
Damien Miller294df781999-11-23 10:11:29 +1100191 /usr/sbin/rcsshd restart >&2
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000192fi
193
Damien Miller3f51bf51999-11-09 14:46:02 +1100194%preun server
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000195if [ "$1" = 0 ]
196then
Damien Miller93168eb1999-12-07 16:20:49 +1100197 echo "Stopping the SSH daemon..."
Damien Miller294df781999-11-23 10:11:29 +1100198 /usr/sbin/rcsshd stop >&2
Damien Miller93168eb1999-12-07 16:20:49 +1100199 echo "Removing SSH stop/start scripts from the rc directories..."
Damien Miller294df781999-11-23 10:11:29 +1100200 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
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000204fi
205
206%files
207%defattr(-,root,root)
Damien Miller294df781999-11-23 10:11:29 +1100208%doc COPYING.Ylonen ChangeLog OVERVIEW README README.Ylonen
Damien Millerc0d73901999-12-27 09:23:58 +1100209%doc RFC.nroff TODO UPGRADING CREDITS
Damien Miller36682061999-11-15 17:19:24 +1100210%attr(0755,root,root) /usr/bin/ssh-keygen
211%attr(0755,root,root) /usr/bin/scp
Damien Miller93168eb1999-12-07 16:20:49 +1100212%attr(0644,root,root) %doc /usr/man/man1/ssh-keygen.1
213%attr(0644,root,root) %doc /usr/man/man1/scp.1
Damien Miller36682061999-11-15 17:19:24 +1100214%attr(0755,root,root) %dir /etc/ssh
Damien Millercadc6bb1999-12-28 15:19:49 +1100215%attr(0755,root,root) %dir /usr/libexec/ssh
Damien Miller36682061999-11-15 17:19:24 +1100216
217%files clients
218%defattr(-,root,root)
Damien Millerb77870f1999-11-10 12:48:08 +1100219%attr(4755,root,root) /usr/bin/ssh
Damien Miller29d68521999-10-28 14:34:49 +1000220%attr(0755,root,root) /usr/bin/ssh-agent
Damien Miller29d68521999-10-28 14:34:49 +1000221%attr(0755,root,root) /usr/bin/ssh-add
Damien Miller93168eb1999-12-07 16:20:49 +1100222%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
Damien Miller36682061999-11-15 17:19:24 +1100226%attr(-,root,root) /usr/bin/slogin
Damien Miller93168eb1999-12-07 16:20:49 +1100227%attr(-,root,root) %doc /usr/man/man1/slogin.1
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000228
Damien Miller3f51bf51999-11-09 14:46:02 +1100229%files server
230%defattr(-,root,root)
231%attr(0755,root,root) /usr/sbin/sshd
Damien Miller93168eb1999-12-07 16:20:49 +1100232%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
Damien Miller294df781999-11-23 10:11:29 +1100235%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
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000238
Damien Miller3f51bf51999-11-09 14:46:02 +1100239%files askpass
240%defattr(-,root,root)
Damien Miller294df781999-11-23 10:11:29 +1100241%attr(0755,root,root) /usr/libexec/ssh/ssh-askpass
Damien Miller95c8e5d1999-12-27 16:43:42 +1100242%attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass
Damien Miller36682061999-11-15 17:19:24 +1100243