|
@@ -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
|