2013-09-29 22:38:12 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2013-09-30 00:12:45 +02:00
|
|
|
PKG_NAME:=gluon-autoupdater
|
2014-07-11 14:06:42 +02:00
|
|
|
PKG_VERSION:=4
|
2014-05-14 20:46:31 +02:00
|
|
|
PKG_RELEASE:=$(GLUON_BRANCH)
|
2013-09-29 22:38:12 +02:00
|
|
|
|
|
|
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
|
2014-07-05 02:48:56 +02:00
|
|
|
include $(GLUONDIR)/include/package.mk
|
2013-09-29 22:38:12 +02:00
|
|
|
|
2013-09-30 00:12:45 +02:00
|
|
|
define Package/gluon-autoupdater
|
|
|
|
SECTION:=gluon
|
|
|
|
CATEGORY:=Gluon
|
2014-07-11 14:06:42 +02:00
|
|
|
DEPENDS:=+gluon-core +gluon-cron +autoupdater
|
2013-09-29 22:38:12 +02:00
|
|
|
TITLE:=Automatically update firmware
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
2013-09-30 00:12:45 +02:00
|
|
|
define Package/gluon-autoupdater/install
|
2013-09-29 22:38:12 +02:00
|
|
|
$(CP) ./files/* $(1)/
|
2014-02-06 19:57:39 +01:00
|
|
|
|
2014-05-14 20:46:31 +02:00
|
|
|
if [ '$(GLUON_BRANCH)' ]; then \
|
|
|
|
$(INSTALL_DIR) $(1)/lib/gluon/autoupdater; \
|
|
|
|
echo '$(GLUON_BRANCH)' > $(1)/lib/gluon/autoupdater/default_branch; \
|
|
|
|
fi
|
2013-09-29 22:38:12 +02:00
|
|
|
endef
|
|
|
|
|
2014-07-05 02:48:56 +02:00
|
|
|
define Package/gluon-autoupdater/postinst
|
|
|
|
#!/bin/sh
|
|
|
|
$(call GluonCheckSite,check_site.lua)
|
|
|
|
endef
|
|
|
|
|
2013-09-30 00:12:45 +02:00
|
|
|
$(eval $(call BuildPackage,gluon-autoupdater))
|