forked from rpms/openssh
auto-import openssh-3.5p1-6 from openssh-3.5p1-6.src.rpm
This commit is contained in:
parent
8180003648
commit
3e66bdcf29
@ -1,2 +1,2 @@
|
|||||||
openssh-3.4p1.tar.gz
|
openssh-3.5p1.tar.gz
|
||||||
x11-ssh-askpass-1.2.4.1.tar.gz
|
x11-ssh-askpass-1.2.4.1.tar.gz
|
||||||
|
131
openssh.spec
131
openssh.spec
@ -17,14 +17,17 @@
|
|||||||
# Do we want smartcard support (1=yes 0=no)
|
# Do we want smartcard support (1=yes 0=no)
|
||||||
%define scard 0
|
%define scard 0
|
||||||
|
|
||||||
|
# Use GTK2 instead of GNOME in gnome-ssh-askpass
|
||||||
|
%define gtk2 1
|
||||||
|
|
||||||
# Is this build for RHL 6.x?
|
# Is this build for RHL 6.x?
|
||||||
%define build6x 0
|
%define build6x 0
|
||||||
|
|
||||||
# Disable IPv6 (avoids DNS hangs on some glibc versions)
|
# Disable IPv6 (avoids DNS hangs on some glibc versions)
|
||||||
%define noip6 0
|
%define noip6 0
|
||||||
|
|
||||||
# Use gtk2 instead of gnome1 for gnome-ssh-askpass.
|
# Do we want kerberos5 support (1=yes 0=no)
|
||||||
%define gtk2 1
|
%define kerberos5 1
|
||||||
|
|
||||||
# Whether or not /sbin/nologin exists.
|
# Whether or not /sbin/nologin exists.
|
||||||
%define nologin 1
|
%define nologin 1
|
||||||
@ -59,26 +62,28 @@
|
|||||||
%define rescue 0
|
%define rescue 0
|
||||||
%{?build_rescue:%define rescue 1}
|
%{?build_rescue:%define rescue 1}
|
||||||
|
|
||||||
Summary: The OpenSSH implementation of SSH.
|
# Turn off some stuff for resuce builds
|
||||||
Name: openssh
|
|
||||||
Version: 3.4p1
|
|
||||||
%if %{rescue}
|
%if %{rescue}
|
||||||
Release: 5rescue
|
%define kerberos5 0
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Summary: The OpenSSH implementation of SSH protocol versions 1 and 2.
|
||||||
|
Name: openssh
|
||||||
|
Version: 3.5p1
|
||||||
|
%define rel 6
|
||||||
|
%if %{rescue}
|
||||||
|
Release: %{rel}rescue
|
||||||
%else
|
%else
|
||||||
Release: 5
|
Release: %{rel}
|
||||||
%endif
|
%endif
|
||||||
URL: http://www.openssh.com/portable.html
|
URL: http://www.openssh.com/portable.html
|
||||||
Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
|
Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
|
||||||
Source1: http://www.pobox.com/~jmknoble/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz
|
Source1: http://www.pobox.com/~jmknoble/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz
|
||||||
|
Source11: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz.sig
|
||||||
Patch0: openssh-SNAP-20020220-redhat.patch
|
Patch0: openssh-SNAP-20020220-redhat.patch
|
||||||
Patch1: openssh-2.9p1-groups.patch
|
Patch1: openssh-2.9p1-groups.patch
|
||||||
Patch2: gnome-ssh-askpass-gtk2.patch
|
Patch2: openssh-3.5p1-multilib-pam.patch
|
||||||
Patch3: openssh-TODO.patch
|
Patch11: http://www.sxw.org.uk/computing/patches/openssh-3.4p1-gssapi-20020627.diff
|
||||||
Patch4: openssh-3.4p1-hostauth.patch
|
|
||||||
Patch5: openssh-3.4p1-pam-timing.patch
|
|
||||||
Patch6: openssh-buffer-size.patch
|
|
||||||
Patch7: openssh-3.5p1-skip-initial.patch
|
|
||||||
#Patch11: http://www.sxw.org.uk/computing/patches/openssh-3.2.3p1-gssapi-20020527.diff
|
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
||||||
@ -110,6 +115,10 @@ BuildPreReq: XFree86-devel
|
|||||||
BuildPreReq: gnome-libs-devel
|
BuildPreReq: gnome-libs-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{kerberos5}
|
||||||
|
BuildPreReq: krb5-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
%package clients
|
%package clients
|
||||||
Summary: OpenSSH clients.
|
Summary: OpenSSH clients.
|
||||||
Requires: openssh = %{version}-%{release}
|
Requires: openssh = %{version}-%{release}
|
||||||
@ -185,21 +194,14 @@ environment.
|
|||||||
%endif
|
%endif
|
||||||
%patch0 -p1 -b .redhat
|
%patch0 -p1 -b .redhat
|
||||||
%patch1 -p1 -b .groups
|
%patch1 -p1 -b .groups
|
||||||
%if %{gtk2}
|
%patch2 -p1 -b .multilib-pam
|
||||||
%patch2 -p0 -b .gtk2
|
|
||||||
%endif
|
|
||||||
%patch3 -p0 -b .TODO
|
|
||||||
%patch4 -p0 -b .hostauth
|
|
||||||
%patch5 -p1 -b .pam-timing
|
|
||||||
%patch6 -p0 -b .buffer-size
|
|
||||||
%patch7 -p1 -b .skip-initial
|
|
||||||
|
|
||||||
# Apply gss-specific patches only if the release tag includes "gss". (Not
|
# Apply gss-specific patches only if the release tag includes "gss". (Not
|
||||||
# to be used for actual releases until it's in the mainline.)
|
# to be used for actual releases until it's in the mainline.)
|
||||||
# if echo "%{release}" | grep -q gss; then
|
if echo "%{release}" | grep -q gss; then
|
||||||
# %patch11 -p1 -b .gssapi
|
%patch11 -p1 -b .gssapi
|
||||||
# autoreconf-2.53
|
autoreconf-2.53
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{rescue}
|
%if %{rescue}
|
||||||
@ -225,9 +227,14 @@ CFLAGS="$RPM_OPT_FLAGS -Os"; export CFLAGS
|
|||||||
--with-ipv4-default \
|
--with-ipv4-default \
|
||||||
%endif
|
%endif
|
||||||
%if %{rescue}
|
%if %{rescue}
|
||||||
--without-pam --with-md5-passwords --without-kerberos5
|
--without-pam --with-md5-passwords \
|
||||||
%else
|
%else
|
||||||
--with-pam --with-kerberos5=/usr/kerberos
|
--with-pam \
|
||||||
|
%endif
|
||||||
|
%if %{kerberos5}
|
||||||
|
--with-kerberos5=/usr/kerberos --with-ldflags=-L/usr/kerberos/%{_lib}
|
||||||
|
%else
|
||||||
|
--without-kerberos5
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{static_libcrypto}
|
%if %{static_libcrypto}
|
||||||
@ -239,7 +246,7 @@ make
|
|||||||
%if ! %{no_x11_askpass}
|
%if ! %{no_x11_askpass}
|
||||||
pushd x11-ssh-askpass-%{aversion}
|
pushd x11-ssh-askpass-%{aversion}
|
||||||
# This configure can't handle platform strings.
|
# This configure can't handle platform strings.
|
||||||
./configure --prefix=%{_prefix} --libexecdir=%{_libexecdir}/openssh
|
./configure --prefix=%{_prefix} --libdir=%{_libdir} --libexecdir=%{_libexecdir}/openssh
|
||||||
xmkmf -a
|
xmkmf -a
|
||||||
make
|
make
|
||||||
popd
|
popd
|
||||||
@ -248,21 +255,19 @@ popd
|
|||||||
# Define a variable to toggle gnome1/gtk2 building. This is necessary
|
# Define a variable to toggle gnome1/gtk2 building. This is necessary
|
||||||
# because RPM doesn't handle nested %if statements.
|
# because RPM doesn't handle nested %if statements.
|
||||||
%if %{gtk2}
|
%if %{gtk2}
|
||||||
gtk2=yes
|
gtk2=yes
|
||||||
%else
|
%else
|
||||||
gtk2=no
|
gtk2=no
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if ! %{no_gnome_askpass}
|
%if ! %{no_gnome_askpass}
|
||||||
pushd contrib
|
pushd contrib
|
||||||
if [ $gtk2 = yes ] ; then
|
if [ $gtk2 = yes ] ; then
|
||||||
gcc $RPM_OPT_FLAGS `pkg-config --cflags gtk+-2.0` \
|
make gnome-ssh-askpass2
|
||||||
gnome-ssh-askpass.c -o gnome-ssh-askpass \
|
mv gnome-ssh-askpass2 gnome-ssh-askpass
|
||||||
`pkg-config --libs gtk+-2.0`
|
|
||||||
else
|
else
|
||||||
gcc $RPM_OPT_FLAGS `gnome-config --cflags gnome gnomeui` \
|
make gnome-ssh-askpass1
|
||||||
gnome-ssh-askpass.c -o gnome-ssh-askpass \
|
mv gnome-ssh-askpass1 gnome-ssh-askpass
|
||||||
`gnome-config --libs gnome gnomeui`
|
|
||||||
fi
|
fi
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
@ -277,12 +282,12 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|||||||
install -d $RPM_BUILD_ROOT/etc/pam.d/
|
install -d $RPM_BUILD_ROOT/etc/pam.d/
|
||||||
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
|
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
|
||||||
install -d $RPM_BUILD_ROOT%{_libexecdir}/openssh
|
install -d $RPM_BUILD_ROOT%{_libexecdir}/openssh
|
||||||
%if ! %{build6x}
|
%if %{build6x}
|
||||||
install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
|
|
||||||
install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
|
|
||||||
%else
|
|
||||||
install -m644 contrib/redhat/sshd.pam.old $RPM_BUILD_ROOT/etc/pam.d/sshd
|
install -m644 contrib/redhat/sshd.pam.old $RPM_BUILD_ROOT/etc/pam.d/sshd
|
||||||
install -m755 contrib/redhat/sshd.init.old $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
|
install -m755 contrib/redhat/sshd.init.old $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
|
||||||
|
%else
|
||||||
|
install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
|
||||||
|
install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if ! %{no_x11_askpass}
|
%if ! %{no_x11_askpass}
|
||||||
@ -295,7 +300,7 @@ install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/gnome
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if ! %{scard}
|
%if ! %{scard}
|
||||||
rm -f $RPM_BUILD_ROOT%{_datadir}/openssh/Ssh.bin
|
rm -f $RPM_BUILD_ROOT%{_datadir}/openssh/Ssh.bin
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
|
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
|
||||||
@ -360,8 +365,6 @@ fi
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc CREDITS ChangeLog INSTALL LICENCE OVERVIEW README* RFC* TODO WARNING*
|
%doc CREDITS ChangeLog INSTALL LICENCE OVERVIEW README* RFC* TODO WARNING*
|
||||||
%attr(0755,root,root) %{_bindir}/scp
|
|
||||||
%attr(0644,root,root) %{_mandir}/man1/scp.1*
|
|
||||||
%attr(0755,root,root) %dir %{_sysconfdir}/ssh
|
%attr(0755,root,root) %dir %{_sysconfdir}/ssh
|
||||||
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/moduli
|
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/moduli
|
||||||
%if ! %{rescue}
|
%if ! %{rescue}
|
||||||
@ -380,9 +383,12 @@ fi
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%attr(0755,root,root) %{_bindir}/ssh
|
%attr(0755,root,root) %{_bindir}/ssh
|
||||||
%attr(0644,root,root) %{_mandir}/man1/ssh.1*
|
%attr(0644,root,root) %{_mandir}/man1/ssh.1*
|
||||||
|
%attr(0755,root,root) %{_bindir}/scp
|
||||||
|
%attr(0644,root,root) %{_mandir}/man1/scp.1*
|
||||||
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ssh/ssh_config
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ssh/ssh_config
|
||||||
%attr(-,root,root) %{_bindir}/slogin
|
%attr(-,root,root) %{_bindir}/slogin
|
||||||
%attr(-,root,root) %{_mandir}/man1/slogin.1*
|
%attr(0644,root,root) %{_mandir}/man1/slogin.1*
|
||||||
|
%attr(0644,root,root) %{_mandir}/man5/ssh_config.5*
|
||||||
%if ! %{rescue}
|
%if ! %{rescue}
|
||||||
%attr(0755,root,root) %{_bindir}/ssh-agent
|
%attr(0755,root,root) %{_bindir}/ssh-agent
|
||||||
%attr(0755,root,root) %{_bindir}/ssh-add
|
%attr(0755,root,root) %{_bindir}/ssh-add
|
||||||
@ -392,7 +398,6 @@ fi
|
|||||||
%attr(0644,root,root) %{_mandir}/man1/ssh-add.1*
|
%attr(0644,root,root) %{_mandir}/man1/ssh-add.1*
|
||||||
%attr(0644,root,root) %{_mandir}/man1/ssh-keyscan.1*
|
%attr(0644,root,root) %{_mandir}/man1/ssh-keyscan.1*
|
||||||
%attr(0644,root,root) %{_mandir}/man1/sftp.1*
|
%attr(0644,root,root) %{_mandir}/man1/sftp.1*
|
||||||
%attr(0644,root,root) %{_mandir}/man5/ssh_config.5*
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if ! %{rescue}
|
%if ! %{rescue}
|
||||||
@ -428,18 +433,34 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Sep 16 2003 Nalin Dahyabhai <nalin@redhat.com> 3.4p1-5
|
* Fri Feb 14 2003 Nalin Dahyabhai <nalin@redhat.com> 3.5p1-6
|
||||||
- apply patch to store the correct buffer size in allocated buffers
|
- move scp to the -clients subpackage, because it directly depends on ssh
|
||||||
(CAN-2003-0693)
|
which is also in -clients (#84329)
|
||||||
- skip the initial PAM authentication attempt with an empty password if
|
|
||||||
empty passwords are not permitted in our configuration (#103998)
|
|
||||||
|
|
||||||
* Fri Jul 4 2003 Nalin Dahyabhai <nalin@redhat.com> 3.4p1-4
|
* Mon Feb 10 2003 Nalin Dahyabhai <nalin@redhat.com> 3.5p1-5
|
||||||
- rebuild
|
- rebuild
|
||||||
|
|
||||||
* Thu Jun 5 2003 Nalin Dahyabhai <nalin@redhat.com> 3.4p1-3
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
||||||
- backport patch to close timing attacks when PAM authentication is
|
- rebuilt
|
||||||
short-circuited by other checks
|
|
||||||
|
* Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 3.5p1-3
|
||||||
|
- rebuild
|
||||||
|
|
||||||
|
* Tue Nov 12 2002 Nalin Dahyabhai <nalin@redhat.com> 3.5p1-2
|
||||||
|
- patch PAM configuration to use relative path names for the modules, allowing
|
||||||
|
us to not worry about which arch the modules are built for on multilib systems
|
||||||
|
|
||||||
|
* Tue Oct 15 2002 Nalin Dahyabhai <nalin@redhat.com> 3.5p1-1
|
||||||
|
- update to 3.5p1, merging in filelist/perm changes from the upstream spec
|
||||||
|
|
||||||
|
* Fri Oct 4 2002 Nalin Dahyabhai <nalin@redhat.com> 3.4p1-3
|
||||||
|
- merge
|
||||||
|
|
||||||
|
* Thu Sep 12 2002 Than Ngo <than@redhat.com> 3.4p1-2.1
|
||||||
|
- fix to build on multilib systems
|
||||||
|
|
||||||
|
* Thu Aug 29 2002 Curtis Zinzilieta <curtisz@redhat.com> 3.4p1-2gss
|
||||||
|
- added gssapi patches and uncommented patch here
|
||||||
|
|
||||||
* Wed Aug 14 2002 Nalin Dahyabhai <nalin@redhat.com> 3.4p1-2
|
* Wed Aug 14 2002 Nalin Dahyabhai <nalin@redhat.com> 3.4p1-2
|
||||||
- pull patch from CVS to fix too-early free in ssh-keysign (#70009)
|
- pull patch from CVS to fix too-early free in ssh-keysign (#70009)
|
||||||
|
Loading…
Reference in New Issue
Block a user