aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClayton Craft <clayton@craftyguy.net>2023-01-25 19:04:31 +0000
committerpsykose <alice@ayaya.dev>2023-01-25 20:04:34 +0100
commit9ae22633f467461458c0772e0553a06cca0bfa8d (patch)
tree0db68f4d54e7e773407f7faad71a60fce2786b8a
parent997ca311b99757abe7190c20afe5c7a0f2a714e0 (diff)
downloadaports-9ae22633f467461458c0772e0553a06cca0bfa8d.tar.gz
aports-9ae22633f467461458c0772e0553a06cca0bfa8d.tar.bz2
aports-9ae22633f467461458c0772e0553a06cca0bfa8d.tar.xz
community/elogind: split off busctl into its own subpackage
This tool is useful for interacting with dbus, even without elogind installed/running, and there's no reason to have to install elogind just to use it.
-rw-r--r--community/elogind/APKBUILD18
1 files changed, 16 insertions, 2 deletions
diff --git a/community/elogind/APKBUILD b/community/elogind/APKBUILD
index e8b2b01dc4c..3d3a75c4213 100644
--- a/community/elogind/APKBUILD
+++ b/community/elogind/APKBUILD
@@ -2,12 +2,12 @@
# Maintainer:
pkgname=elogind
pkgver=246.10
-pkgrel=5
+pkgrel=6
pkgdesc="Standalone fork of systemd's elogind"
url="https://github.com/elogind/elogind"
arch="all"
license="GPL-2.0-or-later LGPL-2.1-or-later"
-depends="dbus shadow"
+depends="dbus shadow busctl=$pkgver-r$pkgrel"
options="!check" # Tests fail on builders
makedepends="
acl-dev
@@ -28,6 +28,7 @@ makedepends="
pcre2-dev
"
subpackages="
+ $pkgname-common:_common
$pkgname-dev
$pkgname-doc
$pkgname-lang
@@ -35,6 +36,7 @@ subpackages="
lib$pkgname:libs
$pkgname-zsh-completion
$pkgname-bash-completion
+ busctl:_busctl
"
source="https://github.com/elogind/elogind/archive/v$pkgver/elogind-v$pkgver.tar.gz
elogind.initd
@@ -77,6 +79,18 @@ package() {
install -Dm755 "$srcdir"/elogind.initd "$pkgdir"/etc/init.d/elogind
}
+_common() {
+ pkgdesc="common components for elogind and related tools"
+ depends=
+ amove usr/libexec/elogind/libelogind-shared-"${pkgver%%.*}".so
+}
+
+_busctl() {
+ pkgdesc="tool for monitoring and introspecting the D-Bus bus"
+ depends=
+ amove usr/bin/busctl
+}
+
sha512sums="
9db0f068ed94ec07bab4d764ccb38840af3d05a4b7c9c539721906f5381b509cb9a3cbfb0453a978210d306136368de6162578c600d522416ef2a7ac1b9f348b elogind-v246.10.tar.gz
e73738488e78af099fdbb7c93a411a3e8d69080a93f89c245cb8c6de5fe4cb7fe724687d19e21eb6be52ccc795ec200d9c6e499efb1afd2b27467f7f541a7dd1 elogind.initd