blob: b818a96881a791cdbfe98fe5c031c9921464a681 (
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
# $NetBSD: options.mk,v 1.17 2013/05/04 18:16:37 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.openldap-server
PKG_SUPPORTED_OPTIONS= bdb dso inet6 sasl slapi slp smbk5pwd
PKG_OPTIONS_OPTIONAL_GROUPS+= odbc
PKG_OPTIONS_GROUP.odbc= iodbc unixodbc
PKG_SUGGESTED_OPTIONS= bdb inet6
.include "../../mk/bsd.options.mk"
PLIST_VARS+= slapi
###
### 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 db5
CONFIGURE_ARGS+= --enable-bdb --enable-hdb
TEST_TARGET= test
# Fix hard-coded support for db4.
# Remove if fixed in future versions of OpenLDAP.
SUBST_CLASSES= bdb
SUBST_MESSAGE.bdb= Fixing bdb library.
SUBST_STAGE.bdb= pre-configure
SUBST_FILES.bdb= ${WRKSRC}/configure
SUBST_SED.bdb= -e 's,-ldb4,-l${BDB_TYPE},g'
SUBST_SED.bdb+= -e 's,ol_cv_bdb_major = 4,ol_cv_bdb_major > 3,g'
. include "../../mk/bdb.buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-bdb --disable-hdb
.endif
###
### Whether to build with iODBC to enable SQL based slapd backends
###
.if !empty(PKG_OPTIONS:Miodbc)
. include "../../databases/iodbc/buildlink3.mk"
CONFIGURE_ARGS+= --enable-sql
.endif
###
### Whether to build with unixODBC to enable SQL based slapd backends
###
.if !empty(PKG_OPTIONS:Munixodbc)
. include "../../databases/unixodbc/buildlink3.mk"
. include "../../devel/libltdl/buildlink3.mk"
CONFIGURE_ARGS+= --enable-sql
.endif
.if empty(PKG_OPTIONS:Miodbc) && empty(PKG_OPTIONS:Munixodbc)
CONFIGURE_ARGS+= --disable-sql
.endif
###
### SASL authentication (requires SASL2)
###
.if !empty(PKG_OPTIONS:Msasl)
CONFIGURE_ARGS+= --with-cyrus-sasl
CONFIGURE_ARGS+= --enable-spasswd
BUILDLINK_API_DEPENDS.cyrus-sasl+= cyrus-sasl>=2.1.15
. include "../../security/cyrus-sasl/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
###
### IPv6 support
###
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
###
### smbk5pwd support (sync samba and kerberos passwords on password changes)
###
.if !empty(PKG_OPTIONS:Msmbk5pwd)
PKG_FAIL_REASON+= "smbk5pwd option to openldap-server is now " \
"available through the openldap-smbk5pwd package"
.endif
###
### Enable dynamic module support
###
.if !empty(PKG_OPTIONS:Mdso)
CONFIGURE_ARGS+= --enable-modules
# dynamic linking won't work on Darwin when slapd gets stripped
.include "../../mk/bsd.prefs.mk"
. if ${OPSYS} == "Darwin"
INSTALL_UNSTRIPPED= yes
. endif
.include "../../devel/libltdl/buildlink3.mk"
.endif
###
### Enable SLAPI support
###
.if empty(PKG_OPTIONS:Mslapi)
CONFIGURE_ARGS+= --disable-slapi
.else
CONFIGURE_ARGS+= --enable-slapi
PLIST.slapi= yes
.include "../../devel/libltdl/buildlink3.mk"
.endif
|