Ignore:
Timestamp:
Jun 1, 2007, 4:58:29 AM (12 years ago)
Author:
markd@…
Message:

Use a server variant and only install startupitem and openldap backend stuff when that is invoked.

File:
1 edited

Legend:

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

    r24637 r25773  
    1818checksums       md5 91ae33b88bce17a48743da35a0aa04fd
    1919
    20 depends_lib     port:db4 \
    21                 port:perl5.8 \
     20depends_lib     port:perl5.8 \
    2221                port:cyrus-sasl2 \
    2322                port:openssl
     
    2524patchfiles      patch-ltmain
    2625
    27 configure.env   LDFLAGS="-L${prefix}/lib" \
    28                 CPPFLAGS="-I${prefix}/include -I${prefix}/include/db4 -I${prefix}/include/openssl -DBIND_8_COMPAT" \
    29                 LANG=C
     26configure.env-append            LANG=C
     27configure.cppflags-append       "-I${prefix}/include/db4 -I${prefix}/include/openssl -DBIND_8_COMPAT"
    3028
    3129configure.args  --mandir=${prefix}/share/man \
     
    3432                --with-tls \
    3533                --enable-crypt \
    36                 --enable-wrappers
     34                --disable-backends \
     35                --disable-slapd
    3736
    38 startupitem.create      yes
    39 startupitem.name        slapd
    40 startupitem.init        "PID=${prefix}/var/run/slapd.pid"
    41 startupitem.start       "${prefix}/libexec/slapd -u ldap -f ${prefix}/etc/openldap/slapd.conf"
    42 startupitem.stop        "\[ -r \${PID} \] && kill \$(cat \${PID})"
     37variant server {
     38        depends_lib-append      port:db4
     39        configure.args-delete   --disable-backends \
     40                                --disable-slapd \
     41        configure.args-append   --enable-wrappers \
     42                                --enable-syncprov
     43        startupitem.create      yes
     44        startupitem.name        slapd
     45        startupitem.init        "PID=${prefix}/var/run/slapd.pid"
     46        startupitem.start       "${prefix}/libexec/slapd -u ldap -f ${prefix}/etc/openldap/slapd.conf"
     47        startupitem.stop        "\[ -r \${PID} \] && kill \$(cat \${PID})"
     48}
    4349
    4450platform darwin 6 {
Note: See TracChangeset for help on using the changeset viewer.