Adrian Schmutzler
6f132f858e
In some cases (mostly for one-port devices) IF_WAN was used although not set, resulting in not obviously iptables error messages like - Bad argument `conntrack' - Bad argument `REJECT' Thus, check whether IF_WAN is set to something before using it. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Robert Langhammer <rlanghammer@web.de>
39 lines
674 B
Makefile
39 lines
674 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=fff-gateway
|
|
PKG_RELEASE:=3
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/fff-gateway
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/fff-gateway
|
|
SECTION:=base
|
|
CATEGORY:=Freifunk
|
|
TITLE:= Freifunk-Franken gateway configuration
|
|
URL:=https://www.freifunk-franken.de
|
|
DEPENDS:=+fff-boardname +fff-network
|
|
endef
|
|
|
|
define Package/fff-gateway/description
|
|
This package configures the gateway
|
|
endef
|
|
|
|
define Build/Prepare
|
|
echo "all: " > $(PKG_BUILD_DIR)/Makefile
|
|
endef
|
|
|
|
define Build/Configure
|
|
# nothing
|
|
endef
|
|
|
|
define Build/Compile
|
|
# nothing
|
|
endef
|
|
|
|
define Package/fff-gateway/install
|
|
$(CP) ./files/* $(1)/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,fff-gateway))
|