OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   26-Dec-2005 10:18:27
  Branch: HEAD                             Handle: 2005122609182700

  Modified files:
    openpkg-src/openssh     openssh.spec

  Log:
    fix LDAP support by upgrading to a more modern version of the patch

  Summary:
    Revision    Changes     Path
    1.154       +14 -9      openpkg-src/openssh/openssh.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/openssh/openssh.spec
  ============================================================================
  $ cvs diff -u -r1.153 -r1.154 openssh.spec
  --- openpkg-src/openssh/openssh.spec  1 Sep 2005 18:21:40 -0000       1.153
  +++ openpkg-src/openssh/openssh.spec  26 Dec 2005 09:18:27 -0000      1.154
  @@ -22,15 +22,12 @@
   ##  SUCH DAMAGE.
   ##
   
  -#   FIXME: rse: with_ldap currently broken due to upgrades
  -
   #   package versions
   %define       V_base        4.2
   %define       V_portable    p1
   %define       V_watchdog    4.0p1
  -%define       V_ldap_base   3.7.1p2
  -%define       V_ldap_vers1  v2.01
  -%define       V_ldap_vers2  v201
  +%define       V_ldap_base   4.1p1
  +%define       V_ldap_vers   0.3.6
   %define       V_connect     1.95
   
   #   package information
  @@ -44,7 +41,7 @@
   Group:        Security
   License:      BSD
   Version:      %{V_base}%{V_portable}
  -Release:      20050901
  +Release:      20051226
   
   #   package options
   %option       with_fsl          yes
  @@ -75,7 +72,7 @@
   Patch1:       openssh.patch.chroot
   Patch2:       openssh.patch.alias
   Patch3:       
http://www.sc.isc.tohoku.ac.jp/~hgot/sources/openssh-%{V_watchdog}-watchdog.patch.tgz
  -Patch4:       
http://ldappubkey.gcu-squad.org/%{V_ldap_vers1}/ldappubkey-ossh%{V_ldap_base}-%{V_ldap_vers2}.patch
  +Patch4:       
http://www.opendarwin.org/en/projects/openssh-lpk/files/openssh-lpk-%{V_ldap_base}-%{V_ldap_vers}.patch
   Patch5:       openssh.patch.sftplogging
   Patch6:       openssh.patch.scpbindir
   
  @@ -135,6 +132,11 @@
           url       = 
http://www.sc.isc.tohoku.ac.jp/~hgot/sources/openssh-watchdog.html
           regex     = HREF=.openssh-(__VER__)-watchdog\.patch\.tgz
       }
  +    prog openssh:ldap = {
  +        version   = %{V_ldap_base}-%{V_ldap_vers}
  +        url       = http://www.opendarwin.org/en/projects/openssh-lpk/
  +        regex     = openssh-lpk-(__VER__)\.patch
  +    }
   
   %prep
       #   unpack and patch distribution
  @@ -157,7 +159,7 @@
       %{l_patch} -p0 -b <openssh-%{V_watchdog}-watchdog.patch
   %endif
   %if "%{with_ldap}" == "yes"
  -    %{l_patch} -p1 -b <%{SOURCE 
ldappubkey-ossh%{V_ldap_base}-%{V_ldap_vers2}.patch}
  +    %{l_patch} -p1 -b <%{SOURCE 
openssh-lpk-%{V_ldap_base}-%{V_ldap_vers}.patch}
   %endif
   %if "%{with_sftplogging}" == "yes"
       %patch -p0 -P 5
  @@ -186,7 +188,7 @@
       ldflags="$ldflags -L`%{l_rc} --query pam_libdir`"
   %endif
   %if "%{with_ldap}" == "yes"
  -    cflags="$cflags -DWITH_LDAP_PUBKEY"
  +    cflags="$cflags -DLDAP_DEPRECATED"
       ldflags="$ldflags -lldap -llber -lcrypto -lssl"
   %endif
       strip="--enable-strip"; %{l_shtool} path strip || strip="--disable-strip"
  @@ -218,6 +220,9 @@
   %if "%{with_wrap}" == "yes"
           --with-tcp-wrappers=%{l_prefix} \
   %endif
  +%if "%{with_ldap}" == "yes"
  +        --with-ldap=%{l_prefix} \
  +%endif
           --with-md5-passwords \
           --with-zlib=%{l_prefix} \
           --with-ipv4-default \
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to