diff options
Diffstat (limited to 'opt/dbus')
| -rw-r--r-- | opt/dbus/.footprint | 85 | ||||
| -rw-r--r-- | opt/dbus/.signature | 7 | ||||
| -rw-r--r-- | opt/dbus/MAKEPKG | 119 | ||||
| -rw-r--r-- | opt/dbus/fix-daemon-location.patch | 11 |
4 files changed, 222 insertions, 0 deletions
diff --git a/opt/dbus/.footprint b/opt/dbus/.footprint new file mode 100644 index 0000000..d87a53b --- /dev/null +++ b/opt/dbus/.footprint @@ -0,0 +1,85 @@ +drwxr-xr-x root/root etc/ +lrwxrwxrwx root/root etc/machine-id -> /run/machine-id +drwxr-xr-x root/root etc/dbus-1/ +-rw-r--r-- root/root etc/dbus-1/session.conf +-rw-r--r-- root/root etc/dbus-1/system.conf +drwxr-xr-x root/root etc/profile.d/ +-rw-r--r-- root/root etc/profile.d/20-dbus.sh +drwxr-xr-x root/root etc/sv/ +drwxr-xr-x root/root etc/sv/dbus/ +-rwxr-xr-x root/root etc/sv/dbus/finish +-rwxr-xr-x root/root etc/sv/dbus/run +drwxr-xr-x root/root etc/sv/dbus/log/ +-rwxr-xr-x root/root etc/sv/dbus/log/run +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/dbus-cleanup-sockets +-rwxr-xr-x root/root usr/bin/dbus-daemon +-rwxr-xr-x root/root usr/bin/dbus-launch +-rwxr-xr-x root/root usr/bin/dbus-monitor +-rwxr-xr-x root/root usr/bin/dbus-run-session +-rwxr-xr-x root/root usr/bin/dbus-send +-rwxr-xr-x root/root usr/bin/dbus-test-tool +-rwxr-xr-x root/root usr/bin/dbus-update-activation-environment +-rwxr-xr-x root/root usr/bin/dbus-uuidgen +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/dbus-1.0/ +drwxr-xr-x root/root usr/include/dbus-1.0/dbus/ +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-address.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-bus.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-connection.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-errors.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-macros.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-memory.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-message.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-misc.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-pending-call.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-protocol.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-server.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-shared.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-signature.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-syntax.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-threads.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-types.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus.h +lrwxrwxrwx root/root usr/include/dbus-1.0/dbus/dbus-arch-deps.h -> /usr/lib/dbus-1.0/include/dbus/dbus-arch-deps.h +drwxr-xr-x root/root usr/lib/ +-rwxr-xr-x root/root usr/lib/libdbus-1.so.3.38.3 +lrwxrwxrwx root/root usr/lib/libdbus-1.so -> libdbus-1.so.3 +lrwxrwxrwx root/root usr/lib/libdbus-1.so.3 -> libdbus-1.so.3.38.3 +drwxr-xr-x root/root usr/lib/cmake/ +drwxr-xr-x root/root usr/lib/cmake/DBus1/ +-rw-r--r-- root/root usr/lib/cmake/DBus1/DBus1Config.cmake +-rw-r--r-- root/root usr/lib/cmake/DBus1/DBus1ConfigVersion.cmake +drwxr-xr-x root/root usr/lib/dbus-1.0/ +drwxr-xr-x root/root usr/lib/dbus-1.0/include/ +drwxr-xr-x root/root usr/lib/dbus-1.0/include/dbus/ +-rw-r--r-- root/root usr/lib/dbus-1.0/include/dbus/dbus-arch-deps.h +drwxr-xr-x root/root usr/lib/dbus/ +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/dbus-1.pc +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/dbus-1/ +-rw-r--r-- root/root usr/share/dbus-1/session.conf +-rw-r--r-- root/root usr/share/dbus-1/system.conf +drwxr-xr-x root/root usr/share/dbus-1/services/ +drwxr-xr-x root/root usr/share/dbus-1/session.d/ +drwxr-xr-x root/root usr/share/dbus-1/system-services/ +drwxr-xr-x root/root usr/share/dbus-1/system.d/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/dbus-cleanup-sockets.1.gz +-rw-r--r-- root/root usr/share/man/man1/dbus-daemon.1.gz +-rw-r--r-- root/root usr/share/man/man1/dbus-launch.1.gz +-rw-r--r-- root/root usr/share/man/man1/dbus-monitor.1.gz +-rw-r--r-- root/root usr/share/man/man1/dbus-run-session.1.gz +-rw-r--r-- root/root usr/share/man/man1/dbus-send.1.gz +-rw-r--r-- root/root usr/share/man/man1/dbus-test-tool.1.gz +-rw-r--r-- root/root usr/share/man/man1/dbus-update-activation-environment.1.gz +-rw-r--r-- root/root usr/share/man/man1/dbus-uuidgen.1.gz +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/lib/ +drwxr-xr-x root/root var/lib/dbus/ +drwxr-xr-x root/root var/lib/pkg/ +drwxr-xr-x root/root var/lib/pkg/meta/ +-rw-r--r-- root/root var/lib/pkg/meta/dbus diff --git a/opt/dbus/.signature b/opt/dbus/.signature new file mode 100644 index 0000000..ca551d0 --- /dev/null +++ b/opt/dbus/.signature @@ -0,0 +1,7 @@ +RWTZ9IduCSQ/mDQUZWlr9MYah/YiCttoxTHrBdfphMqz2qvwC9FcJ2h0OV355ILY20zzjVd/rCEgpFrIpNwBmgSnFI7GLsAbxwk= + +SHA256 (MAKEPKG) = c1385a00f337b93542f78d9790829f05f6809a68b0f13073ea9f3b15a6cefaa5 +SHA256 (.footprint) = 6e5e86875015492883c8ac96f74ec1c302555b5c5dcfdafa89c717d70f961bc9 +SHA256 (dbus-1.16.2.tar.xz) = 0ba2a1a4b16afe7bceb2c07e9ce99a8c2c3508e5dec290dbb643384bd6beb7e2 +SHA256 (fix-daemon-location.patch) = 32862e56777619a479ebefc45589cb76207c836de24a8bca14aecb4552e42528 +SHA256 (dbus#1.16.2-2.pkg.tar.gz) = dd510fb3398780e58d859e294b7525a72cf33aab1dc3daaa98717d4a644337ec diff --git a/opt/dbus/MAKEPKG b/opt/dbus/MAKEPKG new file mode 100644 index 0000000..7eb3816 --- /dev/null +++ b/opt/dbus/MAKEPKG @@ -0,0 +1,119 @@ +#!/bin/mkpkg +# description: D-Bus message bus system +# url: https://freedesktop.org/wiki/Software/dbus + +name=dbus +version=1.16.2 +release=2 +depends=(expat) +makedeps=(meson libxslt docbook-xsl) +groups=(messagebus:user:messagebus:/nonexistent:755:81:81) +services=(dbus) +source=(https://dbus.freedesktop.org/releases/$name/$name-$version.tar.xz + fix-daemon-location.patch) + +patch() { + cd $name-$version + patch -p1 -i "$SRC"/fix-daemon-location.patch +} + +sha256sums=( + "0ba2a1a4b16afe7bceb2c07e9ce99a8c2c3508e5dec290dbb643384bd6beb7e2" + "32862e56777619a479ebefc45589cb76207c836de24a8bca14aecb4552e42528" +) + +build() { + meson setup $name-$version build \ + --prefix=/usr \ + --libdir=lib \ + --localstatedir=/var \ + --sysconfdir=/etc \ + --libexecdir=lib/dbus \ + --buildtype=plain \ + -D dbus_daemondir=/usr/bin \ + -D dbus_user=messagebus \ + -D runtime_dir=/run \ + -D system_pid_file=/run/dbus/pid \ + -D system_socket=/run/dbus/system_bus_socket \ + -D x11_autolaunch=disabled \ + -D systemd=disabled \ + -D selinux=disabled \ + -D xml_docs=enabled \ + -D doxygen_docs=disabled \ + -D ducktype_docs=disabled \ + -D qt_help=disabled + + + meson compile -C build + DESTDIR=$PKG meson install -C build + + # Symlink arch-specific header into the standard include path + # so consumers find dbus-arch-deps.h without needing the lib include path + ln -sf /usr/lib/dbus-1.0/include/dbus/dbus-arch-deps.h \ + "$PKG"/usr/include/dbus-1.0/dbus/dbus-arch-deps.h + + # machine-id lives on tmpfs, regenerated each boot by the run script + ln -s /run/machine-id "$PKG"/etc/machine-id + + rm -f "$PKG"/usr/lib/dbus/dbus-daemon-launch-helper + rm -rf $PKG/usr/share/doc + rm -rf $PKG/usr/share/xml + rm -rf $PKG/run +} + +post_build() { + # runit service + install -d $PKG/etc/sv/dbus/log + + printf '%s\n' \ + '#!/bin/sh' \ + 'exec 2>&1' \ + 'install -d -m 755 -o messagebus -g messagebus /run/dbus' \ + 'dbus-uuidgen --ensure=/run/machine-id' \ + 'exec dbus-daemon --system --nofork --nopidfile' \ + > $PKG/etc/sv/dbus/run + + printf '%s\n' \ + '#!/bin/sh' \ + 'rm -f /run/dbus/system_bus_socket' \ + > $PKG/etc/sv/dbus/finish + + printf '%s\n' \ + '#!/bin/sh' \ + 'mkdir -p /var/log/dbus' \ + 'exec svlogd -tt /var/log/dbus' \ + > $PKG/etc/sv/dbus/log/run + + chmod 755 $PKG/etc/sv/dbus/run + chmod 755 $PKG/etc/sv/dbus/finish + chmod 755 $PKG/etc/sv/dbus/log/run + + # session bus: started on first login, reused afterwards + install -d "$PKG"/etc/profile.d + + printf '%s\n' \ + '# /etc/profile.d/20-dbus.sh - start/attach per-user D-Bus session bus' \ + 'if [ -n "$XDG_RUNTIME_DIR" ]; then' \ + ' _bus="$XDG_RUNTIME_DIR/bus"' \ + ' if [ ! -S "$_bus" ] && mkdir "$XDG_RUNTIME_DIR/.dbus-lock" 2>/dev/null; then' \ + ' /usr/bin/dbus-daemon --session --address="unix:path=$_bus" \' \ + ' --fork --nopidfile --syslog-only' \ + ' rmdir "$XDG_RUNTIME_DIR/.dbus-lock"' \ + ' fi' \ + ' if [ -S "$_bus" ]; then' \ + ' export DBUS_SESSION_BUS_ADDRESS="unix:path=$_bus"' \ + ' fi' \ + ' unset _bus' \ + 'fi' \ + > "$PKG"/etc/profile.d/20-dbus.sh + + chmod 644 "$PKG"/etc/profile.d/20-dbus.sh +} + +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} + +# vim: filetype=sh + diff --git a/opt/dbus/fix-daemon-location.patch b/opt/dbus/fix-daemon-location.patch new file mode 100644 index 0000000..25b69f7 --- /dev/null +++ b/opt/dbus/fix-daemon-location.patch @@ -0,0 +1,11 @@ +diff -Naur dbus-1.16.0.orig/bus/meson.build dbus-1.16.0/bus/meson.build +--- dbus-1.16.0.orig/bus/meson.build 2024-12-24 01:25:30.856267635 +0100 ++++ dbus-1.16.0/bus/meson.build 2024-12-24 01:28:28.098900906 +0100 +@@ -139,6 +139,7 @@ + include_directories: root_include, + link_with: libdbus_daemon_internal, + install: true, ++ install_dir: get_option('dbus_daemondir'), + ) + + |
