diff options
author | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
commit | 48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch) | |
tree | 00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/dbus/dbus.xibuild | |
parent | 871b2b573f01c1b3176a0f65458b3d281b41c437 (diff) |
removed idea of repos
Diffstat (limited to 'repo/dbus/dbus.xibuild')
-rw-r--r-- | repo/dbus/dbus.xibuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/repo/dbus/dbus.xibuild b/repo/dbus/dbus.xibuild new file mode 100644 index 0000000..ba7869b --- /dev/null +++ b/repo/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=$BUILD_ROOT/no \ + --with-systemdsystemunitdir=$BUILD_ROOT/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 +} |