aboutsummaryrefslogtreecommitdiff
path: root/dbus
diff options
context:
space:
mode:
Diffstat (limited to 'dbus')
-rwxr-xr-xdbus/dbus/build23
-rw-r--r--dbus/dbus/checksums2
-rw-r--r--dbus/dbus/depends1
-rwxr-xr-xdbus/dbus/files/dbus.run3
-rwxr-xr-xdbus/dbus/post-install20
-rw-r--r--dbus/dbus/sources2
-rw-r--r--dbus/dbus/version1
7 files changed, 52 insertions, 0 deletions
diff --git a/dbus/dbus/build b/dbus/dbus/build
new file mode 100755
index 00000000..90ce53ef
--- /dev/null
+++ b/dbus/dbus/build
@@ -0,0 +1,23 @@
+#!/bin/sh -e
+
+xorg=--without-x
+cpt l libX11 libSM libICE >/dev/null 2>&1 && xorg=--with-x
+
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-user-session \
+ --disable-asserts \
+ --with-dbus-user=dbus \
+ --with-system-socket=/run/dbus/system_bus_socket \
+ --with-system-pid-file=/run/dus/pid \
+ --with-console-auth-dir=/run/console \
+ "$xorg" \
+ --disable-systemd \
+ --disable-doxygen-docs
+
+make
+make DESTDIR="$1" install
+
+DESTDIR=$1 install-sv dbus.run
diff --git a/dbus/dbus/checksums b/dbus/dbus/checksums
new file mode 100644
index 00000000..a8c73b91
--- /dev/null
+++ b/dbus/dbus/checksums
@@ -0,0 +1,2 @@
+f77620140ecb4cdc67f37fb444f8a6bea70b5b6461f12f1cbe2cec60fa7de5fe dbus-1.12.20.tar.gz
+cdaf6273c6a779dd739b217726e5724b4a37a811901a41ee1d0dae188a46f708 dbus.run
diff --git a/dbus/dbus/depends b/dbus/dbus/depends
new file mode 100644
index 00000000..ce073fe6
--- /dev/null
+++ b/dbus/dbus/depends
@@ -0,0 +1 @@
+expat
diff --git a/dbus/dbus/files/dbus.run b/dbus/dbus/files/dbus.run
new file mode 100755
index 00000000..dec1486a
--- /dev/null
+++ b/dbus/dbus/files/dbus.run
@@ -0,0 +1,3 @@
+#!/bin/sh -e
+mkdir -p /run/dbus
+exec dbus-daemon --system --nofork --nopidfile
diff --git a/dbus/dbus/post-install b/dbus/dbus/post-install
new file mode 100755
index 00000000..5c47035c
--- /dev/null
+++ b/dbus/dbus/post-install
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+
+mkdir -p "$CPT_ROOT/var/lib/dbus" "$CPT_ROOT/etc/dbus-1/session.d"
+
+chr() {
+ # Run in chroot if CPT_ROOT variable exists
+ if [ "$CPT_ROOT" ]; then
+ chroot "$CPT_ROOT" "$@"
+ else
+ "$@"
+ fi
+}
+
+grep -q ^dbus: "$CPT_ROOT/etc/passwd" || {
+ chr addgroup -g 22 -S dbus
+ chr adduser -u 22 -S -H -G dbus dbus
+}
+chown root:dbus "$CPT_ROOT/usr/libexec/dbus-daemon-launch-helper"
+chmod 4750 "$CPT_ROOT/usr/libexec/dbus-daemon-launch-helper"
+chr /usr/bin/dbus-uuidgen --ensure || :
diff --git a/dbus/dbus/sources b/dbus/dbus/sources
new file mode 100644
index 00000000..b6a382c0
--- /dev/null
+++ b/dbus/dbus/sources
@@ -0,0 +1,2 @@
+https://dbus.freedesktop.org/releases/dbus/dbus-1.12.20.tar.gz
+files/dbus.run
diff --git a/dbus/dbus/version b/dbus/dbus/version
new file mode 100644
index 00000000..052da8e5
--- /dev/null
+++ b/dbus/dbus/version
@@ -0,0 +1 @@
+1.12.20 1