aboutsummaryrefslogtreecommitdiff
path: root/package/openvpn
diff options
context:
space:
mode:
authorGravatar Adam Duskett <Aduskett@gmail.com>2019-10-29 17:56:04 -0700
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2020-04-12 23:35:34 +0200
commitbf8eca8fd3126e8727f12c1daa87be3b63b1419f (patch)
tree66af2cda9fca31176fb6d893456a2209941b27a3 /package/openvpn
parentdee4fbdf5a777aab2fb3d47128908879002aae21 (diff)
downloadbuildroot-bf8eca8fd3126e8727f12c1daa87be3b63b1419f.tar.gz
buildroot-bf8eca8fd3126e8727f12c1daa87be3b63b1419f.tar.bz2
package/openvpn: add pkcs11 support
If the pkcs11-helper package is selected, add the package to the dependency list and explicitly set --enable-pkcs11. Signed-off-by: Adam Duskett <Aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/openvpn')
-rw-r--r--package/openvpn/openvpn.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/openvpn/openvpn.mk b/package/openvpn/openvpn.mk
index 64f459eee3..6c0f70ce89 100644
--- a/package/openvpn/openvpn.mk
+++ b/package/openvpn/openvpn.mk
@@ -51,6 +51,13 @@ else
OPENVPN_CONF_OPTS += --disable-plugin-auth-pam
endif
+ifeq ($(BR2_PACKAGE_PKCS11_HELPER),y)
+OPENVPN_DEPENDENCIES += pkcs11-helper
+OPENVPN_CONF_OPTS += --enable-pkcs11
+else
+OPENVPN_CONF_OPTS += --disable-pkcs11
+endif
+
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
OPENVPN_DEPENDENCIES += systemd
OPENVPN_CONF_OPTS += --enable-systemd