mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 13:26:17 +04:00
Bug fixes:
efahl/owut@c6e75716d1 init: fix typo in file name
efahl/owut@7f97ab67c2 examples: improve docs for writing pre-install scripts
Enhancements:
efahl/owut@93f2b06b88 owut: utilize upstream limits instead of hardcoded values
efahl/owut@7a45c412fc owut: improve usability of 'dump' option
efahl/owut@35720e369a owut: improve age reporting
Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
72 lines
2.0 KiB
Makefile
72 lines
2.0 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:=2025-08-15
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=93f2b06b8882e7543d836bac97976d190ac8b22d
|
|
PKG_SOURCE_URL:=https://github.com/efahl/owut.git
|
|
PKG_MIRROR_HASH:=91cf14ae1ff48d32ceecac1db6e90fb7fe69c61acf2f19bb8fc9c1dbc8a0f701
|
|
|
|
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
|
|
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))
|