1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: xdavidwu <xdavidwuph@gmail.com>
pkgname=dbus
pkgver=1.15.0
pkgrel=4
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"
depends_dev="util-linux-dev"
makedepends="
$depends_dev
expat-dev
glib-dev
libsm-dev
libx11-dev
meson
xmlto
systemd-dev
"
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"
source="https://dbus.freedesktop.org/releases/dbus/dbus-$pkgver.tar.xz
$pkgname.initd
hack-systemd-activation-must-only.patch"
options="!check" # Introduces circular dependency with xorg-server (xvfb-run -> xvfb)
# secfixes:
# 1.12.18-r0:
# - CVE-2020-12049
# 1.12.16-r0:
# - CVE-2019-12749
build() {
abuild-meson \
-Db_lto=true \
-Dinotify=enabled \
-Ddbus_user=messagebus \
-Dsystem_pid_file=/run/dbus/dbus.pid \
-Dsystemd=enabled \
. output
meson compile -C output
}
check() {
meson test -t 4 --no-rebuild --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
install -Dm755 "$srcdir"/dbus.initd "$pkgdir"/etc/init.d/dbus
}
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
}
sha512sums="
6f7e1d4ff525ce13c5f671f1b045a089c379cbfb777662ce7a55ffe4893a8ab2aaf38877a7b8f261823067a20f3b336437449eb353a97d30699496375e00bf1a dbus-1.15.0.tar.xz
958942c3d0ca19454a67b9749ab52ed792949b08985bd2d35901e705b95b1aec82b2583049255c4cd61b52a7e048fd5bf410cdde09d9384a4044ff4a47fa5ece dbus.initd
5b7d3fc1d0ea62e48a882fa7eb940c9c19d71a74b4a6aff776f34f56219a385f6aaf255f9f1ec92757eb61159b28519fd30a6e2b54ea6b610f1bc6236ddd2af9 hack-systemd-activation-must-only.patch
"