2017-11-12 22:29:35 +00:00
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=auc
|
2019-03-07 23:32:03 +00:00
|
|
|
PKG_VERSION:=0.1.4
|
2019-03-06 14:08:29 +00:00
|
|
|
PKG_RELEASE:=1
|
2017-11-12 22:29:35 +00:00
|
|
|
PKG_LICENSE:=GPL-3.0
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
|
|
|
|
define Package/auc
|
|
|
|
SECTION:=base
|
|
|
|
CATEGORY:=Base system
|
2017-11-12 23:39:30 +00:00
|
|
|
TITLE:=Attended sysUpgrade CLI (EXPERIMENTAL)
|
2017-11-12 22:29:35 +00:00
|
|
|
DEPENDS:=+attendedsysupgrade-common +libblobmsg-json +libubox +libubus \
|
2019-03-06 14:08:29 +00:00
|
|
|
+libuci +libuclient +rpcd-mod-rpcsys +ucert
|
2017-11-12 22:29:35 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/auc/description
|
|
|
|
CLI client for attended-sysupgrade
|
|
|
|
endef
|
|
|
|
|
2018-02-22 23:35:48 +00:00
|
|
|
# set to 1 to enable debugging
|
|
|
|
DEBUG:=1
|
|
|
|
|
|
|
|
EXTRA_CFLAGS += \
|
|
|
|
$(if $(DEBUG),-DAUC_DEBUG=ON)
|
|
|
|
|
2017-11-12 22:29:35 +00:00
|
|
|
define Package/auc/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/auc $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,auc))
|