Files
packages/utils/owut/Makefile
Eric Fahlgren 6021274e04 owut: update to 2026.03.30
Bug fixes:
    efahl/owut@c243c697c7 owut: report only enabled branches and their data
    efahl/owut@f381ad78ec owut: handle true redirects
Enhancements:
    efahl/owut@670907a508 owut: modernize what provides lookups
    efahl/owut@98471fa156 owut: fix color of status message

Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
2026-03-31 10:39:09 +03:00

73 lines
2.1 KiB
Makefile

#
# SPDX-License-Identifier: GPL-2.0-only
# Copyright (C) 2024 Eric Fahlgren <ericfahlgren@gmail.com>
#
include $(TOPDIR)/rules.mk
PKG_NAME:=owut
PKG_SOURCE_DATE:=2026-03-30
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=670907a5081f30013b2cffaeb9af44d617cabc47
PKG_SOURCE_URL:=https://github.com/efahl/owut.git
PKG_MIRROR_HASH:=b4373f71ee984547825c6768ea62fa268cd6e11495b00884aea06ea8067b48f9
PKG_MAINTAINER:=Eric Fahlgren <ericfahlgren@gmail.com>
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
DEFAULT:=y if (BUILDBOT && !SMALL_FLASH)
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://openwrt.org/docs/guide-user/installation/sysupgrade.owut
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/owut/conffiles
/etc/owut.d/
endef
define Package/owut/install
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_CONF) $(PKG_BUILD_DIR)/files/owut.defaults $(1)/etc/uci-defaults/51-attendedsysupgrade-owut
$(INSTALL_DIR) $(1)/etc/owut.d
$(INSTALL_BIN) $(PKG_BUILD_DIR)/files/pre-install.sh $(1)/etc/owut.d/pre-install.sh
$(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
sed -i -e "s/%%VERSION%%/$(PKG_VERSION)-r$(PKG_RELEASE)/" $(1)/usr/share/ucode/utils/argparse.uc
endef
$(eval $(call BuildPackage,owut))