2014-07-11 14:06:42 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=autoupdater
|
2018-02-19 17:10:44 +01:00
|
|
|
PKG_VERSION:=4
|
2014-07-11 14:06:42 +02:00
|
|
|
|
2015-07-01 22:09:39 +02:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2017-02-27 01:22:48 +01:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2014-07-11 14:06:42 +02:00
|
|
|
|
|
|
|
define Package/autoupdater
|
|
|
|
SECTION:=admin
|
|
|
|
CATEGORY:=Administration
|
2017-02-27 01:22:48 +01:00
|
|
|
DEPENDS:=+libuclient +libecdsautil +libplatforminfo +libuci
|
2014-07-11 14:06:42 +02:00
|
|
|
TITLE:=Automatically update firmware
|
|
|
|
endef
|
|
|
|
|
2017-02-27 01:22:48 +01:00
|
|
|
define Package/autoupdater/conffiles
|
|
|
|
/etc/config/autoupdater
|
2014-07-11 14:06:42 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/autoupdater/install
|
|
|
|
$(CP) ./files/* $(1)/
|
2017-02-27 01:22:48 +01:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/autoupdater $(1)/usr/sbin/
|
2014-07-11 14:06:42 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,autoupdater))
|