blob: 663754e217c24e0a70d9f6401ca000e92ea56319 (
plain)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: David Herrmann <dh.herrmann@gmail.com>
# SELinux Maintainer: Nicolas Iooss (nicolas <dot> iooss <at> m4x <dot> org)
#
# This PKGBUILD does not build a variant for dbus-broker-units, as there is nothing specific to SELinux there
pkgbase=dbus-broker-selinux
pkgname=(
dbus-broker-selinux
)
pkgver=36
pkgrel=2
pkgdesc="Linux D-Bus Message Broker with SELinux support"
url="https://github.com/bus1/dbus-broker/wiki"
arch=(x86_64)
license=("Apache-2.0")
groups=(selinux)
depends=(
audit
libcap-ng
expat
systemd-libs
libselinux
)
makedepends=(
meson
python-docutils
systemd
)
source=(
https://github.com/bus1/dbus-broker/releases/download/v$pkgver/${pkgbase/-selinux}-$pkgver.tar.xz{,.asc}
0001-units-Enable-statically.patch
)
b2sums=('84a805982f038f0d9fe62b7f34de8ecbbdbd9b889edba05ab182f00116612545d2bf44d6ea0c6b5e121591a5ab3d2f0f6d5fa3dd413e8c36fe3494e35ac050f3'
'SKIP'
'02e30f49224835af2d327d6c3eecad5509913ad69b75c6b04d00cb4a8a0c9b8e0c043055d43172a215a4e3729527a2f807115117a9b1d1dc27c5f43259a12e36')
validpgpkeys=(
BE5FBC8C9C1C9F60A4F0AEAE7A4F3A09EBDEFF26 # David Herrmann <dh.herrmann@gmail.com>
)
# https://github.com/bus1/dbus-broker/releases
sha256sums=('d333d99bd2688135b6d6961e7ad1360099d186078781c87102230910ea4e162b'
'SKIP'
'20dcaf03d837d0715f71ccce3d393cba06a4b96f89f4fec3b6e35c1de0592d7d')
prepare() {
cd ${pkgbase/-selinux}-$pkgver
patch -Np1 -i ../0001-units-Enable-statically.patch
}
build() {
local meson_options=(
-D audit=true
-D docs=true
-D linux-4-17=true
-D system-console-users=gdm,sddm,lightdm,lxdm
-D selinux=true
)
arch-meson ${pkgbase/-selinux}-$pkgver build "${meson_options[@]}"
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
_pick() {
local p="$1" f d; shift
for f; do
d="$srcdir/$p/${f#$pkgdir/}"
mkdir -p "$(dirname "$d")"
mv "$f" "$d"
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
done
}
package_dbus-broker-selinux() {
depends+=(
libaudit.so
libcap-ng.so
libexpat.so
libsystemd.so
)
provides=("${pkgname/-selinux}")
conflicts=("${pkgname/-selinux}")
meson install -C build --destdir "$pkgdir"
_pick unit "$pkgdir"/usr/lib/systemd/{system,user}/dbus.service
}
# vim:set sw=2 sts=-1 et:
|