apk: provide csum for static conffiles
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 25 May 2024 14:00:27 +0000 (16:00 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 11 Jun 2024 21:58:17 +0000 (23:58 +0200)
commit93d49529a119a88e9049a868833a0eebb975b37c
tree2ff2d202a286c40516e0414aef8f63f35fd4454e
parent9a52ec4fa0921cacf4c909ed1f542aab8f7502e6
apk: provide csum for static conffiles

For non-overlay configuration we need checksum for config file that
weren't modified by the user. For OPKG in sysupgrade we check the status
file for the Conffiles: entry of every package. this entry contains
checksum for every static file that the package contains.

Provide the same info for APK by creating a conffiles_static file and
parse this file on sysupgrade for non-overlay configurations.

This is also used by the sysupgrade -u option to exclude non-changed
files from the final backup.

Link: https://github.com/openwrt/openwrt/pull/15543
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
include/package-pack.mk
package/base-files/files/sbin/sysupgrade