From dab1efaf088c1d446911270313ce6f7ab32a07c4 Mon Sep 17 00:00:00 2001 From: Eric Fahlgren Date: Tue, 4 Jun 2024 09:52:13 -0700 Subject: [PATCH] owut: add new package owut (OpenWrt Update Tool) is a command line program that gathers information from the various openwrt.org build sites and reports status on various aspects of builds and package availability. It also shows many details about your current configuration and installed packages, allowing it to create, download, verify and install new images containing the user-installed packages. It is written completely in 'ucode', allowing for user customization on the installed device, without the need for compilers and linkers. Documentation is available at https://github.com/efahl/owut Forum thread at https://forum.openwrt.org/t/owut-openwrt-upgrade-tool/200035 Signed-off-by: Eric Fahlgren --- utils/owut/Makefile | 62 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 utils/owut/Makefile diff --git a/utils/owut/Makefile b/utils/owut/Makefile new file mode 100644 index 0000000000..b517a3f494 --- /dev/null +++ b/utils/owut/Makefile @@ -0,0 +1,62 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# Copyright (C) 2024 Eric Fahlgren +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=owut +PKG_VERSION:=2024.06.20 +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_VERSION:=86a5f6f664643d40249dacae149ce17f6dada6d9 +PKG_SOURCE_URL:=https://github.com/efahl/$(PKG_NAME).git +PKG_MIRROR_HASH:=3c4bae24b0ca73d7423c554a40be68c2cf67071a0f9edb3b99673d2136a1b960 + +PKG_MAINTAINER:=Eric Fahlgren +PKG_LICENSE:=GPL-2.0-only + +include $(INCLUDE_DIR)/package.mk + +define Package/owut + SECTION:=utils + CATEGORY:=Utilities + TITLE:=owut - an OpenWrt Upgrade Tool + URL:=http://github.com/efahl/owut + DEPENDS:=+attendedsysupgrade-common \ + +rpcd-mod-file \ + +ucode +ucode-mod-fs +ucode-mod-ubus \ + +ucode-mod-uci +ucode-mod-uclient +ucode-mod-uloop + PKGARCH:=all +endef + +define Package/owut/description + The OpenWrt Upgrade Tool (owut) is a command line program that + checks for new packages, package build breakages, generates + sysupgrade images containing installed packages and installs + images. It is written in ucode for easy end-user customization. + + Documentation is available at https://github.com/efahl/owut +endef + +define Build/Configure +endef + +define Build/Compile +endef + +define Package/owut/install + $(INSTALL_DIR) $(1)/etc/uci-defaults + $(INSTALL_CONF) $(PKG_BUILD_DIR)/files/owut.defaults $(1)/etc/uci-defaults/attendedsysupgrade-owut + + $(INSTALL_DIR) $(1)/usr/share/ucode/utils + $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/argparse.uc $(1)/usr/share/ucode/utils + + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/owut $(1)/usr/bin + + sed -i -e "s/%%VERSION%%/$(PKG_VERSION)-r$(PKG_RELEASE)/" $(1)/usr/bin/owut +endef + +$(eval $(call BuildPackage,owut)) -- 2.30.2