From 916bbae68ed1cb20b2bef45863cc1288b0b6a07d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 11 Jul 2014 14:06:42 +0200 Subject: [PATCH] Split parts not Gluon-specific out of gluon-autoupdater --- admin/autoupdater/Makefile | 31 +++++++++++++++++++ .../autoupdater}/README.md | 0 .../autoupdater}/files/etc/config/autoupdater | 0 .../autoupdater}/files/usr/sbin/autoupdater | 0 .../autoupdater}/manifest.sample | 0 gluon/gluon-autoupdater/Makefile | 4 +-- 6 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 admin/autoupdater/Makefile rename {gluon/gluon-autoupdater => admin/autoupdater}/README.md (100%) rename {gluon/gluon-autoupdater => admin/autoupdater}/files/etc/config/autoupdater (100%) rename {gluon/gluon-autoupdater => admin/autoupdater}/files/usr/sbin/autoupdater (100%) rename {gluon/gluon-autoupdater => admin/autoupdater}/manifest.sample (100%) diff --git a/admin/autoupdater/Makefile b/admin/autoupdater/Makefile new file mode 100644 index 0000000..8e484e3 --- /dev/null +++ b/admin/autoupdater/Makefile @@ -0,0 +1,31 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=autoupdater +PKG_VERSION:=1 + +PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) + +include $(GLUONDIR)/include/package.mk + +define Package/autoupdater + SECTION:=admin + CATEGORY:=Administration + DEPENDS:=+lua-platform-info +opkg +ecdsautils +!BUSYBOX_CONFIG_SHA512SUM:coreutils-sha512sum + TITLE:=Automatically update firmware +endef + +define Build/Prepare + mkdir -p $(PKG_BUILD_DIR) +endef + +define Build/Configure +endef + +define Build/Compile +endef + +define Package/autoupdater/install + $(CP) ./files/* $(1)/ +endef + +$(eval $(call BuildPackage,autoupdater)) diff --git a/gluon/gluon-autoupdater/README.md b/admin/autoupdater/README.md similarity index 100% rename from gluon/gluon-autoupdater/README.md rename to admin/autoupdater/README.md diff --git a/gluon/gluon-autoupdater/files/etc/config/autoupdater b/admin/autoupdater/files/etc/config/autoupdater similarity index 100% rename from gluon/gluon-autoupdater/files/etc/config/autoupdater rename to admin/autoupdater/files/etc/config/autoupdater diff --git a/gluon/gluon-autoupdater/files/usr/sbin/autoupdater b/admin/autoupdater/files/usr/sbin/autoupdater similarity index 100% rename from gluon/gluon-autoupdater/files/usr/sbin/autoupdater rename to admin/autoupdater/files/usr/sbin/autoupdater diff --git a/gluon/gluon-autoupdater/manifest.sample b/admin/autoupdater/manifest.sample similarity index 100% rename from gluon/gluon-autoupdater/manifest.sample rename to admin/autoupdater/manifest.sample diff --git a/gluon/gluon-autoupdater/Makefile b/gluon/gluon-autoupdater/Makefile index a885a0d..b33bada 100644 --- a/gluon/gluon-autoupdater/Makefile +++ b/gluon/gluon-autoupdater/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gluon-autoupdater -PKG_VERSION:=3 +PKG_VERSION:=4 PKG_RELEASE:=$(GLUON_BRANCH) PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) @@ -11,7 +11,7 @@ include $(GLUONDIR)/include/package.mk define Package/gluon-autoupdater SECTION:=gluon CATEGORY:=Gluon - DEPENDS:=+gluon-core +gluon-cron +opkg +ecdsautils +!BUSYBOX_CONFIG_SHA512SUM:coreutils-sha512sum + DEPENDS:=+gluon-core +gluon-cron +autoupdater TITLE:=Automatically update firmware endef