From bf8eca8fd3126e8727f12c1daa87be3b63b1419f Mon Sep 17 00:00:00 2001 From: Adam Duskett Date: Tue, 29 Oct 2019 17:56:04 -0700 Subject: [PATCH] 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 Signed-off-by: Thomas Petazzoni --- package/openvpn/openvpn.mk | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.30.2