From patchwork Mon Jan 28 17:08:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [2/2] Add fff-ra package From: Fabian Blaese X-Patchwork-Id: 1003 Message-Id: <20190128170850.52439-2-fabian@blaese.de> To: franken-dev@freifunk.net Date: Mon, 28 Jan 2019 18:08:50 +0100 Signed-off-by: Fabian Bläse Reviewed-by: Christian Dresel --- src/packages/fff/fff-ra/Makefile | 40 +++++++++++++++++++ .../fff-ra/files/etc/uci-defaults/90-fff-ra | 11 +++++ 2 files changed, 51 insertions(+) create mode 100644 src/packages/fff/fff-ra/Makefile create mode 100644 src/packages/fff/fff-ra/files/etc/uci-defaults/90-fff-ra diff --git a/src/packages/fff/fff-ra/Makefile b/src/packages/fff/fff-ra/Makefile new file mode 100644 index 0000000..64b02ea --- /dev/null +++ b/src/packages/fff/fff-ra/Makefile @@ -0,0 +1,40 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=fff-ra +PKG_VERSION:=1 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/fff-ra + +include $(INCLUDE_DIR)/package.mk + +define Package/fff-ra + SECTION:=base + CATEGORY:=Freifunk + TITLE:=Freifunk-Franken Router Advertisements + URL:=https://www.freifunk-franken.de + DEPENDS:=+odhcpd +endef + +define Package/fff-ra/description + This is the fff-ra for the Freifunk Franken Firmware + It is used to configure odhcpd to send Router Advertisements for use as 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-ra/install + $(CP) ./files/* $(1)/ +endef + +$(eval $(call BuildPackage,fff-ra)) diff --git a/src/packages/fff/fff-ra/files/etc/uci-defaults/90-fff-ra b/src/packages/fff/fff-ra/files/etc/uci-defaults/90-fff-ra new file mode 100644 index 0000000..0a1c446 --- /dev/null +++ b/src/packages/fff/fff-ra/files/etc/uci-defaults/90-fff-ra @@ -0,0 +1,11 @@ +#!/bin/sh + +uci batch <