summaryrefslogtreecommitdiff
path: root/repo/system/dbus/dbus.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
committerdavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
commit739c65c54cb0e957df5e9b76f93fb02554e5cac3 (patch)
tree09ddfa0a342f3ea9de136cb50abdd79821bf1b53 /repo/system/dbus/dbus.xibuild
parent4c585ad54388285500fd18a6aaa516894e0f2c16 (diff)
moved everything to new file formatting
Diffstat (limited to 'repo/system/dbus/dbus.xibuild')
-rw-r--r--repo/system/dbus/dbus.xibuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/repo/system/dbus/dbus.xibuild b/repo/system/dbus/dbus.xibuild
new file mode 100644
index 0000000..3bbfc31
--- /dev/null
+++ b/repo/system/dbus/dbus.xibuild
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+MAKEDEPS="make "
+DEPS="elogind"
+
+PKG_VER=1.12.20
+SOURCE=https://dbus.freedesktop.org/releases/dbus/dbus-$PKG_VER.tar.gz
+
+ADDITIONAL="
+dbus.confd
+dbus.initd
+dbus.trigger
+"
+
+DESC="A message bus system allowing applications to talk to one another"
+
+build () {
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-user-session \
+ --disable-doxygen-docs \
+ --disable-xml-docs \
+ --disable-static \
+ --with-systemduserunitdir=no \
+ --with-systemdsystemunitdir=no \
+ --docdir=/usr/share/doc/dbus-$PKG_VER \
+ --with-console-auth-dir=/run/console \
+ --with-system-pid-file=/run/dbus/pid \
+ --with-system-socket=/run/dbus/system_bus_socket \
+ --with-x &&
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+ mv usr/lib/lib*.so.* $PKG_DEST/usr/lib/
+
+ chown root:messagebus $PKG_DEST/usr/libexec/dbus-daemon-launch-helper &&
+ chmod 4750 $PKG_DEST/usr/libexec/dbus-daemon-launch-helper
+
+ cat > $PKG_DEST/etc/dbus-1/session-local.conf << "EOF"
+<!DOCTYPE busconfig PUBLIC
+ "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+
+ <!-- Search for .service files in /usr/local -->
+ <servicedir>/usr/local/share/dbus-1/services</servicedir>
+
+</busconfig>
+EOF
+
+ install -Dm755 dbus.initd $PKG_DEST/etc/init.d/dbus
+ install -Dm644 dbus.confd $PKG_DEST/etc/conf.d/dbus
+}
+
+postinstall () {
+ rc-update add dbus
+}