cvsdist 328740
%define aversion 1.0.2
cvsdist f71077
Summary: OpenSSH free Secure Shell (SSH) implementation
cvsdist f71077
Name: openssh
cvsdist 328740
Version: 2.2.0p1
cvsdist 328740
Release: 5
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 328740
Source2: openssh.init
cvsdist 328740
Source3: gnome-ssh-askpass.sh
cvsdist 328740
Source4: gnome-ssh-askpass.csh
cvsdist 328740
Patch0: openssh-2.2.0p1-redhat.patch
cvsdist 328740
Patch1: openssh-2.2.0p1-agent.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 328740
BuildPreReq: /bin/login, /usr/bin/rsh, /usr/include/security/pam_appl.h
cvsdist f71077
cvsdist f71077
%package clients
cvsdist f71077
Summary: OpenSSH Secure Shell protocol clients
cvsdist 328740
Requires: openssh = %{version}-%{release}
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 328740
PreReq: openssh = %{version}-%{release}, 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 328740
Requires: openssh = %{version}-%{release}
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 328740
Requires: openssh = %{version}-%{release}
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 328740
* Thu Oct  5 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 328740
- Add BuildPreReq on /usr/include/security/pam_appl.h to be sure we always
cvsdist 328740
  build PAM authentication in.
cvsdist 328740
- Try setting SSH_ASKPASS if gnome-ssh-askpass is installed.
cvsdist 328740
- Clean out no-longer-used patches.
cvsdist 328740
- Patch ssh-add to try to add both identity and id_dsa, and to error only
cvsdist 328740
  when neither exists.
cvsdist 328740
cvsdist 328740
* Mon Oct  2 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 328740
- Update x11-askpass to 1.0.2. (#17835)
cvsdist 328740
- Add BuildPreReqs for /bin/login and /usr/bin/rsh so that configure will
cvsdist 328740
  always find them in the right place. (#17909)
cvsdist 328740
- Set the default path to be the same as the one supplied by /bin/login, but
cvsdist 328740
  add /usr/X11R6/bin. (#17909)
cvsdist 328740
- Try to handle obsoletion of ssh-server more cleanly.  Package names
cvsdist 328740
  are different, but init script name isn't. (#17865)
cvsdist 328740
cvsdist 328740
* Wed Sep  6 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 328740
- Update to 2.2.0p1. (#17835)
cvsdist 328740
- Tweak the init script to allow proper restarting. (#18023)
cvsdist 328740
cvsdist 328740
* Wed Aug 23 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 328740
- Update to 20000823 snapshot.
cvsdist 328740
- Change subpackage requirements from %%{version} to %%{version}-%%{release}
cvsdist 328740
- Back out the pipe patch.
cvsdist 328740
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 328740
%patch0 -p1 -b .redhat
cvsdist 328740
%patch1 -p1 -b .agent
cvsdist f71077
autoconf
cvsdist f71077
cvsdist f71077
%build
cvsdist 328740
%configure \
cvsdist 328740
	--sysconfdir=%{_sysconfdir}/ssh \
cvsdist 328740
	--with-tcp-wrappers \
cvsdist 328740
	--with-ipv4-default \
cvsdist 328740
	--with-rsh=/usr/bin/rsh \
cvsdist 328740
	--with-default-path=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
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 328740
install -m755 $RPM_SOURCE_DIR/openssh.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 328740
install -d $RPM_BUILD_ROOT/etc/profile.d/
cvsdist 328740
install -m 755 %{SOURCE3} %{SOURCE4} $RPM_BUILD_ROOT/etc/profile.d/
cvsdist 328740
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 328740
%triggerun server -- ssh-server
cvsdist 328740
if [ "$1" != 0 -a -r /var/run/sshd.pid ] ; then
cvsdist 328740
	touch /var/run/sshd.restart
cvsdist 328740
fi
cvsdist 328740
cvsdist 328740
%triggerpostun server -- ssh-server
cvsdist 328740
if [ "$1" != 0 ] ; then
cvsdist 328740
	/sbin/chkconfig --add sshd
cvsdist 328740
	if test -f /var/run/sshd.restart ; then
cvsdist 328740
		rm -f /var/run/sshd.restart
cvsdist 328740
		/sbin/service sshd start > /dev/null 2>&1
cvsdist 328740
	fi
cvsdist 328740
fi
cvsdist 328740
cvsdist f71077
%post server
cvsdist f71077
/sbin/chkconfig --add sshd
cvsdist f71077
cvsdist f71077
%postun server
cvsdist 328740
/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 328740
%doc CREDITS UPGRADING TODO
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 328740
%attr(0755,root,root) %{_sysconfdir}/profile.d/gnome-ssh-askpass.*
cvsdist f71077
%attr(0755,root,root) %{_libexecdir}/ssh/gnome-ssh-askpass