aboutsummaryrefslogtreecommitdiff
path: root/package/openvpn
diff options
context:
space:
mode:
authorGravatar Adam Duskett <Aduskett@gmail.com>2019-10-29 17:56:02 -0700
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2020-01-02 09:28:25 +0100
commite6acd76584d6841543a57c60a28314b8a86a8dd9 (patch)
tree2d93fe23453200739b03ca1bba6eff3948e7dfe0 /package/openvpn
parent4485a75859fbae99090b065ddd7c088a65571d37 (diff)
downloadbuildroot-e6acd76584d6841543a57c60a28314b8a86a8dd9.tar.gz
buildroot-e6acd76584d6841543a57c60a28314b8a86a8dd9.tar.bz2
package/openvpn: enable pam plugin support
If the linux-pam package is selected, add the package to the dependency list and explicitly set --enable-plugin-auth-pam. 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.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/openvpn/openvpn.mk b/package/openvpn/openvpn.mk
index ce86b5eff7..64f459eee3 100644
--- a/package/openvpn/openvpn.mk
+++ b/package/openvpn/openvpn.mk
@@ -11,7 +11,6 @@ OPENVPN_DEPENDENCIES = host-pkgconf openssl
OPENVPN_LICENSE = GPL-2.0
OPENVPN_LICENSE_FILES = COPYRIGHT.GPL
OPENVPN_CONF_OPTS = \
- --disable-plugin-auth-pam \
--enable-iproute2 \
--with-crypto-library=openssl \
$(if $(BR2_STATIC_LIBS),--disable-plugins)
@@ -45,6 +44,13 @@ else
OPENVPN_CONF_OPTS += --disable-selinux
endif
+ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
+OPENVPN_DEPENDENCIES += linux-pam
+OPENVPN_CONF_OPTS += --enable-plugin-auth-pam
+else
+OPENVPN_CONF_OPTS += --disable-plugin-auth-pam
+endif
+
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
OPENVPN_DEPENDENCIES += systemd
OPENVPN_CONF_OPTS += --enable-systemd