blob: 5c38a406ea90b4ab5b5d3c5a5da94e698eb268a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# $NetBSD: options.mk,v 1.11 2005/02/09 15:38:03 cube Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.openldap
PKG_SUPPORTED_OPTIONS= bdb dynamic kerberos sasl slp
PKG_DEFAULT_OPTIONS+= bdb
.include "../../mk/bsd.options.mk"
###
### Whether to build with the Berkeley DB based slapd backends.
###
### NOTE: that option is enabled, because the openldap server needs
### to have local storage support to work as standalone.
###
.if !empty(PKG_OPTIONS:Mbdb)
BDB_ACCEPTED= db4 # db3?
. include "../../mk/bdb.buildlink3.mk"
.endif
BDB_TYPE?= none
.if ${BDB_TYPE} != "none"
CONFIGURE_ARGS+= --enable-bdb --enable-hdb
. if !empty(PKG_OPTIONS:Mdynamic)
CONFIGURE_ARGS+= --enable-hdb=mod
. endif
.else
CONFIGURE_ARGS+= --disable-bdb --disable-hdb
.endif
###
### Whether to build with dynamically-loadable backend modules. If not
### specified, then link the backend modules statically into slapd.
###
.if !empty(PKG_OPTIONS:Mdynamic)
. if !empty(PKG_OPTIONS:Mbdb)
PLIST_SUBST+= HDB_MODULE=
. else
PLIST_SUBST+= HDB_MODULE="@comment "
. endif
. include "../../devel/libltdl/buildlink3.mk"
CONFIGURE_ARGS+= --enable-modules
PLIST_SUBST+= DYNAMIC_MOD=
.else
PLIST_SUBST+= DYNAMIC_MOD="@comment "
.endif
###
### Kerberos authentication is via SASL.
###
.if !empty(PKG_OPTIONS:Mkerberos)
. if empty(PKG_OPTIONS:Msasl)
PKG_OPTIONS+= sasl
. endif
.endif
###
### SASL authentication (requires SASL2)
###
.if !empty(PKG_OPTIONS:Msasl)
CONFIGURE_ARGS+= --with-cyrus-sasl
BUILDLINK_DEPENDS.cyrus-sasl+= cyrus-sasl>=2.1.15
. include "../../security/cyrus-sasl2/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-cyrus-sasl
.endif
###
### SLP (Service Locator Protocol)
###
.if !empty(PKG_OPTIONS:Mslp)
. include "../../net/openslp/buildlink3.mk"
CONFIGURE_ARGS+= --enable-slp
.endif
|