From 9fe205c59be863fa8a4a1609ae9099423a908adb Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 3 Feb 2019 19:04:16 +0100 Subject: [PATCH] package/systemd: add optional iptables dependency Signed-off-by: Fabrice Fontaine Acked-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- package/systemd/systemd.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index 15db1969e5..f9df66b039 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -64,6 +64,13 @@ else SYSTEMD_CONF_OPTS += -Delfutils=false endif +ifeq ($(BR2_PACKAGE_IPTABLES),y) +SYSTEMD_DEPENDENCIES += iptables +SYSTEMD_CONF_OPTS += -Dlibiptc=true +else +SYSTEMD_CONF_OPTS += -Dlibiptc=false +endif + # Both options can't be selected at the same time so prefer libidn2 ifeq ($(BR2_PACKAGE_LIBIDN2),y) SYSTEMD_DEPENDENCIES += libidn2 -- 2.30.2