main/watchdog-kick: move openrc scripts to subpackage (MR 5688)

This commit is contained in:
Aster Boese 2024-09-30 17:37:19 -04:00 committed by Clayton Craft
parent 48f6c9656b
commit 7a9b5a205d
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
2 changed files with 10 additions and 2 deletions

View file

@ -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"