[Buildroot] [PATCH 1/5] package/openvpn: add systemd support
Arnout Vandecappelle
arnout at mind.be
Tue Oct 29 23:09:59 UTC 2019
On 28/10/2019 22:24, aduskett at gmail.com wrote:
> From: Adam Duskett <Aduskett at gmail.com>
>
> If the systemd package is selected, add the package to the
> dependency list and explicitly set --enable-systemd.
>
> Signed-off-by: Adam Duskett <Aduskett at 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 4c6956fe12..75dde04493 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_SYSTEMD),y)
> +OPENVPN_DEPENDENCIES += systemd
> +OPENVPN_CONF_OPTS += --enable-systemd
> +else
> +OPENVPN_CONF_OPTS += --disable-systemd
> +endif
> +
> define OPENVPN_INSTALL_TARGET_CMDS
> $(INSTALL) -m 755 $(@D)/src/openvpn/openvpn \
> $(TARGET_DIR)/usr/sbin/openvpn
>
More information about the buildroot
mailing list