2004-11-29 02:10:04 +01:00
|
|
|
# $NetBSD: options.mk,v 1.8 2004/11/29 01:10:04 tv Exp $
|
2004-07-24 05:32:24 +02:00
|
|
|
|
2004-07-30 23:05:41 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.openldap
|
2004-11-08 19:42:08 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= bdb dynamic kerberos sasl slp
|
|
|
|
PKG_DEFAULT_OPTIONS+= bdb
|
|
|
|
|
2004-07-30 23:05:41 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
2004-07-24 05:32:24 +02:00
|
|
|
|
2004-11-08 19:42:08 +01:00
|
|
|
###
|
|
|
|
### Whether to build with the Berkeley DB based slapd backends.
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mbdb)
|
|
|
|
BDB_ACCEPTED= db4 # db3?
|
|
|
|
. include "../../mk/bdb.buildlink3.mk"
|
2004-11-29 02:10:04 +01:00
|
|
|
.endif
|
|
|
|
BDB_TYPE?= none
|
|
|
|
.if ${BDB_TYPE} != "none"
|
2004-11-08 19:42:08 +01:00
|
|
|
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
|
|
|
|
|
2004-07-24 05:32:24 +02:00
|
|
|
###
|
|
|
|
### Whether to build with dynamically-loadable backend modules. If not
|
|
|
|
### specified, then link the backend modules statically into slapd.
|
|
|
|
###
|
2004-07-30 23:05:41 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mdynamic)
|
2004-10-15 13:54:10 +02:00
|
|
|
. include "../../devel/libltdl/buildlink3.mk"
|
2004-07-24 05:32:24 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-modules
|
|
|
|
PLIST_SUBST+= DYNAMIC_MOD=
|
|
|
|
.else
|
|
|
|
PLIST_SUBST+= DYNAMIC_MOD="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-07-30 23:05:41 +02:00
|
|
|
###
|
|
|
|
### Kerberos authentication is via SASL.
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mkerberos)
|
|
|
|
. if empty(PKG_OPTIONS:Msasl)
|
|
|
|
PKG_OPTIONS+= sasl
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
2004-07-24 05:32:24 +02:00
|
|
|
###
|
2004-09-27 06:11:52 +02:00
|
|
|
### SASL authentication (requires SASL2)
|
2004-07-24 05:32:24 +02:00
|
|
|
###
|
2004-07-30 23:05:41 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Msasl)
|
2004-09-27 06:11:52 +02:00
|
|
|
CONFIGURE_ARGS+= --with-cyrus-sasl
|
|
|
|
BUILDLINK_DEPENDS.cyrus-sasl+= cyrus-sasl>=2.1.15
|
|
|
|
. include "../../security/cyrus-sasl2/buildlink3.mk"
|
2004-07-24 05:32:24 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### SLP (Service Locator Protocol)
|
|
|
|
###
|
2004-07-30 23:05:41 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mslp)
|
2004-07-24 05:32:24 +02:00
|
|
|
. include "../../net/openslp/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-slp
|
|
|
|
.endif
|