From 2850a783ee602a8b2f06b126ffcc2f96653359df Mon Sep 17 00:00:00 2001
From: Stefan Laudemann <thisco@webcake.de>
Date: Tue, 3 Feb 2015 00:37:14 +0100
Subject: [PATCH] Renames wr1043ndv2-2-stable package for a broader use.

The package by now was rather aimed to target on the migration of
TP-Link TL-WR1043NDv2 devices from a pseudo-stable firmware to the
officially stable version 0.6.0.

However, as it might become necessary to change other configuration
values from AA to be compliant with their corresponding values in BB
independent from the particular hardware-type, the package got renamed
to reflect this use. Moreover, as there only is the need to migrate
TP-Link TL-WR1043NDv2 devices once, with the new name the package can be
reused for the migration to Chaos Calmer by adapting the included
scripts.
---
 ffpb/ffpb-openwrt-migration-tools/Makefile    | 42 +++++++++++++++
 .../90-tlwr1043ndv2-autoupdater-to-stable}    |  0
 .../Makefile                                  | 51 -------------------
 3 files changed, 42 insertions(+), 51 deletions(-)
 create mode 100644 ffpb/ffpb-openwrt-migration-tools/Makefile
 rename ffpb/{ffpb-tl-wr1043ndv2-autoupdater-2-stable/files/etc/uci-defaults/90-tl-wr1043nd-v2-autoupdater-to-stable => ffpb-openwrt-migration-tools/files/etc/uci-defaults/90-tlwr1043ndv2-autoupdater-to-stable} (100%)
 delete mode 100644 ffpb/ffpb-tl-wr1043ndv2-autoupdater-2-stable/Makefile

diff --git a/ffpb/ffpb-openwrt-migration-tools/Makefile b/ffpb/ffpb-openwrt-migration-tools/Makefile
new file mode 100644
index 0000000..7c4619f
--- /dev/null
+++ b/ffpb/ffpb-openwrt-migration-tools/Makefile
@@ -0,0 +1,42 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=ffpb-openwrt-migration-tools
+PKG_VERSION:=1
+PKG_RELEASE:=$(GLUON_VERSION).$(GLUON_SITE_CODE)-$(GLUON_RELEASE).$(GLUON_CONFIG_VERSION)
+
+PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/ffpb-openwrt-migration-tools
+  SECTION:=ffpb
+  CATEGORY:=Gluon
+  TITLE:=Toolset of scripts that support the migration from one version of OpenWRT to another.
+  DEPENDS:=+gluon-core +busybox
+  MAINTAINER:=Freifunk Paderborn <maschinenraum@paderborn.freifunk.net>
+  URL:=https://git.c3pb.de/freifunk-pb/ffpb-packages
+  SOURCE:=git@git.c3pb.de:freifunk-pb/ffpb-packages.git
+endef
+
+define Package/ffpb-openwrt-migration-tools/description
+	A collection of scripts that fix and cleanup configurations on a node
+	when migrating the Gluon base-version of OpenWRT from one major release
+	to another.
+endef
+
+define Build/Prepare
+	mkdir -p $(PKG_BUILD_DIR)
+endef
+
+define Build/Configure
+endef
+
+define Build/Compile
+endef
+
+define Package/ffpb-openwrt-migration-tools/install
+	$(INSTALL_DIR) $(1)/etc/uci-defaults/
+	$(INSTALL_BIN) ./files/etc/uci-defaults/90-tlwr1043ndv2-autoupdater-to-stable $(1)/etc/uci-defaults/
+endef
+
+$(eval $(call BuildPackage,ffpb-openwrt-migration-tools))
diff --git a/ffpb/ffpb-tl-wr1043ndv2-autoupdater-2-stable/files/etc/uci-defaults/90-tl-wr1043nd-v2-autoupdater-to-stable b/ffpb/ffpb-openwrt-migration-tools/files/etc/uci-defaults/90-tlwr1043ndv2-autoupdater-to-stable
similarity index 100%
rename from ffpb/ffpb-tl-wr1043ndv2-autoupdater-2-stable/files/etc/uci-defaults/90-tl-wr1043nd-v2-autoupdater-to-stable
rename to ffpb/ffpb-openwrt-migration-tools/files/etc/uci-defaults/90-tlwr1043ndv2-autoupdater-to-stable
diff --git a/ffpb/ffpb-tl-wr1043ndv2-autoupdater-2-stable/Makefile b/ffpb/ffpb-tl-wr1043ndv2-autoupdater-2-stable/Makefile
deleted file mode 100644
index b37a986..0000000
--- a/ffpb/ffpb-tl-wr1043ndv2-autoupdater-2-stable/Makefile
+++ /dev/null
@@ -1,51 +0,0 @@
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:=ffpb-tl-wr1043ndv2-autoupdater-2-stable
-PKG_VERSION:=1
-PKG_RELEASE:=$(GLUON_VERSION).$(GLUON_SITE_CODE)-$(GLUON_RELEASE).$(GLUON_CONFIG_VERSION)
-
-PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
-
-include $(INCLUDE_DIR)/package.mk
-
-define Package/ffpb-tl-wr1043ndv2-autoupdater-2-stable
-  SECTION:=ffpb
-  CATEGORY:=Gluon
-  TITLE:=One-Time TP-Link TL-WR1043NDv2 Autoupdater Branch Change
-  DEPENDS:=+gluon-core +busybox
-  MAINTAINER:=Freifunk Paderborn <maschinenraum@paderborn.freifunk.net>
-  URL:=https://git.c3pb.de/freifunk-pb/ffpb-packages
-  SOURCE:=git@git.c3pb.de:freifunk-pb/ffpb-packages.git
-endef
-
-define Package/ffpb-tl-wr1043ndv2-autoupdater-2-stable/description
-	We supported the TP-Link TL-WR1043NDv2 hardware already in an early
-	phase in the development of Gluon 2014.4 by building custom firmware
-	and published them in the testing branch (and later also in the
-	stable branch). As a device with quite a lot of CPU-Power, it is used
-	in some rather crowded environments in bars and stores. It is unclear,
-	though, which update stream got configured by the users in this scenario.
-
-	As this particular piece of hardware is now officially supported by
-	Gluon with version 2014.4, we are going to set the autoupdater branch
-	to "stable" on ALL of these devices, such that development can be cont-
-	inued in the testing & experimental branches without interfering the
-	use of the nodes at our "early adopters".
-endef
-
-define Build/Prepare
-	mkdir -p $(PKG_BUILD_DIR)
-endef
-
-define Build/Configure
-endef
-
-define Build/Compile
-endef
-
-define Package/ffpb-tl-wr1043ndv2-autoupdater-2-stable/install
-	$(INSTALL_DIR) $(1)/etc/uci-defaults/
-	$(INSTALL_BIN) ./files/etc/uci-defaults/90-tl-wr1043nd-v2-autoupdater-to-stable $(1)/etc/uci-defaults/
-endef
-
-$(eval $(call BuildPackage,ffpb-tl-wr1043ndv2-autoupdater-2-stable))
-- 
GitLab