gluon/package/gluon-autoupdater/Makefile

49 lines
1.1 KiB
Makefile
Raw Normal View History

include $(TOPDIR)/rules.mk
2013-09-29 22:12:45 +00:00
PKG_NAME:=gluon-autoupdater
PKG_VERSION:=4
PKG_RELEASE:=$(GLUON_BRANCH)
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
PKG_BUILD_DEPENDS := respondd
2014-07-05 00:48:56 +00:00
include $(GLUONDIR)/include/package.mk
2016-07-10 18:08:44 +00:00
2013-09-29 22:12:45 +00:00
define Package/gluon-autoupdater
SECTION:=gluon
CATEGORY:=Gluon
DEPENDS:=+gluon-core +libgluonutil +micrond +autoupdater
TITLE:=Automatically update firmware
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
2016-07-10 18:08:44 +00:00
define Build/Compile
$(call Build/Compile/Default)
$(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
endef
2013-09-29 22:12:45 +00:00
define Package/gluon-autoupdater/install
$(CP) ./files/* $(1)/
2016-07-10 18:08:44 +00:00
$(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
2014-02-06 18:57:39 +00:00
$(INSTALL_DIR) $(1)/lib/gluon/respondd
$(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/autoupdater.so
if [ '$(GLUON_BRANCH)' ]; then \
$(INSTALL_DIR) $(1)/lib/gluon/autoupdater; \
echo '$(GLUON_BRANCH)' > $(1)/lib/gluon/autoupdater/default_branch; \
fi
endef
2014-07-05 00:48:56 +00:00
define Package/gluon-autoupdater/postinst
#!/bin/sh
$(call GluonCheckSite,check_site.lua)
endef
2013-09-29 22:12:45 +00:00
$(eval $(call BuildPackage,gluon-autoupdater))