27 lines
588 B
Makefile
27 lines
588 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=autoupdater
|
|
PKG_VERSION:=4
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/autoupdater
|
|
SECTION:=admin
|
|
CATEGORY:=Administration
|
|
DEPENDS:=+libuclient +libecdsautil +libplatforminfo +libuci
|
|
TITLE:=Automatically update firmware
|
|
endef
|
|
|
|
define Package/autoupdater/conffiles
|
|
/etc/config/autoupdater
|
|
endef
|
|
|
|
define Package/autoupdater/install
|
|
$(CP) ./files/* $(1)/
|
|
$(INSTALL_DIR) $(1)/usr/sbin/
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/autoupdater $(1)/usr/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,autoupdater))
|