aports/main/dbus/APKBUILD
Sertonix 6bd45b53fb */*: remove --no-rebuild from meson test
meson 1.7.0 and later don't include test build targets in the default
build target. With --no-rebuild the test targets aren't build at all.
Removing --no-rebuild shouldn't cause any false rebuilds since the files
aren't changed between the build() and check() step.

Fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/16891
Ref https://github.com/mesonbuild/meson/pull/10413
2025-05-09 20:48:14 +00:00

101 lines
2.8 KiB
Text

# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dbus
pkgver=1.16.2
pkgrel=1
pkgdesc="Freedesktop.org message bus system"
url="https://www.freedesktop.org/Software/dbus"
arch="all"
license="AFL-2.1 OR GPL-2.0-or-later"
makedepends="
expat-dev
glib-dev
libsm-dev
libx11-dev
meson
xmlto
"
pkggroups="messagebus"
install="$pkgname.pre-install $pkgname.post-install"
triggers="$pkgname.trigger=/usr/share/dbus-1/system.d"
subpackages="
$pkgname-dev
$pkgname-doc
$pkgname-libs
$pkgname-x11
$pkgname-openrc
$pkgname-daemon-launch-helper:launchhelper
"
source="https://dbus.freedesktop.org/releases/dbus/dbus-$pkgver.tar.xz
$pkgname.initd
$pkgname.confd
$pkgname-user.initd
$pkgname-user.confd
README.alpine
"
# secfixes:
# 1.14.4-r0:
# - CVE-2022-42010
# - CVE-2022-42011
# - CVE-2022-42012
# 1.12.18-r0:
# - CVE-2020-12049
# 1.12.16-r0:
# - CVE-2019-12749
build() {
abuild-meson \
-Dsystem_pid_file=/run/dbus/dbus.pid \
output .
meson compile -C output
}
check() {
meson test --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
install -Dm644 "$srcdir"/README.alpine -t "$pkgdir"/usr/share/doc/$pkgname
install -Dm755 "$srcdir"/dbus.initd "$pkgdir"/etc/init.d/dbus
install -Dm644 "$srcdir"/dbus.confd "$pkgdir"/etc/conf.d/dbus
install -Dm755 "$srcdir"/dbus-user.initd "$pkgdir"/etc/user/init.d/dbus
install -Dm644 "$srcdir"/dbus-user.confd "$pkgdir"/etc/user/conf.d/dbus
# can't install tmpfs
rm -r "$pkgdir"/run
}
libs() {
pkgdesc="D-BUS access libraries"
replaces="dbus"
amove usr/lib/lib*.so.*
}
x11() {
pkgdesc="X11 add-ons for D-BUS"
depends="dbus=$pkgver-r$pkgrel"
amove usr/bin/dbus-launch
}
launchhelper() {
pkgdesc="DBus SUID launch helper for autospawning"
install_if="$pkgname=$pkgver-r$pkgrel"
amove usr/libexec/dbus-daemon-launch-helper
chmod 4750 "$subpkgdir"/usr/libexec/dbus-daemon-launch-helper
chown root:messagebus "$subpkgdir"/usr/libexec/dbus-daemon-launch-helper
}
sha512sums="
5c26f52d85984bb9ae1dde8d7e73921eacbdf020a61ff15f00a4c240cb38a121553ee04bd66e62b28425ff9bc50f4f5e15135166573ac0888332a01a0db1faa2 dbus-1.16.2.tar.xz
ba871572fbac54ea4599a1f81653797c020302fc97876509a763693979787e16ad42252d18e02941296f7853712b003e0f7565977c1cfce581de2b16efc82897 dbus.initd
ea5df31eab4635da8af241c29878ca59927479f7bef71252416806d1504023da3c951a61bd6150fab0e1dbdde5ccfd91616db6043875b7babdf2bada873450dc dbus.confd
5d0ed444fd6f76f76d3e2be14a5c08c7db7af9c3349264776346cfaacfe8504624f53b192f3a5e9779b0988f9453203d6886698bd8adf87c930c14d686ddd35b dbus-user.initd
24099d0aed96681d90e6b2e9cc48f3b4bb2af10ce23af9bf1810e28a51fd7ad513b50bf378835ecb18889d5b22e43e613bf7689cf894c1bae97e27a4aff2130d dbus-user.confd
b2f271c18cbed0798d8a6f2570c6fe257ac0c718196d6ab092e812b92ec513e486fbfcaee16a95b4d896003e1d16388610459ad070c596c65aed9442c59cc01c README.alpine
"