From: Adam Duskett Date: Wed, 30 Oct 2019 00:56:04 +0000 (-0700) Subject: package/openvpn: add pkcs11 support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf8eca8fd3126e8727f12c1daa87be3b63b1419f;p=buildroot.git 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 --- 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