firmware/src/packages/fff/fff-gateway/Makefile
Fabian Blaese 590dbca7a9 gateway.d: Add scripts for network configuration
This adds scripts to configure vlan and client network.
This also adds sysctl settings to enable forwarding.

Note:
Devices specific properties are sourced from fff-network package.
This creates a dependency on fff-boardname and fff-network.
These properties should be located elsewhere in the future.

Signed-off-by: Fabian Bläse <fabian@blaese.de>
Reviewed-by: Tim Niemeyer <tim@tn-x.org>
Reviewed-by: Robert Langhammer <rlanghammer@web.de>
2019-05-25 19:26:00 +02:00

40 lines
689 B
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=fff-gateway
PKG_VERSION:=1
PKG_RELEASE:=1
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))