Changeset 96184


Ignore:
Timestamp:
Aug 2, 2012, 4:01:01 PM (7 years ago)
Author:
jmr@…
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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/openldap/Portfile

    r96066 r96184  
    77name            openldap
    88version         2.4.31
     9revision        1
    910categories      databases
    1011maintainers     landonf
     
    3536configure.env-append        LANG=C
    3637configure.cppflags-append   -I${prefix}/include/db46 -I${prefix}/include/openssl -DBIND_8_COMPAT
     38platform darwin {
     39    configure.cppflags-append -DMDB_FDATASYNC=fsync
     40    if {${os.major} <= 9} {
     41        configure.cppflags-append -DMDB_DSYNC=O_SYNC
     42    }
     43}
    3744configure.ldflags-append    -L${prefix}/lib/db46
    3845
     
    7481}
    7582
    76 pre-destroot {
    77     # should be in pre-deploy....
    78     addgroup ldap
    79     set gid [existsgroup ldap]
    80     adduser ldap gid=${gid}
    81 }
     83add_users ldap group=ldap
    8284
    8385destroot.keepdirs "${destroot}${prefix}/var/run/openldap-data"
Note: See TracChangeset for help on using the changeset viewer.