cvsdist f71077
%define aversion 1.0
cvsdist f71077
Summary: OpenSSH free Secure Shell (SSH) implementation
cvsdist f71077
Name: openssh
cvsdist f71077
Version: 2.1.1p4
cvsdist f71077
Release: 1
cvsdist f71077
URL: http://www.openssh.com/portable.html
cvsdist f71077
Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
cvsdist f71077
Source1: http://www.ntrnet.net/~jmknoble/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz
cvsdist f71077
Patch0: openssh-2.1.0p3-no_rsa.patch
cvsdist f71077
Patch1: openssh-2.1.0p3-redhat.patch
cvsdist f71077
Patch2: openssh-2.1.1p2-init.patch
cvsdist f71077
Patch3: openssh-2.1.1p2-strtok.patch
cvsdist f71077
Patch4: openssh-2.1.1p2-x11.patch
cvsdist f71077
Patch5: openssh-2.1.1p4-pipe.patch
cvsdist f71077
Copyright: BSD
cvsdist f71077
Group: Applications/Internet
cvsdist f71077
BuildRoot: %{_tmppath}/openssh-%{version}-buildroot
cvsdist f71077
Obsoletes: ssh
cvsdist f71077
PreReq: openssl >= 0.9.5a, initscripts >= 5.20
cvsdist f71077
Requires: openssl >= 0.9.5a
cvsdist f71077
BuildPreReq: perl, openssl-devel, tcp_wrappers, gnome-libs-devel
cvsdist f71077
cvsdist f71077
%package clients
cvsdist f71077
Summary: OpenSSH Secure Shell protocol clients
cvsdist f71077
Requires: openssh = %{version}
cvsdist f71077
Group: Applications/Internet
cvsdist f71077
Obsoletes: ssh-clients
cvsdist f71077
cvsdist f71077
%package server
cvsdist f71077
Summary: OpenSSH Secure Shell protocol server (sshd)
cvsdist f71077
Group: System Environment/Daemons
cvsdist f71077
Obsoletes: ssh-server
cvsdist f71077
PreReq: openssh = %{version}, chkconfig >= 0.9
cvsdist f71077
Requires: /etc/pam.d/system-auth
cvsdist f71077
cvsdist f71077
%package askpass
cvsdist f71077
Summary: OpenSSH X11 passphrase dialog
cvsdist f71077
Group: Applications/Internet
cvsdist f71077
Requires: openssh = %{version}
cvsdist f71077
Obsoletes: ssh-extras
cvsdist f71077
cvsdist f71077
%package askpass-gnome
cvsdist f71077
Summary: OpenSSH GNOME passphrase dialog
cvsdist f71077
Group: Applications/Internet
cvsdist f71077
Requires: openssh = %{version}
cvsdist f71077
Obsoletes: ssh-extras
cvsdist f71077
cvsdist f71077
%description
cvsdist f71077
Ssh (Secure Shell) a program for logging into a remote machine and for
cvsdist f71077
executing commands in a remote machine.  It is intended to replace
cvsdist f71077
rlogin and rsh, and provide secure encrypted communications between
cvsdist f71077
two untrusted hosts over an insecure network.  X11 connections and
cvsdist f71077
arbitrary TCP/IP ports can also be forwarded over the secure channel.
cvsdist f71077
cvsdist f71077
OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
cvsdist f71077
up to date in terms of security and features, as well as removing all 
cvsdist f71077
patented algorithms to separate libraries (OpenSSL).
cvsdist f71077
cvsdist f71077
This package includes the core files necessary for both the OpenSSH
cvsdist f71077
client and server.  To make this package useful, you should also
cvsdist f71077
install openssh-clients, openssh-server, or both.
cvsdist f71077
cvsdist f71077
%description clients
cvsdist f71077
Ssh (Secure Shell) a program for logging into a remote machine and for
cvsdist f71077
executing commands in a remote machine.  It is intended to replace
cvsdist f71077
rlogin and rsh, and provide secure encrypted communications between
cvsdist f71077
two untrusted hosts over an insecure network.  X11 connections and
cvsdist f71077
arbitrary TCP/IP ports can also be forwarded over the secure channel.
cvsdist f71077
cvsdist f71077
OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
cvsdist f71077
up to date in terms of security and features, as well as removing all 
cvsdist f71077
patented algorithms to separate libraries (OpenSSL).
cvsdist f71077
cvsdist f71077
This package includes the clients necessary to make encrypted connections
cvsdist f71077
to SSH servers.
cvsdist f71077
cvsdist f71077
%description server
cvsdist f71077
Ssh (Secure Shell) a program for logging into a remote machine and for
cvsdist f71077
executing commands in a remote machine.  It is intended to replace
cvsdist f71077
rlogin and rsh, and provide secure encrypted communications between
cvsdist f71077
two untrusted hosts over an insecure network.  X11 connections and
cvsdist f71077
arbitrary TCP/IP ports can also be forwarded over the secure channel.
cvsdist f71077
cvsdist f71077
OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
cvsdist f71077
up to date in terms of security and features, as well as removing all 
cvsdist f71077
patented algorithms to separate libraries (OpenSSL).
cvsdist f71077
cvsdist f71077
This package contains the secure shell daemon. The sshd is the server 
cvsdist f71077
part of the secure shell protocol and allows ssh clients to connect to 
cvsdist f71077
your host.
cvsdist f71077
cvsdist f71077
%description askpass
cvsdist f71077
Ssh (Secure Shell) a program for logging into a remote machine and for
cvsdist f71077
executing commands in a remote machine.  It is intended to replace
cvsdist f71077
rlogin and rsh, and provide secure encrypted communications between
cvsdist f71077
two untrusted hosts over an insecure network.  X11 connections and
cvsdist f71077
arbitrary TCP/IP ports can also be forwarded over the secure channel.
cvsdist f71077
cvsdist f71077
OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
cvsdist f71077
up to date in terms of security and features, as well as removing all 
cvsdist f71077
patented algorithms to separate libraries (OpenSSL).
cvsdist f71077
cvsdist f71077
This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase 
cvsdist f71077
dialog.
cvsdist f71077
cvsdist f71077
%description askpass-gnome
cvsdist f71077
Ssh (Secure Shell) a program for logging into a remote machine and for
cvsdist f71077
executing commands in a remote machine.  It is intended to replace
cvsdist f71077
rlogin and rsh, and provide secure encrypted communications between
cvsdist f71077
two untrusted hosts over an insecure network.  X11 connections and
cvsdist f71077
arbitrary TCP/IP ports can also be forwarded over the secure channel.
cvsdist f71077
cvsdist f71077
OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
cvsdist f71077
up to date in terms of security and features, as well as removing all 
cvsdist f71077
patented algorithms to separate libraries (OpenSSL).
cvsdist f71077
cvsdist f71077
This package contains the GNOME passphrase dialog.
cvsdist f71077
cvsdist f71077
%changelog
cvsdist f71077
* Mon Jul 17 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f71077
- Update to 2.1.1p4, which includes fixes for config file parsing problems.
cvsdist f71077
- Move the init script back.
cvsdist f71077
- Add Damien's quick fix for wackiness.
cvsdist f71077
cvsdist f71077
* Wed Jul 12 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f71077
- Update to 2.1.1p3, which includes fixes for X11 forwarding and strtok().
cvsdist f71077
cvsdist f71077
* Thu Jul  6 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f71077
- Move condrestart to server postun.
cvsdist f71077
- Move key generation to init script.
cvsdist f71077
- Actually use the right patch for moving the key generation to the init script.
cvsdist f71077
- Clean up the init script a bit.
cvsdist f71077
cvsdist f71077
* Wed Jul  5 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f71077
- Fix X11 forwarding, from mail post by Chan Shih-Ping Richard.
cvsdist f71077
cvsdist f71077
* Sun Jul  2 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f71077
- Update to 2.1.1p2.
cvsdist f71077
- Use of strtok() considered harmful.
cvsdist f71077
cvsdist f71077
* Sat Jul  1 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f71077
- Get the build root out of the man pages.
cvsdist f71077
cvsdist f71077
* Thu Jun 29 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f71077
- Add and use condrestart support in the init script.
cvsdist f71077
- Add newer initscripts as a prereq.
cvsdist f71077
cvsdist f71077
* Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f71077
- Build in new environment (release 2)
cvsdist f71077
- Move -clients subpackage to Applications/Internet group
cvsdist f71077
cvsdist f71077
* Fri Jun  9 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f71077
- Update to 2.2.1p1
cvsdist f71077
cvsdist f71077
* Sat Jun  3 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f71077
- Patch to build with neither RSA nor RSAref.
cvsdist f71077
- Miscellaneous FHS-compliance tweaks.
cvsdist f71077
- Fix for possibly-compressed man pages.
cvsdist f71077
cvsdist f71077
* Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
cvsdist f71077
- Updated for new location
cvsdist f71077
- Updated for new gnome-ssh-askpass build
cvsdist f71077
cvsdist f71077
* Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
cvsdist f71077
- Added Jim Knoble's <jmknoble@pobox.com> askpass
cvsdist f71077
cvsdist f71077
* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
cvsdist f71077
- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
cvsdist f71077
cvsdist f71077
* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
cvsdist f71077
- Added 'Obsoletes' directives
cvsdist f71077
cvsdist f71077
* Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
cvsdist f71077
- Use make install
cvsdist f71077
- Subpackages
cvsdist f71077
cvsdist f71077
* Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
cvsdist f71077
- Added links for slogin
cvsdist f71077
- Fixed perms on manpages
cvsdist f71077
cvsdist f71077
* Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
cvsdist f71077
- Renamed init script
cvsdist f71077
cvsdist f71077
* Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
cvsdist f71077
- Back to old binary names
cvsdist f71077
cvsdist f71077
* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
cvsdist f71077
- Use autoconf
cvsdist f71077
- New binary names
cvsdist f71077
cvsdist f71077
* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
cvsdist f71077
- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
cvsdist f71077
cvsdist f71077
%prep
cvsdist f71077
%setup -q -a 1
cvsdist f71077
%patch1 -p1 -b .redhat
cvsdist f71077
%patch2 -p1 -b .init
cvsdist f71077
#%patch3 -p1 -b .strtok
cvsdist f71077
#%patch4 -p1 -b .x11
cvsdist f71077
%patch5 -p0 -b .pipe
cvsdist f71077
autoconf
cvsdist f71077
cvsdist f71077
%build
cvsdist f71077
%configure --sysconfdir=%{_sysconfdir}/ssh \
cvsdist f71077
	--with-tcp-wrappers --with-ipv4-default
cvsdist f71077
make
cvsdist f71077
cvsdist f71077
pushd x11-ssh-askpass-%{aversion}
cvsdist f71077
xmkmf -a
cvsdist f71077
make
cvsdist f71077
popd
cvsdist f71077
cvsdist f71077
pushd contrib
cvsdist f71077
gcc -O -g `gnome-config --cflags gnome gnomeui` \
cvsdist f71077
        gnome-ssh-askpass.c -o gnome-ssh-askpass \
cvsdist f71077
        `gnome-config --libs gnome gnomeui`
cvsdist f71077
popd
cvsdist f71077
cvsdist f71077
%install
cvsdist f71077
rm -rf $RPM_BUILD_ROOT
cvsdist f71077
%{makeinstall} sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir}/ssh
cvsdist f71077
cvsdist f71077
install -d $RPM_BUILD_ROOT/etc/pam.d/
cvsdist f71077
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
cvsdist f71077
install -d $RPM_BUILD_ROOT%{_libexecdir}/ssh
cvsdist f71077
install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
cvsdist f71077
install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
cvsdist f71077
cvsdist f71077
install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/ssh/x11-ssh-askpass
cvsdist f71077
ln -s x11-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass
cvsdist f71077
cvsdist f71077
install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/ssh/gnome-ssh-askpass
cvsdist f71077
cvsdist f71077
perl -pi -e "s|$RPM_BUILD_ROOT||g" $RPM_BUILD_ROOT%{_mandir}/man*/*
cvsdist f71077
cvsdist f71077
%clean
cvsdist f71077
rm -rf $RPM_BUILD_ROOT
cvsdist f71077
cvsdist f71077
%post server
cvsdist f71077
/sbin/chkconfig --add sshd
cvsdist f71077
cvsdist f71077
%postun server
cvsdist f71077
/sbin/service sshd condrestart > /dev/null 2>&1
cvsdist f71077
cvsdist f71077
%preun server
cvsdist f71077
if [ "$1" = 0 ]
cvsdist f71077
then
cvsdist f71077
	/sbin/service sshd stop > /dev/null 2>&1
cvsdist f71077
	/sbin/chkconfig --del sshd
cvsdist f71077
fi
cvsdist f71077
cvsdist f71077
%files
cvsdist f71077
%defattr(-,root,root)
cvsdist f71077
%doc ChangeLog OVERVIEW COPYING.Ylonen README* INSTALL 
cvsdist f71077
%doc CREDITS UPGRADING
cvsdist f71077
%attr(0755,root,root) %{_bindir}/ssh-keygen
cvsdist f71077
%attr(0755,root,root) %{_bindir}/scp
cvsdist f71077
%attr(0644,root,root) %{_mandir}/man1/ssh-keygen.1*
cvsdist f71077
%attr(0644,root,root) %{_mandir}/man1/scp.1*
cvsdist f71077
%attr(0755,root,root) %dir /etc/ssh
cvsdist f71077
%attr(0755,root,root) %dir %{_libexecdir}/ssh
cvsdist f71077
cvsdist f71077
%files clients
cvsdist f71077
%defattr(-,root,root)
cvsdist f71077
%attr(4755,root,root) %{_bindir}/ssh
cvsdist f71077
%attr(0755,root,root) %{_bindir}/ssh-agent
cvsdist f71077
%attr(0755,root,root) %{_bindir}/ssh-add
cvsdist f71077
%attr(0644,root,root) %{_mandir}/man1/ssh.1*
cvsdist f71077
%attr(0644,root,root) %{_mandir}/man1/ssh-agent.1*
cvsdist f71077
%attr(0644,root,root) %{_mandir}/man1/ssh-add.1*
cvsdist f71077
%attr(0644,root,root) %config(noreplace) /etc/ssh/ssh_config
cvsdist f71077
%attr(-,root,root) %{_bindir}/slogin
cvsdist f71077
%attr(-,root,root) %{_mandir}/man1/slogin.1*
cvsdist f71077
cvsdist f71077
%files server
cvsdist f71077
%defattr(-,root,root)
cvsdist f71077
%attr(0755,root,root) %{_sbindir}/sshd
cvsdist f71077
%attr(0644,root,root) %{_mandir}/man8/sshd.8*
cvsdist f71077
%attr(0600,root,root) %config(noreplace) /etc/ssh/sshd_config
cvsdist f71077
%attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
cvsdist f71077
%attr(0755,root,root) %config /etc/rc.d/init.d/sshd
cvsdist f71077
cvsdist f71077
%files askpass
cvsdist f71077
%defattr(-,root,root)
cvsdist f71077
%doc x11-ssh-askpass-%{aversion}/README
cvsdist f71077
%doc x11-ssh-askpass-%{aversion}/ChangeLog
cvsdist f71077
%doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
cvsdist f71077
%attr(0755,root,root) %{_libexecdir}/ssh/ssh-askpass
cvsdist f71077
%attr(0755,root,root) %{_libexecdir}/ssh/x11-ssh-askpass
cvsdist f71077
cvsdist f71077
%files askpass-gnome
cvsdist f71077
%defattr(-,root,root)
cvsdist f71077
%attr(0755,root,root) %{_libexecdir}/ssh/gnome-ssh-askpass