瀏覽代碼

get rid of deprecated OpenLDAP calls - next postfix release SHOULD fix this

Michael van Elst 23 年之前
父節點
當前提交
b309469f04
共有 2 個文件被更改,包括 28 次插入1 次删除
  1. 23 0
      postfix/postfix.patch
  2. 5 1
      postfix/postfix.spec

+ 23 - 0
postfix/postfix.patch

@@ -0,0 +1,23 @@
+--- src/util/dict_ldap.c.dist	Wed Apr  2 17:31:29 2003
++++ src/util/dict_ldap.c	Wed Apr  2 17:37:22 2003
+@@ -400,20 +400,6 @@
+ 			     myname, dict_ldap->ldapsource);
+ 	    }
+ 	}
+-#else
+-
+-	rc = ldap_enable_cache(dict_ldap->ld, dict_ldap->cache_expiry,
+-			       dict_ldap->cache_size);
+-	if (rc != LDAP_SUCCESS) {
+-	    msg_warn
+-		("%s: Unable to configure cache for %s: %d (%s) -- continuing",
+-		 myname, dict_ldap->ldapsource, rc, ldap_err2string(rc));
+-	} else {
+-	    if (msg_verbose)
+-		msg_info("%s: Caching enabled for %s",
+-			 myname, dict_ldap->ldapsource);
+-	}
+-
+ #endif
+     }
+     if (msg_verbose)

+ 5 - 1
postfix/postfix.spec

@@ -38,7 +38,7 @@ Distribution: OpenPKG [BASE]
 Group:        Mail
 License:      IPL
 Version:      %{V_postfix}
-Release:      20030320
+Release:      20030402
 
 #   package options
 %option       with_tls       no
@@ -53,6 +53,7 @@ Source3:      etc.tar
 Source4:      fsl.postfix
 Source5:      rc.postfix
 Patch0:       pflogsumm.patch
+Patch1:       postfix.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -105,6 +106,9 @@ Conflicts:    sendmail, ssmtp, exim
     #   apply pflogsumm patch
     ( cd pflogsumm-%{V_pflogsumm}; %{l_patch} -p0 <%{SOURCE pflogsumm.patch} )
 
+    #   drop deprecated openldap API
+    %patch1
+
 %build
     #   configure Postfix (hard-core part I)
     %{l_shtool} subst \