firmware/src/packages/fff/fff-wireguard/Makefile
Adrian Schmutzler f9a68be465 packages/fff: move config scripts to fff-layer3-config
configuregateway and it's gateway.d files represent a specific
functionality that other packages depend on. Thus, it is put into
a package of its own so dependencies can be expressed more properly.

While at, use the chance to get rid of the ambiguous term "gateway"
and rename the script to configure-layer3 and the folders to layer3.d.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Christian Dresel <freifunk@dresel.systems>
2020-12-17 15:38:20 +01:00

42 lines
782 B
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=fff-wireguard
PKG_RELEASE:=4
PKG_BUILD_DIR:=$(BUILD_DIR)/fff-wireguard
include $(INCLUDE_DIR)/package.mk
define Package/fff-wireguard
SECTION:=base
CATEGORY:=Freifunk
TITLE:=Freifunk-Franken wireguard
URL:=https://www.freifunk-franken.de
DEPENDS:=+wireguard \
+fff-network \
+fff-babeld
endef
define Package/fff-wireguard/description
This is the Freifunk Franken Firmware wireguard package.
This package provides configuration scripts for wireguard tunnels.
endef
define Build/Prepare
echo "all: " > $(PKG_BUILD_DIR)/Makefile
endef
define Build/Configure
# nothing
endef
define Build/Compile
# nothing
endef
define Package/fff-wireguard/install
$(CP) ./files/* $(1)/
endef
$(eval $(call BuildPackage,fff-wireguard))