Added slapi support as an optiondiff -r1.35 -r1.36 pkgsrc/databases/openldap-server/Makefile
(adam)
@@ -1,33 +1,32 @@ | @@ -1,33 +1,32 @@ | |||
1 | # $NetBSD: Makefile,v 1.35 2013/03/16 12:49:55 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.36 2013/05/04 18:16:37 adam Exp $ | |
2 | 2 | |||
3 | PKGNAME= ${DISTNAME:S/-/-server-/} | 3 | PKGNAME= ${DISTNAME:S/-/-server-/} | |
4 | COMMENT= Lightweight Directory Access Protocol server suite | 4 | COMMENT= Lightweight Directory Access Protocol server suite | |
5 | 5 | |||
6 | CONFLICTS+= openldap<2.3.23nb1 | 6 | CONFLICTS+= openldap<2.3.23nb1 | |
7 | 7 | |||
8 | DEPENDS+= openldap-client>=2.3.27nb1:../../databases/openldap-client | 8 | DEPENDS+= openldap-client>=2.3.27nb1:../../databases/openldap-client | |
9 | 9 | |||
10 | CFLAGS.DragonFly+= -DMDB_DSYNC=O_SYNC -DMDB_FDATASYNC=fsync | 10 | CFLAGS.DragonFly+= -DMDB_DSYNC=O_SYNC -DMDB_FDATASYNC=fsync | |
11 | 11 | |||
12 | # slapd options | 12 | # slapd options | |
13 | CONFIGURE_ARGS+= --enable-slapd | 13 | CONFIGURE_ARGS+= --enable-slapd | |
14 | CONFIGURE_ARGS+= --enable-crypt | 14 | CONFIGURE_ARGS+= --enable-crypt | |
15 | CONFIGURE_ARGS+= --enable-wrappers | 15 | CONFIGURE_ARGS+= --enable-wrappers | |
16 | 16 | |||
17 | # slapd backends | 17 | # slapd backends | |
18 | CONFIGURE_ARGS+= --enable-dnssrv | 18 | CONFIGURE_ARGS+= --enable-dnssrv | |
19 | CONFIGURE_ARGS+= --enable-ldap | 19 | CONFIGURE_ARGS+= --enable-ldap | |
20 | CONFIGURE_ARGS+= --enable-ldbm | |||
21 | CONFIGURE_ARGS+= --enable-meta | 20 | CONFIGURE_ARGS+= --enable-meta | |
22 | CONFIGURE_ARGS+= --enable-monitor | 21 | CONFIGURE_ARGS+= --enable-monitor | |
23 | CONFIGURE_ARGS+= --enable-null | 22 | CONFIGURE_ARGS+= --enable-null | |
24 | CONFIGURE_ARGS+= --enable-passwd | 23 | CONFIGURE_ARGS+= --enable-passwd | |
25 | CONFIGURE_ARGS+= --enable-shell | 24 | CONFIGURE_ARGS+= --enable-shell | |
26 | 25 | |||
27 | # slapd (stackable) overlays | 26 | # slapd (stackable) overlays | |
28 | CONFIGURE_ARGS+= --enable-overlays | 27 | CONFIGURE_ARGS+= --enable-overlays | |
29 | 28 | |||
30 | BUILD_DIRS= include libraries servers | 29 | BUILD_DIRS= include libraries servers | |
31 | TEST_DIRS= tests | 30 | TEST_DIRS= tests | |
32 | INSTALL_DIRS= servers | 31 | INSTALL_DIRS= servers | |
33 | 32 |
@@ -1,14 +1,15 @@ | @@ -1,14 +1,15 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.10 2012/03/13 19:57:12 adam Exp $ | 1 | @comment $NetBSD: PLIST,v 1.11 2013/05/04 18:16:37 adam Exp $ | |
2 | ${PLIST.slapi}lib/libslapi.la | |||
2 | libexec/slapd | 3 | libexec/slapd | |
3 | sbin/slapacl | 4 | sbin/slapacl | |
4 | sbin/slapadd | 5 | sbin/slapadd | |
5 | sbin/slapauth | 6 | sbin/slapauth | |
6 | sbin/slapcat | 7 | sbin/slapcat | |
7 | sbin/slapdn | 8 | sbin/slapdn | |
8 | sbin/slapindex | 9 | sbin/slapindex | |
9 | sbin/slappasswd | 10 | sbin/slappasswd | |
10 | sbin/slapschema | 11 | sbin/slapschema | |
11 | sbin/slaptest | 12 | sbin/slaptest | |
12 | share/examples/openldap/DB_CONFIG | 13 | share/examples/openldap/DB_CONFIG | |
13 | share/examples/openldap/schema/README | 14 | share/examples/openldap/schema/README | |
14 | share/examples/openldap/schema/collective.ldif | 15 | share/examples/openldap/schema/collective.ldif |
@@ -1,23 +1,25 @@ | @@ -1,23 +1,25 @@ | |||
1 | # $NetBSD: options.mk,v 1.16 2012/06/12 15:45:55 wiz Exp $ | 1 | # $NetBSD: options.mk,v 1.17 2013/05/04 18:16:37 adam Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.openldap-server | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.openldap-server | |
4 | PKG_SUPPORTED_OPTIONS= bdb sasl slp inet6 smbk5pwd dso | 4 | PKG_SUPPORTED_OPTIONS= bdb dso inet6 sasl slapi slp smbk5pwd | |
5 | PKG_OPTIONS_OPTIONAL_GROUPS+= odbc | 5 | PKG_OPTIONS_OPTIONAL_GROUPS+= odbc | |
6 | PKG_OPTIONS_GROUP.odbc= iodbc unixodbc | 6 | PKG_OPTIONS_GROUP.odbc= iodbc unixodbc | |
7 | PKG_SUGGESTED_OPTIONS= bdb inet6 | 7 | PKG_SUGGESTED_OPTIONS= bdb inet6 | |
8 | 8 | |||
9 | .include "../../mk/bsd.options.mk" | 9 | .include "../../mk/bsd.options.mk" | |
10 | 10 | |||
11 | PLIST_VARS+= slapi | |||
12 | ||||
11 | ### | 13 | ### | |
12 | ### Whether to build with the Berkeley DB based slapd backends. | 14 | ### Whether to build with the Berkeley DB based slapd backends. | |
13 | ### | 15 | ### | |
14 | ### NOTE: that option is enabled, because the openldap server needs | 16 | ### NOTE: that option is enabled, because the openldap server needs | |
15 | ### to have local storage support to work as standalone. | 17 | ### to have local storage support to work as standalone. | |
16 | ### | 18 | ### | |
17 | .if !empty(PKG_OPTIONS:Mbdb) | 19 | .if !empty(PKG_OPTIONS:Mbdb) | |
18 | BDB_ACCEPTED= db4 db5 | 20 | BDB_ACCEPTED= db4 db5 | |
19 | CONFIGURE_ARGS+= --enable-bdb --enable-hdb | 21 | CONFIGURE_ARGS+= --enable-bdb --enable-hdb | |
20 | TEST_TARGET= test | 22 | TEST_TARGET= test | |
21 | # Fix hard-coded support for db4. | 23 | # Fix hard-coded support for db4. | |
22 | # Remove if fixed in future versions of OpenLDAP. | 24 | # Remove if fixed in future versions of OpenLDAP. | |
23 | SUBST_CLASSES= bdb | 25 | SUBST_CLASSES= bdb | |
@@ -91,13 +93,24 @@ PKG_FAIL_REASON+= "smbk5pwd option to op | @@ -91,13 +93,24 @@ PKG_FAIL_REASON+= "smbk5pwd option to op | |||
91 | 93 | |||
92 | ### | 94 | ### | |
93 | ### Enable dynamic module support | 95 | ### Enable dynamic module support | |
94 | ### | 96 | ### | |
95 | .if !empty(PKG_OPTIONS:Mdso) | 97 | .if !empty(PKG_OPTIONS:Mdso) | |
96 | CONFIGURE_ARGS+= --enable-modules | 98 | CONFIGURE_ARGS+= --enable-modules | |
97 | # dynamic linking won't work on Darwin when slapd gets stripped | 99 | # dynamic linking won't work on Darwin when slapd gets stripped | |
98 | .include "../../mk/bsd.prefs.mk" | 100 | .include "../../mk/bsd.prefs.mk" | |
99 | . if ${OPSYS} == "Darwin" | 101 | . if ${OPSYS} == "Darwin" | |
100 | INSTALL_UNSTRIPPED= yes | 102 | INSTALL_UNSTRIPPED= yes | |
101 | . endif | 103 | . endif | |
102 | .include "../../devel/libltdl/buildlink3.mk" | 104 | .include "../../devel/libltdl/buildlink3.mk" | |
103 | .endif | 105 | .endif | |
106 | ||||
107 | ### | |||
108 | ### Enable SLAPI support | |||
109 | ### | |||
110 | .if empty(PKG_OPTIONS:Mslapi) | |||
111 | CONFIGURE_ARGS+= --disable-slapi | |||
112 | .else | |||
113 | CONFIGURE_ARGS+= --enable-slapi | |||
114 | PLIST.slapi= yes | |||
115 | .include "../../devel/libltdl/buildlink3.mk" | |||
116 | .endif |