aboutsummaryrefslogtreecommitdiff
path: root/package/openvpn
diff options
context:
space:
mode:
authorGravatar Adam Duskett <Aduskett@gmail.com>2019-10-28 14:24:11 -0700
committerGravatar Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2019-10-30 00:06:32 +0100
commite87cb52b5573e030bf4aa0ce58510c765aa935dd (patch)
treef7710b084b0534fb3f0db7cb7242a322ebc4bdde /package/openvpn
parent62264233b2705baa075797922256fc7940af502a (diff)
downloadbuildroot-e87cb52b5573e030bf4aa0ce58510c765aa935dd.tar.gz
buildroot-e87cb52b5573e030bf4aa0ce58510c765aa935dd.tar.bz2
package/openvpn: add libselinux support
If the libselinux package is selected, add the package to the dependency list and explicitly set --enable-selinux. Signed-off-by: Adam Duskett <Aduskett@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
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 75dde04493..277b072deb 100644
--- a/package/openvpn/openvpn.mk
+++ b/package/openvpn/openvpn.mk
@@ -38,6 +38,13 @@ else
OPENVPN_CONF_OPTS += --disable-lzo
endif
+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
+OPENVPN_DEPENDENCIES += libselinux
+OPENVPN_CONF_OPTS += --enable-selinux
+else
+OPENVPN_CONF_OPTS += --disable-selinux
+endif
+
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
OPENVPN_DEPENDENCIES += systemd
OPENVPN_CONF_OPTS += --enable-systemd