[96184] trunk/dports/databases/openldap/Portfile

jmr at macports.org jmr at macports.org
Thu Aug 2 09:01:06 PDT 2012


Revision: 96184
          https://trac.macports.org/changeset/96184
Author:   jmr at macports.org
Date:     2012-08-02 09:01:01 -0700 (Thu, 02 Aug 2012)
Log Message:
-----------
openldap:
 * fix build on <= Leopard (#35467)
 * disable use of fdatasync, as it doesn't appear in the system headers and
   the only info I can find suggests it doesn't work
 * use add_users

Modified Paths:
--------------
    trunk/dports/databases/openldap/Portfile

Modified: trunk/dports/databases/openldap/Portfile
===================================================================
--- trunk/dports/databases/openldap/Portfile	2012-08-02 14:53:16 UTC (rev 96183)
+++ trunk/dports/databases/openldap/Portfile	2012-08-02 16:01:01 UTC (rev 96184)
@@ -6,6 +6,7 @@
 
 name            openldap
 version         2.4.31
+revision        1
 categories      databases
 maintainers     landonf
 license         openldap
@@ -34,6 +35,12 @@
 
 configure.env-append        LANG=C
 configure.cppflags-append   -I${prefix}/include/db46 -I${prefix}/include/openssl -DBIND_8_COMPAT
+platform darwin {
+    configure.cppflags-append -DMDB_FDATASYNC=fsync
+    if {${os.major} <= 9} {
+        configure.cppflags-append -DMDB_DSYNC=O_SYNC 
+    }
+}
 configure.ldflags-append    -L${prefix}/lib/db46
 
 configure.args  --mandir=${prefix}/share/man \
@@ -73,12 +80,7 @@
     }
 }
 
-pre-destroot {
-    # should be in pre-deploy....
-    addgroup ldap
-    set gid [existsgroup ldap]
-    adduser ldap gid=${gid}
-}
+add_users ldap group=ldap
 
 destroot.keepdirs "${destroot}${prefix}/var/run/openldap-data"
 post-destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120802/8421a1c0/attachment.html>


More information about the macports-changes mailing list