Procházet zdrojové kódy

add experimental (non-SASL based) LDAP support

Ralf S. Engelschall před 23 roky
rodič
revize
582eb4eb98
1 změnil soubory, kde provedl 12 přidání a 2 odebrání
  1. 12 2
      postfix/postfix.spec

+ 12 - 2
postfix/postfix.spec

@@ -38,12 +38,13 @@ Distribution: OpenPKG [BASE]
 Group:        Mail
 License:      IPL
 Version:      %{V_postfix}
-Release:      20030402
+Release:      20030409
 
 #   package options
 %option       with_tls       no
 %option       with_sasl      no
 %option       with_mysql     no
+%option       with_ldap      no
 
 #   list of sources
 Source0:      ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-%{V_postfix}.tar.gz
@@ -71,6 +72,10 @@ PreReq:       sasl
 BuildPreReq:  MYSQL
 PreReq:       MYSQL
 %endif
+%if "%{with_ldap}" == "yes"
+BuildPreReq:  openldap, openssl
+PreReq:       openldap
+%endif
 AutoReq:      no
 AutoReqProv:  no
 Provides:     MTA
@@ -88,6 +93,7 @@ Conflicts:    sendmail, ssmtp, exim
     o Optional STARTTLS support (see package options below)
     o Optional SASL2 authentication support (see package options below)
     o Optional MySQL support (see package options below)
+    o Optional OpenLDAP support (see package options below)
 
 %prep
     #   unpack distribution files
@@ -107,7 +113,7 @@ Conflicts:    sendmail, ssmtp, exim
     ( cd pflogsumm-%{V_pflogsumm}; %{l_patch} -p0 <%{SOURCE pflogsumm.patch} )
 
     #   drop deprecated openldap API
-    %patch1
+    %patch1 -p0
 
 %build
     #   configure Postfix (hard-core part I)
@@ -148,6 +154,10 @@ Conflicts:    sendmail, ssmtp, exim
 %if "%{with_tls}" == "yes"
     CCARGS="$CCARGS -DHAS_SSL"
     AUXLIBS="$AUXLIBS -lssl -lcrypto"
+%endif
+%if "%{with_ldap}" == "yes"
+    CCARGS="$CCARGS -DHAS_LDAP"
+    AUXLIBS="$AUXLIBS -lldap -llber -lssl -lcrypto"
 %endif
     AUXLIBS="$AUXLIBS `%{l_prefix}/bin/fsl-config --all --ldflags --libs`"
     %{l_make} %{l_mflags} makefiles \