I have made a patch for the spec file in openldap-2.3.25-20060804.src.rpm, 
to add support for overlays, such that the different overlays can be
activated with standard '--define "with_dyngroup yes"', where each
overlay is a separate option.
The default values match today, plus the syncrepl overlay, since it
is the modern slurpd equivalent.

-- 
Sincerely | Homepage:
Jørgen    | http://www.hex.no/jhf
          | Public GPG key:
          | http://www.hex.no/jhf/key.txt

When in doubt, do it.  It's much easier to apologize than to get permission.
                -- Grace Murray Hopper

--- openldap.spec.orig  2006-08-09 07:47:07.000000000 +0000
+++ openldap.spec       2006-08-09 07:56:51.000000000 +0000
@@ -41,6 +41,20 @@
 %option       with_sasl  no
 %option       with_perl  no
 %option       with_odbc  no
+%option       with_accesslog    no
+%option       with_denyop       no
+%option       with_dyngroup     yes
+%option       with_dynlist      no
+%option       with_lastmod      no
+%option       with_ppolicy      no
+%option       with_proxycache   yes
+%option       with_refint       no
+%option       with_retcode      no
+%option       with_rwm          no
+%option       with_syncprov     yes
+%option       with_translucent  no
+%option       with_unique       no
+%option       with_valsort      no
 
 #   list of sources
 Source0:      
ftp://ftp.openldap.org/pub/openldap/openldap-release/openldap-%{version}.tgz
@@ -117,8 +131,6 @@
     ARGS=" --enable-dnssrv"
     ARGS=" --enable-null"
     ARGS=" --enable-shell"
-    ARGS=" --with-dyngroup"
-    ARGS=" --with-proxycache"
     ARGS=" --enable-slurpd"
 
     #   configuration: force to use OSSP fsl
@@ -157,6 +169,50 @@
     ARGS=" --enable-sql"
 %endif
 
+    #   configuration: overlay support
+%if "%{with_accesslog}" == "yes"
+        ARGS=" --enable-accesslog=yes"
+%endif
+%if "%{with_denyop}" == "yes"
+        ARGS=" --enable-denyop=yes"
+%endif
+%if "%{with_dyngroup}" == "yes"
+        ARGS=" --enable-dyngroup=yes"
+%endif
+%if "%{with_dynlist}" == "yes"
+        ARGS=" --enable-dynlist=yes"
+%endif
+%if "%{with_lastmod}" == "yes"
+        ARGS=" --enable-lastmod=yes"
+%endif
+%if "%{with_ppolicy}" == "yes"
+        ARGS=" --enable-ppolicy=yes"
+%endif
+%if "%{with_proxycache}" == "yes"
+        ARGS=" --enable-proxycache=yes"
+%endif
+%if "%{with_refint}" == "yes"
+        ARGS=" --enable-refint=yes"
+%endif
+%if "%{with_retcode}" == "yes"
+        ARGS=" --enable-retcode=yes"
+%endif
+%if "%{with_rwm}" == "yes"
+        ARGS=" --enable-rwm=yes"
+%endif
+%if "%{with_syncprov}" == "yes"
+        ARGS=" --enable-syncprov=yes"
+%endif
+%if "%{with_translucent}" == "yes"
+        ARGS=" --enable-translucent=yes"
+%endif
+%if "%{with_unique}" == "yes"
+        ARGS=" --enable-unique=yes"
+%endif
+%if "%{with_valsort}" == "yes"
+        ARGS=" --enable-valsort=yes"
+%endif
+
     #   configuration: special platform support
     case "%{l_platform -t}" in
         *-sunos* ) CFLAGS=" -D_AVL_H"; LIBS=" -lrt" ;;

Attachment: signature.asc
Description: Digital signature

Reply via email to