From 7a9b5a205dc5aa65f3d758139456fc3b0d0844bb Mon Sep 17 00:00:00 2001 From: Aster Boese Date: Mon, 30 Sep 2024 17:37:19 -0400 Subject: [PATCH] main/watchdog-kick: move openrc scripts to subpackage (MR 5688) --- main/watchdog-kick/APKBUILD | 12 ++++++++++-- ...ost-install => watchdog-kick-openrc.post-install} | 0 2 files changed, 10 insertions(+), 2 deletions(-) rename main/watchdog-kick/{watchdog-kick.post-install => watchdog-kick-openrc.post-install} (100%) diff --git a/main/watchdog-kick/APKBUILD b/main/watchdog-kick/APKBUILD index d40311210..c54265f33 100644 --- a/main/watchdog-kick/APKBUILD +++ b/main/watchdog-kick/APKBUILD @@ -1,12 +1,12 @@ pkgname=watchdog-kick pkgver=0.1 -pkgrel=1 +pkgrel=2 pkgdesc="Periodically kich watchdogs" url="https://postmarketos.org" arch="noarch" license="GPL-2.0-or-later" -install="$pkgname.post-install" options="!check" +subpackages="$pkgname-openrc" source=" watchdog-kick.init watchdog-kick @@ -18,5 +18,13 @@ package() { install -Dm755 "$srcdir/watchdog-kick.init" \ "$pkgdir/etc/init.d/watchdog-kick" } + +openrc() { + install_if="$pkgname=$pkgver-r$pkgrel openrc" + install="$subpkgname.post-install" + + mkdir -p "$subpkgdir" +} + sha512sums="de1608d98a9132cf97459698ec5ead22947ecb938fc0f8fdb7684566c3466afe99303d954598f548dc27cd677f0172ffa3f21c88d84c5c7a288c45e4a11fca06 watchdog-kick.init 6c4d60db6e1b2b231ba6cc5a046be5436f348e3da49927bb98f89f1194a49ca07402cfa4a389936ce34936f4cfe15093f1c2a27b72375096475b98827e8a6ef5 watchdog-kick" diff --git a/main/watchdog-kick/watchdog-kick.post-install b/main/watchdog-kick/watchdog-kick-openrc.post-install similarity index 100% rename from main/watchdog-kick/watchdog-kick.post-install rename to main/watchdog-kick/watchdog-kick-openrc.post-install