diff mbox series

[2/5] package/openvpn: add libselinux support

Message ID 20191028212414.123964-2-aduskett@gmail.com
State Accepted
Headers show
Series [1/5] package/openvpn: add systemd support | expand

Commit Message

Adam Duskett Oct. 28, 2019, 9:24 p.m. UTC
From: Adam Duskett <Aduskett@gmail.com>

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>
---
 package/openvpn/openvpn.mk | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Arnout Vandecappelle Oct. 29, 2019, 11:10 p.m. UTC | #1
On 28/10/2019 22:24, aduskett@gmail.com wrote:
> From: Adam Duskett <Aduskett@gmail.com>
> 
> 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>

 Applied to master, thanks.

 Regards,
 Arnout

> ---
>  package/openvpn/openvpn.mk | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> 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
>
diff mbox series

Patch

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