include/package-pack: add support for postrm with APK
authorRobert Marko <robimarko@gmail.com>
Thu, 21 Nov 2024 13:34:03 +0000 (14:34 +0100)
committerRobert Marko <robimarko@gmail.com>
Thu, 21 Nov 2024 16:20:43 +0000 (17:20 +0100)
commitfc2ba101089117d72903f9464269da73763ded42
tree614173412e3573e424d516649669596bfde1cebc
parent5b6f8353fe2af6c270a30dc8c38791cf03fd265d
include/package-pack: add support for postrm with APK

Currently, postrm scripts are not being executed when package is removed
with APK since they are not being included at all.

So, lets use APK-s support for post-deinstall scripts and ship our postrm
scripts if packages define them.

Fixes: d788ab376f85 ("build: add APK package build capabilities")
Link: https://github.com/openwrt/openwrt/pull/17023
Signed-off-by: Robert Marko <robimarko@gmail.com>
include/package-pack.mk