* use full package list when checking for upgrades * verify sha256sums and usign signature of sha256sums.sig * introduce '-c' option to only check if system is up-to-date * introduce '-F' option to ignore the signature verification result * return -1 on locally caused and -2 on server-side errors * don't include locally appended attributes in debug output of a server reply * output bug report note on 412 target not found * use content-length header instead of filesize field in JSON content * suppress duplicate error messages * drop unused attributes * make debug messages optional at compile-time Signed-off-by: Daniel Golle <daniel@makrotopia.org>
38 lines
844 B
Makefile
38 lines
844 B
Makefile
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=auc
|
|
PKG_VERSION:=0.0.9
|
|
PKG_RELEASE:=1
|
|
PKG_LICENSE:=GPL-3.0
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/auc
|
|
SECTION:=base
|
|
CATEGORY:=Base system
|
|
TITLE:=Attended sysUpgrade CLI (EXPERIMENTAL)
|
|
DEPENDS:=+attendedsysupgrade-common +libblobmsg-json +libubox +libubus \
|
|
+libuci +libuclient +rpcd-mod-rpcsys
|
|
endef
|
|
|
|
define Package/auc/description
|
|
CLI client for attended-sysupgrade
|
|
endef
|
|
|
|
# set to 1 to enable debugging
|
|
DEBUG:=1
|
|
|
|
EXTRA_CFLAGS += \
|
|
$(if $(DEBUG),-DAUC_DEBUG=ON)
|
|
|
|
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))
|