main/ttyescape: move openrc specifics into subpackage (MR 5364)

Depends on https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/69583
This commit is contained in:
jane400 2024-06-24 10:12:56 +02:00 committed by Clayton Craft
parent c3dfa1cdb4
commit 8d3998b561
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
2 changed files with 7 additions and 2 deletions

View file

@ -1,13 +1,12 @@
# Maintainer: Caleb Connolly <caleb@connolly.tech> # Maintainer: Caleb Connolly <caleb@connolly.tech>
pkgname=ttyescape pkgname=ttyescape
pkgver=1.0.1 pkgver=1.0.1
pkgrel=1 pkgrel=2
pkgdesc="Daemon to allow users to escape to a tty" pkgdesc="Daemon to allow users to escape to a tty"
url="https://gitlab.com/postmarketOS/ttyescape" url="https://gitlab.com/postmarketOS/ttyescape"
arch="noarch" arch="noarch"
license="GPL-2.0" license="GPL-2.0"
depends="hkdm buffyboard terminus-font kbd" depends="hkdm buffyboard terminus-font kbd"
install="$pkgname.post-install"
subpackages="$pkgname-openrc" subpackages="$pkgname-openrc"
source=" source="
https://gitlab.com/postmarketOS/ttyescape/-/archive/$pkgver/ttyescape-$pkgver.tar.gz https://gitlab.com/postmarketOS/ttyescape/-/archive/$pkgver/ttyescape-$pkgver.tar.gz
@ -26,6 +25,12 @@ package() {
"$pkgdir"/etc/conf.d/ttyescape.conf "$pkgdir"/etc/conf.d/ttyescape.conf
} }
openrc() {
install="$subpkgname.post-install"
depends="hkdm-openrc"
default_openrc
}
sha512sums=" sha512sums="
b196cad01d490ac759fc72d58382ffe621b1f33f2ec9794a7937b41bfb9a0f200939d20cd027a2c48d44d095cd8570f332c995ab015d459387d63c7788fd8298 ttyescape-1.0.1.tar.gz b196cad01d490ac759fc72d58382ffe621b1f33f2ec9794a7937b41bfb9a0f200939d20cd027a2c48d44d095cd8570f332c995ab015d459387d63c7788fd8298 ttyescape-1.0.1.tar.gz
ac06c2ae2b3b8404d6ed79a046b175abbeb2360033edcaa22c21e1a61c68913e58013e9200ee5b786eee9020a2c78d1bda09c72d87ea0998bf6eeb71da015a2f etc-conf-d-ttyescape.conf ac06c2ae2b3b8404d6ed79a046b175abbeb2360033edcaa22c21e1a61c68913e58013e9200ee5b786eee9020a2c78d1bda09c72d87ea0998bf6eeb71da015a2f etc-conf-d-ttyescape.conf