Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/libs
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21480

Added Files:
        openldap24.info openldap24.patch 
Log Message:
New package.

--- NEW FILE: openldap24.info ---
Package: openldap24
Version: 2.4.13
Revision: 1
Maintainer: Daniel Johnson <[EMAIL PROTECTED]>
Source: mirror:custom:openldap-release/openldap-%v.tgz
CustomMirror: <<
 asi-JP: ftp://ftp.dti.ad.jp/pub/net/OpenLDAP/
 asi-JP: ftp://ftp.u-aizu.ac.jp/pub/net/openldap/
 asi-KR: ftp://ftp.holywar.net/pub/mirror/OpenLDAP/
 aus-AU: http://www.PlanetMirror.com/pub/openldap/
 eur-AT: ftp://gd.tuwien.ac.at/infosys/network/OpenLDAP/
 eur-CH: ftp://sunsite.cnlab-switch.ch/mirror/OpenLDAP/
 eur-GR: ftp://ftp.ntua.gr/mirror/OpenLDAP/
 eur-IT: ftp://it.openldap.org/pub/OpenLDAP/
 eur-NL: ftp://ftp.nl.uu.net/pub/unix/db/openldap/
 eur-PT: ftp://ftp.linux.pt/pub/mirrors/OpenLDAP/
 eur-UK: ftp://ftp.plig.net/pub/OpenLDAP/
 nam-US: ftp://ftp.OpenLDAP.org/pub/OpenLDAP/
 sam-BR: ftp://ftp.matrix.com.br/pub/openldap/
<<
Source-MD5: 5382bbb4c67172c48c871b6d24b7f8cc
Depends: %N-shlibs (= %v-%r), daemonic
BuildDepends: <<
        cyrus-sasl2-dev (>= 2.1.22-1),
        db47-aes | db47,
        fink (>= 0.24.12-1),
        readline5 (>= 5.0-1004),
        system-openssl-dev
<<
Conflicts: openldap-ssl, openldap23
Replaces: openldap-ssl, openldap23
PatchFile: %n.patch
PatchFile-MD5: 34d1db39b87219562177f02d131e4d7d
NoSetLDFLAGS: True
SetLibs: -lkrb5 -ldb-4.7 -L%p/lib/system-openssl/lib -L%p/lib
SetCPPFLAGS: -I%p/lib/system-openssl/include -I%p/include/db4 -DBIND_8_COMPAT
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
ConfigureParams: --libexecdir=%p/sbin --mandir=%p/share/man --with-cyrus-sasl 
--enable-ldap --enable-ldbm --disable-dependency-tracking --enable-dynamic 
--enable-shared --disable-static
InstallScript: <<
 make install DESTDIR=%d
 #No need for dependency_libs in .la files if not building static libs
 perl -pi -e "s/dependency_libs=.*$/dependency_libs=''/" %i/lib/*.la
<<
DocFiles: ANNOUNCEMENT CHANGES COPYRIGHT LICENSE README build/LICENSE-2.0.1 
doc/drafts/draft*
ConfFiles: <<
  %p/etc/openldap/ldap.conf
  %p/etc/openldap/slapd.conf
<<
SplitOff: <<
 Package: %N-shlibs
 Depends: <<
        cyrus-sasl2-shlibs (>= 2.1.22-1),
        db47-aes-shlibs | db47-shlibs,
        readline5-shlibs (>= 5.0-1004)
 <<
 Description: Shared libraries for LDAP
 Files: lib/*-2.4.2*.dylib
 Shlibs: <<
    %p/lib/liblber-2.4.2.dylib 6.0.0 %n (>= 2.4.13-1)
    %p/lib/libldap-2.4.2.dylib 6.0.0 %n (>= 2.4.13-1)
    %p/lib/libldap_r-2.4.2.dylib 6.0.0 %n (>= 2.4.13-1)
  <<
 DocFiles: ANNOUNCEMENT CHANGES COPYRIGHT LICENSE README build/LICENSE-2.0.1 
<<
SplitOff2: <<
 Package: %N-dev
 Depends: %N-shlibs (= %v-%r)
 Conflicts: openldap-ssl-dev, openldap23-dev
 Replaces: openldap-ssl-dev, openldap23-dev
 Description: Libraries and headers for LDAP development
 Files: include lib/*.la lib/*.dylib share/man/man3
 BuildDependsOnly: True
 DocFiles: COPYRIGHT LICENSE README build/LICENSE-2.0.1
<<
DaemonicName: slapd
DaemonicFile: <<
<service>
<description>LDAP Server</description>
<message>LDAP Server</message>

<daemon name="slapd">
<executable background="yes">%p/sbin/slapd</executable>
<configfile>%p/etc/openldap/slapd.conf</configfile>
</daemon>

</service>
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
  daemonic remove slapd
fi
<<
Description: LDAP directory services implementation
DescDetail: <<
OpenLDAP is an open source implementation of the Lightweight Directory
Access Protocol. The suite includes:
*  slapd - stand-alone LDAP server
*  slurpd - stand-alone LDAP replication server
*  libraries implementing the LDAP protocol, and
*  utilities, tools, and sample clients.
<<
DescUsage: <<
 To create a startup item that starts slapd after reboot just run as root
'daemonic enable slapd'. To remove the slapd startup item just run as root
'daemonic remove slapd'.
<<
DescPort: <<
Patch taken from:
http://packages.debian.org/lenny/libldap-2.4-2
<<
DescPackaging: <<
 Disabled static libs and cleaned dependency_libs in *.la files.
 Dependent packages no longer need to depend on our dependencies.
<<
License: Restrictive/Distributable
Homepage: http://www.openldap.org

# Disabling tests for now as test048-syncrepl-multiproxy is failing.
#InfoTest: <<
# Tests take a LONG time to run.
# TestSuiteSize: large
# TestScript: make check || exit 2
#<<


--- NEW FILE: openldap24.patch ---
diff -ruN openldap-2.4.13.orig/include/ldap.h openldap-2.4.13/include/ldap.h
--- openldap-2.4.13.orig/include/ldap.h 2008-11-10 19:07:27.000000000 -0500
+++ openldap-2.4.13/include/ldap.h      2008-12-02 20:00:05.000000000 -0500
@@ -2452,5 +2452,25 @@
        LDAPControl     **ctrls,
        LDAPDerefRes    **drp ));
 
+/*
+ * hacks for NTLM
+ */
+#define LDAP_AUTH_NTLM_REQUEST ((ber_tag_t) 0x8aU)
+#define LDAP_AUTH_NTLM_RESPONSE  ((ber_tag_t) 0x8bU)
+LDAP_F( int )
+ldap_ntlm_bind LDAP_P((
+      LDAP    *ld,
+      LDAP_CONST char *dn,
+      ber_tag_t tag,
+      struct berval *cred,
+      LDAPControl **sctrls,
+      LDAPControl **cctrls,
+      int   *msgidp ));
+LDAP_F( int )
+ldap_parse_ntlm_bind_result LDAP_P((
+      LDAP    *ld,
+      LDAPMessage *res,
+      struct berval *challenge));
+
 LDAP_END_DECL
 #endif /* _LDAP_H */
diff -ruN openldap-2.4.13.orig/libraries/libldap/Makefile.in 
openldap-2.4.13/libraries/libldap/Makefile.in
--- openldap-2.4.13.orig/libraries/libldap/Makefile.in  2008-11-10 
14:15:16.000000000 -0500
+++ openldap-2.4.13/libraries/libldap/Makefile.in       2008-12-02 
20:03:07.000000000 -0500
@@ -26,7 +26,7 @@
        request.c os-ip.c url.c pagectrl.c sortctrl.c vlvctrl.c \
        init.c options.c print.c string.c util-int.c schema.c \
        charray.c tls.c os-local.c dnssrv.c utf-8.c utf-8-conv.c \
-       turn.c ppolicy.c dds.c txn.c ldap_sync.c stctrl.c \
+       turn.c ppolicy.c dds.c txn.c ldap_sync.c stctrl.c ntlm.c \
        assertion.c deref.c
 
 OBJS   = bind.lo open.lo result.lo error.lo compare.lo search.lo \
@@ -38,7 +38,7 @@
        request.lo os-ip.lo url.lo pagectrl.lo sortctrl.lo vlvctrl.lo \
        init.lo options.lo print.lo string.lo util-int.lo schema.lo \
        charray.lo tls.lo os-local.lo dnssrv.lo utf-8.lo utf-8-conv.lo \
-       turn.lo ppolicy.lo dds.lo txn.lo ldap_sync.lo stctrl.lo \
+       turn.lo ppolicy.lo dds.lo txn.lo ldap_sync.lo stctrl.lo ntlm.lo \
        assertion.lo deref.lo
 
 LDAP_INCDIR= ../../include       
diff -ruN openldap-2.4.13.orig/libraries/libldap/ntlm.c 
openldap-2.4.13/libraries/libldap/ntlm.c
--- openldap-2.4.13.orig/libraries/libldap/ntlm.c       1969-12-31 
19:00:00.000000000 -0500
+++ openldap-2.4.13/libraries/libldap/ntlm.c    2008-12-02 20:00:05.000000000 
-0500
@@ -0,0 +1,138 @@
+/* $OpenLDAP: pkg/ldap/libraries/libldap/ntlm.c,v 1.1.4.10 2002/01/04 20:38:21 
kurt Exp $ */
+/*
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
+
+/* Mostly copied from sasl.c */
+
+#include "portable.h"
+
+#include <stdlib.h>
+#include <stdio.h>
+
+#include <ac/socket.h>
+#include <ac/string.h>
+#include <ac/time.h>
+#include <ac/errno.h>
+
+#include "ldap-int.h"
+
+int
+ldap_ntlm_bind(
+ LDAP    *ld,
+ LDAP_CONST char *dn,
+ ber_tag_t tag,
+ struct berval *cred,
+ LDAPControl **sctrls,
+ LDAPControl **cctrls,
+ int   *msgidp )
+{
+ BerElement  *ber;
+ int rc;
+ ber_int_t id;
+
+ Debug( LDAP_DEBUG_TRACE, "ldap_ntlm_bind\n", 0, 0, 0 );
+
+ assert( ld != NULL );
+ assert( LDAP_VALID( ld ) );
+ assert( msgidp != NULL );
+
+ if( msgidp == NULL ) {
+   ld->ld_errno = LDAP_PARAM_ERROR;
+   return ld->ld_errno;
+ }
+
+ /* create a message to send */
+ if ( (ber = ldap_alloc_ber_with_options( ld )) == NULL ) {
+   ld->ld_errno = LDAP_NO_MEMORY;
+   return ld->ld_errno;
+ }
+
+ assert( LBER_VALID( ber ) );
+
+ LDAP_NEXT_MSGID( ld, id );
+ rc = ber_printf( ber, "{it{istON}" /*}*/,
+      id, LDAP_REQ_BIND,
+      ld->ld_version, dn, tag,
+      cred );
+
+ /* Put Server Controls */
+ if( ldap_int_put_controls( ld, sctrls, ber ) != LDAP_SUCCESS ) {
+   ber_free( ber, 1 );
+   return ld->ld_errno;
+ }
+
+ if ( ber_printf( ber, /*{*/ "N}" ) == -1 ) {
+   ld->ld_errno = LDAP_ENCODING_ERROR;
+   ber_free( ber, 1 );
+   return ld->ld_errno;
+ }
+
+ /* send the message */
+ *msgidp = ldap_send_initial_request( ld, LDAP_REQ_BIND, dn, ber, id );
+
+ if(*msgidp < 0)
+   return ld->ld_errno;
+
+ return LDAP_SUCCESS;
+}
+
+int
+ldap_parse_ntlm_bind_result(
+ LDAP    *ld,
+ LDAPMessage *res,
+ struct berval *challenge)
+{
+ ber_int_t errcode;
+ ber_tag_t tag;
+ BerElement  *ber;
+ ber_len_t len;
+
+ Debug( LDAP_DEBUG_TRACE, "ldap_parse_ntlm_bind_result\n", 0, 0, 0 );
+
+ assert( ld != NULL );
+ assert( LDAP_VALID( ld ) );
+ assert( res != NULL );
+
+ if ( ld == NULL || res == NULL ) {
+   return LDAP_PARAM_ERROR;
+ }
+
+ if( res->lm_msgtype != LDAP_RES_BIND ) {
+   ld->ld_errno = LDAP_PARAM_ERROR;
+   return ld->ld_errno;
+ }
+
+ if ( ld->ld_error ) {
+   LDAP_FREE( ld->ld_error );
+   ld->ld_error = NULL;
+ }
+ if ( ld->ld_matched ) {
+   LDAP_FREE( ld->ld_matched );
+   ld->ld_matched = NULL;
+ }
+
+ /* parse results */
+
+ ber = ber_dup( res->lm_ber );
+
+ if( ber == NULL ) {
+   ld->ld_errno = LDAP_NO_MEMORY;
+   return ld->ld_errno;
+ }
+
+ tag = ber_scanf( ber, "{ioa" /*}*/,
+      &errcode, challenge, &ld->ld_error );
+ ber_free( ber, 0 );
+
+ if( tag == LBER_ERROR ) {
+   ld->ld_errno = LDAP_DECODING_ERROR;
+   return ld->ld_errno;
+ }
+
+ ld->ld_errno = errcode;
+
+ return( ld->ld_errno );
+}
+
diff -ruN openldap-2.4.13.orig/libraries/libldap_r/Makefile.in 
openldap-2.4.13/libraries/libldap_r/Makefile.in
--- openldap-2.4.13.orig/libraries/libldap_r/Makefile.in        2008-11-07 
19:14:45.000000000 -0500
+++ openldap-2.4.13/libraries/libldap_r/Makefile.in     2008-12-02 
20:00:05.000000000 -0500
@@ -28,7 +28,7 @@
        request.c os-ip.c url.c pagectrl.c sortctrl.c vlvctrl.c \
        init.c options.c print.c string.c util-int.c schema.c \
        charray.c tls.c os-local.c dnssrv.c utf-8.c utf-8-conv.c \
-       turn.c ppolicy.c dds.c txn.c ldap_sync.c stctrl.c \
+       turn.c ppolicy.c dds.c txn.c ldap_sync.c stctrl.c ntlm.c \
        assertion.c
 SRCS   = threads.c rdwr.c rmutex.c tpool.c rq.c \
        thr_posix.c thr_cthreads.c thr_thr.c thr_lwp.c thr_nt.c \
@@ -45,7 +45,7 @@
        request.lo os-ip.lo url.lo pagectrl.lo sortctrl.lo vlvctrl.lo \
        init.lo options.lo print.lo string.lo util-int.lo schema.lo \
        charray.lo tls.lo os-local.lo dnssrv.lo utf-8.lo utf-8-conv.lo \
-       turn.lo ppolicy.lo dds.lo txn.lo ldap_sync.lo stctrl.lo \
+       turn.lo ppolicy.lo dds.lo txn.lo ldap_sync.lo stctrl.lo ntlm.lo \
        assertion.lo
 
 LDAP_INCDIR= ../../include       


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to