summaryrefslogtreecommitdiff
path: root/net/openvpn/options.mk
blob: 8fbf736619142282f027760986b99c6dca17d3f5 (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
# $NetBSD: options.mk,v 1.6 2013/02/10 05:55:07 manu Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.openvpn
PKG_SUPPORTED_OPTIONS=	pkcs11 pam
PKG_SUGGESTED_OPTIONS=

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

# include support for certificates on a stick (or card)
.if !empty(PKG_OPTIONS:Mpkcs11)
.include "../../security/pkcs11-helper/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-pkcs11
.endif

PLIST_VARS+=		pam
.if !empty(PKG_OPTIONS:Mpam)
PLIST.pam=		yes
USE_TOOLS+=		gmake

BUILD_DIRS+=		src/plugins/auth-pam
BUILD_TARGET=		# empty
INSTALL_DIRS=		.
INSTALL_TARGET=		install
.include "../../mk/pam.buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-plugin-auth-pam
.endif