]> Git Repo - buildroot-mgba.git/commitdiff
package/openvpn: add systemd support
authorAdam Duskett <[email protected]>
Mon, 28 Oct 2019 21:24:10 +0000 (14:24 -0700)
committerArnout Vandecappelle (Essensium/Mind) <[email protected]>
Tue, 29 Oct 2019 23:06:11 +0000 (00:06 +0100)
If the systemd package is selected, add the package to the
dependency list and explicitly set --enable-systemd.

Signed-off-by: Adam Duskett <[email protected]>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <[email protected]>
package/openvpn/openvpn.mk

index 4c6956fe12fb7eca7b8ef18d46041c4b34a9a5f3..75dde04493cf030ce0205cd7495460edaa7c3a55 100644 (file)
@@ -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
This page took 0.033596 seconds and 4 git commands to generate.