From patchwork Mon Feb 12 18:13:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: packages/fff: add new fff-dhcp package From: Tim Niemeyer X-Patchwork-Id: 785 Message-Id: <20180212181315.11063-1-tim@tn-x.org> To: franken-dev@freifunk.net Date: Mon, 12 Feb 2018 19:13:15 +0100 Signed-off-by: Tim Niemeyer Signed-off-by: Fabian Bläse - configure router advertisements - fix package title - remove unnecessary dhcp config on first boot Acked-by: Adrian Schmutzler Reviewed-by: Robert Langhammer Reviewed-by: Robert Langhammer --- src/packages/fff/fff-dhcp/Makefile | 40 ++++++++++++++++++++++ .../fff-dhcp/files/etc/uci-defaults/90-fff-dhcp | 38 ++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 src/packages/fff/fff-dhcp/Makefile create mode 100644 src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp diff --git a/src/packages/fff/fff-dhcp/Makefile b/src/packages/fff/fff-dhcp/Makefile new file mode 100644 index 0000000..d630412 --- /dev/null +++ b/src/packages/fff/fff-dhcp/Makefile @@ -0,0 +1,40 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=fff-dhcp +PKG_VERSION:=1 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/fff-dhcp + +include $(INCLUDE_DIR)/package.mk + +define Package/fff-dhcp + SECTION:=base + CATEGORY:=Freifunk + TITLE:=Freifunk-Franken dhcp + URL:=http://www.freifunk-franken.de + DEPENDS:=+dnsmasq +endef + +define Package/fff-dhcp/description + This is the fff-dhcp for the Freifunk Franken Firmware + It is used to configure dnsmasq 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-dhcp/install + $(CP) ./files/* $(1)/ +endef + +$(eval $(call BuildPackage,fff-dhcp)) diff --git a/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp new file mode 100644 index 0000000..f4108f7 --- /dev/null +++ b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp @@ -0,0 +1,38 @@ +#!/bin/sh + +uci batch <