source: trunk/dports/databases/openldap/Portfile @ 74050

Last change on this file since 74050 was 74050, checked in by takanori@…, 9 years ago

Increased revision number to link against the new library. (icu 4.6)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 74050 2010-12-03 05:36:14Z takanori@macports.org $
2
3PortSystem 1.0
4PortGroup muniversal 1.0
5
6name            openldap
7version         2.4.21
8revision        3
9categories      databases
10maintainers     landonf
11description     OpenLDAP Software
12long_description        OpenLDAP Software is an open source implementation \
13                        of the Lightweight Directory Access Protocol. 
14
15platforms       darwin
16homepage        http://www.openldap.org/
17master_sites    ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/ \
18                http://www.openldap.org/software/download/OpenLDAP/openldap-release/ \
19                ftp://ftp.nl.uu.net/pub/unix/db/openldap/openldap-release/
20extract.suffix  .tgz
21checksums       md5     e7128c57b2bacd940e8906057c94ff26 \
22                sha1    cfcfff3df7804bab8eb0d9464d3712a3e32d677b \
23                rmd160  94f662e8fe1b009f5836cb9c19b095f1b159b1bd
24
25depends_lib     path:bin/perl:perl5 \
26                port:cyrus-sasl2 \
27                port:openssl \
28                port:db46 \
29                port:icu
30
31patchfiles      patch-ltmain
32
33configure.env-append            LANG=C
34configure.cppflags-append       -I${prefix}/include/db46 -I${prefix}/include/openssl -DBIND_8_COMPAT
35configure.ldflags-append        -L${prefix}/lib/db46
36
37configure.args  --mandir=${prefix}/share/man \
38                --localstatedir=${prefix}/var \
39                --with-cyrus-sasl \
40                --with-tls \
41                --enable-crypt \
42                --enable-wrappers \
43                --enable-syncprov \
44                --enable-ipv6
45
46startupitem.create      yes
47startupitem.name        slapd
48startupitem.init        "PID=${prefix}/var/run/slapd.pid"
49startupitem.start       "${prefix}/libexec/slapd -u ldap -f ${prefix}/etc/openldap/slapd.conf"
50startupitem.stop        "\[ -r \${PID} \] && kill \$(cat \${PID})"
51
52variant aci description {Enable per-object ACIs (experimental)} {
53        configure.args-append --enable-aci
54}
55
56pre-build {
57    set dirs {}
58    if {[variant_isset universal]} {
59        foreach arch ${universal_archs_to_use} {
60            lappend dirs ${worksrcpath}-${arch}
61        }
62    } else {
63        lappend dirs ${worksrcpath}
64    }
65    foreach dir ${dirs} {
66        system "cd ${dir} && make depend"
67    }
68}
69
70pre-destroot {
71        # should be in pre-deploy....
72        addgroup ldap
73        set gid [existsgroup ldap]
74        adduser ldap gid=${gid}
75}
76
77post-destroot {
78        xinstall -d -g ldap -m 700 -o ldap \
79                "${destroot}${prefix}/var/run/openldap-data"
80# Delete the duplicate .conf files (leaves .conf.default) so upgrades won't overwrite .conf files.
81        file delete -force ${destroot}${prefix}/etc/openldap/slapd.conf
82        file delete -force ${destroot}${prefix}/etc/openldap/ldap.conf
83}
84
85test.run        yes
86test.target     check
Note: See TracBrowser for help on using the repository browser.