forked from freifunk-franken/firmware
![Christian Dresel](/assets/img/avatar_default.png)
To use a whitelist easily, it is necessary to make the fastd key update-safe. This patch saves the key to uci fff config and recovers it for use after a firmware upgrade. Signed-off-by: Christian Dresel <fff@chrisi01.de> Reviewed-by: lemmi <lemmi@nerd2nerd.org> Reviewed-by: Robert Langhammer <rlanghammer@web.de> Reviewed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> [bump PKG_RELEASE, rephrase commit message] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
46 lines
860 B
Makefile
46 lines
860 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=fff-fastd
|
|
PKG_RELEASE:=3
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/$(PKG_NAME)
|
|
SECTION:=base
|
|
CATEGORY:=Freifunk
|
|
TITLE:=Freifunk-Franken fastd configuration script
|
|
URL:=http://www.freifunk-franken.de
|
|
DEPENDS:=+@BUSYBOX_CUSTOM \
|
|
+@FASTD_ENABLE_METHOD_NULL \
|
|
+@FASTD_ENABLE_CIPHER_NULL \
|
|
+@FASTD_WITH_STATUS_SOCKET \
|
|
+fastd \
|
|
+fff-random \
|
|
+fff-config
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/description
|
|
This is the fastd for the Freifunk Franken Firmware
|
|
It is used to configure fastd.
|
|
endef
|
|
|
|
define Build/Prepare
|
|
echo "all: " > $(PKG_BUILD_DIR)/Makefile
|
|
endef
|
|
|
|
define Build/Configure
|
|
# nothing
|
|
endef
|
|
|
|
define Build/Compile
|
|
# nothing
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/install
|
|
$(CP) ./files/* $(1)/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|