1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-16 20:33:58 +02:00
openwrt-packages/utils/attendedsysupgrade-common/Makefile
Kuan-Yi Li ba75322534 treewide: remove COMMITCOUNT
Automatically compute and substitute current values for all
$(COMMITCOUNT) instances as this feature is deprecated and shouldn't be
used.

Based on commit 0c10c224be81:

Change COMMITCOUNT in rules.mk to:
```
COMMITCOUNT = $(if $(DUMP),0,$(shell sed -i "s/\$$(COMMITCOUNT)/$(call commitcount)/" $(CURDIR)/Makefile))
```

then update all affected packages by:
```
for i in $(git -C feeds/packages grep -l COMMITCOUNT | sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
	make package/$i/clean
done
```

Signed-off-by: Kuan-Yi Li <kyli@abysm.org>
2023-06-13 15:55:02 +02:00

59 lines
1.5 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0
include $(TOPDIR)/rules.mk
PKG_NAME:=attendedsysupgrade-common
PKG_VERSION:=8
PKG_LICENSE:=GPL-2.0
include $(INCLUDE_DIR)/package.mk
define Package/attendedsysupgrade-common
SECTION:=utils
CATEGORY:=Base system
TITLE:=Common files neede by attendedsysupgrade packages
MAINTAINER:=Paul Spooren <mail@aparcar.org>
DEPENDS:=+rpcd +rpcd-mod-rpcsys
PKGARCH:=all
endef
define Package/attendedsysupgrade-common/description
Common needed files for attendedsysupgrade tool
Manages dependencies and brings settings used by clients.
UCI options:
* attendedsysupgrade.server.url
URL of compatible upgrade server [1]
* attendedsysupgrade.client.upgrade_packages
Client should request image also if no new release but new packages
upgrade are available.
* attendedsysupgrade.client.advanced_mode
Offer advanced options like editing packages before request and show
additional information.
* attendedsysupgrade.client.auto_search
Tells the client to automattically search for upgrades
[1]: https://github.com/aparcar/asu
endef
define Build/Compile
endef
define Build/Configure
endef
define Package/attendedsysupgrade-common/install
$(INSTALL_DIR) $(1)/etc/uci-defaults/
$(INSTALL_DATA) ./files/attendedsysupgrade.defaults $(1)/etc/uci-defaults/attendedsysupgrade
$(INSTALL_DIR) $(1)/etc/opkg/keys/
$(INSTALL_DATA) ./files/8a11255d14aef6c8 $(1)/etc/opkg/keys/8a11255d14aef6c8
endef
$(eval $(call BuildPackage,attendedsysupgrade-common))