mirror of
https://github.com/openwrt/packages.git
synced 2026-06-17 19:10:30 +04:00
79d6046668
This will activate owut in buildbot builds for targets with large flash by default. This will integrate it into most images by default. The buildbots already build LuCI with luci-app-attendedsysupgrade. This adds ucode-mod-uclient and owut to the image. These are the package sizes for mips_24kc: 29270 bin/packages/mips_24kc/packages/owut-2026.01.13~2526d84b-r1.apk 5449 bin/packages/mips_24kc/base/ucode-mod-uclient-2026.01.31~931bbfeb-r1.apk Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
73 lines
2.1 KiB
Makefile
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-01-13
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=2526d84be888d5c4bcc65e42fc03a7a8ac6276f1
|
|
PKG_SOURCE_URL:=https://github.com/efahl/owut.git
|
|
PKG_MIRROR_HASH:=1bebd070d64614f6c89567e29382fe0f8e15b5afebf21fa1bc724cb4a0a5bd69
|
|
|
|
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))
|