gluon-packages/gluon/gluon-autoupdater/Makefile

38 lines
782 B
Makefile
Raw Normal View History

include $(TOPDIR)/rules.mk
2013-09-30 00:12:45 +02:00
PKG_NAME:=gluon-autoupdater
PKG_VERSION:=2
PKG_RELEASE:=$(GLUON_BRANCH)
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
2013-09-30 00:12:45 +02:00
define Package/gluon-autoupdater
SECTION:=gluon
CATEGORY:=Gluon
DEPENDS:=+gluon-core +gluon-cron +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
2013-09-30 00:12:45 +02:00
define Package/gluon-autoupdater/install
$(CP) ./files/* $(1)/
2014-02-06 19:57:39 +01:00
if [ '$(GLUON_BRANCH)' ]; then \
$(INSTALL_DIR) $(1)/lib/gluon/autoupdater; \
echo '$(GLUON_BRANCH)' > $(1)/lib/gluon/autoupdater/default_branch; \
fi
endef
2013-09-30 00:12:45 +02:00
$(eval $(call BuildPackage,gluon-autoupdater))