2008-09-22 10:46:32 +02:00
|
|
|
# $NetBSD: options.mk,v 1.9 2008/09/22 08:46:32 tron Exp $
|
2006-05-31 20:18:36 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.openldap-server
|
2007-08-24 21:06:50 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= bdb kerberos sasl slp inet6 smbk5pwd
|
2006-05-31 20:18:36 +02:00
|
|
|
PKG_OPTIONS_OPTIONAL_GROUPS+= odbc
|
|
|
|
PKG_OPTIONS_GROUP.odbc= iodbc unixodbc
|
|
|
|
PKG_SUGGESTED_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)
|
2008-09-22 10:46:32 +02:00
|
|
|
# "slapd" locks up when used with Berkeley DB 4.7.x. We therefore use the
|
|
|
|
# "db46" package with version 4.6.x of Berkeley DB.
|
|
|
|
. include "../../databases/db46/buildlink3.mk"
|
2006-05-31 20:18:36 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-bdb --enable-hdb
|
2006-06-08 17:30:03 +02:00
|
|
|
TEST_TARGET= test
|
2006-05-31 20:18:36 +02:00
|
|
|
.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
|
|
|
|
|
|
|
|
###
|
|
|
|
### 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
|
2007-03-15 15:28:57 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-spasswd
|
2006-05-31 20:18:36 +02:00
|
|
|
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
|
2007-08-24 21:06:50 +02:00
|
|
|
|
|
|
|
###
|
|
|
|
### smbk5pwd support (sync samba and kerberos passwords on password changes)
|
|
|
|
###
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Msmbk5pwd)
|
|
|
|
CONFIGURE_ARGS+= --enable-smbk5pwd
|
|
|
|
LDFLAGS+=-ldes
|
|
|
|
LDFLAGS+=-lkrb5
|
|
|
|
LDFLAGS+=-lkadm5srv
|
|
|
|
LDFLAGS+=-lhdb
|
|
|
|
. include "../../mk/krb5.buildlink3.mk"
|
2007-08-28 16:33:27 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-smbk5pwd
|
2007-08-24 21:06:50 +02:00
|
|
|
.endif
|