From patchwork Sun Sep 17 05:38:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [v7,1/4] Update Batman to compat15 From: Christian Dresel X-Patchwork-Id: 481 Message-Id: <1505626685-21623-1-git-send-email-fff@chrisi01.de> To: franken-dev@freifunk.net Cc: Jan Kraus Date: Sun, 17 Sep 2017 07:38:02 +0200 This is not compatible with the old Batman! Signed-off-by: Jan Kraus Signed-off-by: Christian Dresel Signed-off-by: Fabian Bläse Reviewed-by: Fabian Bläse Update in v2: - no File mode change - remove legacy commentary Update in v3: -don't delete the batman-adv-legacy packages Update in v4: - Add batctl to ROUTING feed Update in v5: - nothing Update in v6: - nothing Update in v7: - nothing --- buildscript | 4 +- src/packages/fff/fff-batman-adv/Makefile | 43 ++++++++++++++++++++++ .../files/etc/uci-defaults/93-fff-batman-adv | 22 +++++++++++ .../files/usr/lib/micron.d/fff-batman-adv | 1 + src/packages/fff/fff/Makefile | 2 +- 5 files changed, 69 insertions(+), 3 deletions(-) create mode 100644 src/packages/fff/fff-batman-adv/Makefile create mode 100644 src/packages/fff/fff-batman-adv/files/etc/uci-defaults/93-fff-batman-adv create mode 100644 src/packages/fff/fff-batman-adv/files/usr/lib/micron.d/fff-batman-adv diff --git a/buildscript b/buildscript index 06f88c3..90e48fb 100755 --- a/buildscript +++ b/buildscript @@ -26,7 +26,7 @@ OPENWRT=(openwrt $PACKAGEREV) OPENWRT_PKGS="gpioctl-sysfs libugpio fastd haserl" -## Be careful: FFF uses COMPAT_VERSION 14 at the moment. +## Be careful: FFF uses COMPAT_VERSION 15 as default at the moment. ## See http://www.open-mesh.org/projects/batman-adv/wiki/Compatversion GLUON=(gluon https://github.com/freifunk-gluon/packages.git @@ -37,7 +37,7 @@ GLUON_PKGS="kmod-batman-adv-legacy micrond simple-tc uradvd" ROUTING=(routing https://github.com/openwrt-routing/packages.git dd36dd47bbd75defcb3c517cafe7a19ee425f0af) # lede-17.01 -ROUTING_PKGS="alfred" +ROUTING_PKGS="kmod-batman-adv batctl alfred" FFF=(fff) FFF_PKGS="-a" diff --git a/src/packages/fff/fff-batman-adv/Makefile b/src/packages/fff/fff-batman-adv/Makefile new file mode 100644 index 0000000..3598097 --- /dev/null +++ b/src/packages/fff/fff-batman-adv/Makefile @@ -0,0 +1,43 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=fff-batman-adv +PKG_VERSION:=1 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/fff-batman-adv + +include $(INCLUDE_DIR)/package.mk + +define Package/fff-batman-adv + SECTION:=base + CATEGORY:=Freifunk + TITLE:=Freifunk-Franken batman-adv + URL:=http://www.freifunk-franken.de + DEPENDS:=+kmod-batman-adv \ + +@KMOD_BATMAN_ADV_BATMAN_V \ + +@KMOD_BATMAN_ADV_NC \ + +batctl +endef + +define Package/fff-batman-adv/description + This is the batman-adv for the Freifunk Franken Firmware + It is used to configure batman-adv. +endef + +define Build/Prepare + echo "all: " > $(PKG_BUILD_DIR)/Makefile +endef + +define Build/Configure + # nothing +endef + +define Build/Compile + # nothing +endef + +define Package/fff-batman-adv/install + $(CP) ./files/* $(1)/ +endef + +$(eval $(call BuildPackage,fff-batman-adv)) diff --git a/src/packages/fff/fff-batman-adv/files/etc/uci-defaults/93-fff-batman-adv b/src/packages/fff/fff-batman-adv/files/etc/uci-defaults/93-fff-batman-adv new file mode 100644 index 0000000..9bc3928 --- /dev/null +++ b/src/packages/fff/fff-batman-adv/files/etc/uci-defaults/93-fff-batman-adv @@ -0,0 +1,22 @@ +#!/bin/sh + +uci batch <