summaryrefslogtreecommitdiff
path: root/net/isc-dhcp4/options.mk
blob: 0125df53418c2f2613d592c2fd6998b49e5bb1b7 (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
# $NetBSD: options.mk,v 1.3 2019/08/27 08:12:01 adam Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.dhcp
PKG_SUPPORTED_OPTIONS+=	inet6 ldap
PKG_SUGGESTED_OPTIONS=	inet6

.include "../../mk/bsd.options.mk"

###
### Enable ipv6 support
###
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+=	--enable-dhcpv6
.else
CONFIGURE_ARGS+=	--disable-dhcpv6
.endif

.if !empty(PKG_OPTIONS:Mldap)
CONFIGURE_ARGS+=	--with-ldap
CONFIGURE_ARGS+=	--with-ldapcrypto
.include "../../databases/openldap-client/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-ldap
.endif