mirror of
https://github.com/openwrt/packages.git
synced 2026-11-29 07:43:20 +04:00
A bunch of quality-of-life fixes, some reduction in code size. efahl/owut@55ed17f819 owut: sort image info in verbose output for ease of comparison efahl/owut@d2aba3d01e owut: remove legacy package version parsing efahl/owut@4d36f39c50 owut: fix whitespace error efahl/owut@3832c7e3b0 owut: remove legacy opkg use efahl/owut@978d818228 files/pre-install.sh: add example to check the backup fits on /boot efahl/owut@3ca5901f3c owut: change bytes to KB in progress monitor efahl/owut@a2dd167017 owut: verify user logged in as root Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
79 lines
2.2 KiB
Makefile
79 lines
2.2 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-11-08
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=55ed17f8199719ad4c4f3ff6881b5648fae1f612
|
|
PKG_SOURCE_URL:=https://github.com/efahl/owut.git
|
|
PKG_MIRROR_HASH:=62564f503624e3cbbcfc5f6777c4a834f84594573c963bbdc4dd3b8c29bdb6e5
|
|
|
|
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:=https://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
|
|
|
|
# Hardcode the package version/release
|
|
# Remove comments and empty lines preserving package's title, copyright and license
|
|
sed -i \
|
|
-e "s/%%VERSION%%/$(PKG_VERSION)-r$(PKG_RELEASE)/" \
|
|
-e '5,$$$${/^[ \t]*\/\//d}' \
|
|
-e '/^$$$$/d' \
|
|
$(1)/usr/bin/owut \
|
|
$(1)/usr/share/ucode/utils/argparse.uc
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,owut))
|