Update package version to 1.16.2

This commit is contained in:
2025-07-12 14:30:19 +03:00
parent cd88ee82f2
commit 30a209248e
2 changed files with 30 additions and 23 deletions
+3 -4
View File
@@ -1,10 +1,9 @@
name: dbus name: dbus
description: Freedesktop.org message bus system description: Freedesktop.org message bus system
version: 1.14.10 version: 1.16.2
revision: 6
url: https://www.freedesktop.org/wiki/Software/dbus url: https://www.freedesktop.org/wiki/Software/dbus
license: AFL2.1 or GPL2-or-later license: AFL2.1 or GPL2-or-later
architecture: any architecture: any
depends: ["glibc"] depends: ["expat","glibc","elogind","libcap"]
make_depends: ["bash","binutils","coreutils","diffutils","gawk","gcc","glibc","grep","make","pkgconf","sed","util-linux"] make_depends: ["docbook-xsl-nons","glib","meson","python3","xmlto"]
type: source type: source
+27 -19
View File
@@ -15,38 +15,46 @@ prepare() {
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
./configure --prefix=/usr \ mkdir build
--sysconfdir=/etc \ cd build
--localstatedir=/var \
--runstatedir=/run \ meson setup --prefix=/usr \
--enable-user-session \ --buildtype=release \
--disable-static \ --wrap-mode=nofallback \
--disable-doxygen-docs \ -Dsystemd=disabled ..
--disable-xml-docs \ meson compile
--with-systemduserunitdir=no \
--with-systemdsystemunitdir=no \
--docdir=/usr/share/doc/dbus \
--with-system-socket=/run/dbus/system_bus_socket
make
} }
# The check function is executed in the source directory # The check function is executed in the source directory
# This function is used to run tests to verify the package has been compiled correctly # This function is used to run tests to verify the package has been compiled correctly
check() { check() {
make check cd build
meson test --print-errorlogs
} }
# The package function is executed in the source directory # The package function is executed in the source directory
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package() { package() {
make DESTDIR="$BPM_OUTPUT" install cd build
chown root:messagebus "$BPM_OUTPUT"/usr/libexec/dbus-daemon-launch-helper
chmod 4750 "$BPM_OUTPUT"/usr/libexec/dbus-daemon-launch-helper meson install --destdir="$BPM_OUTPUT"
ln -sfv /etc/machine-id "$BPM_OUTPUT"/var/lib/dbus
install -Dm644 "$BPM_WORKDIR"/dbus-reload.bpmhook "$BPM_OUTPUT"/var/lib/bpm/hooks/dbus-reload.bpmhook # Fix dbus-daemon-launch-helper binary ownership and permissions
chown 0:18 "$BPM_OUTPUT"/usr/libexec/dbus-daemon-launch-helper
chmod 4750 "$BPM_OUTPUT"/usr/libexec/dbus-daemon-launch-helper
# Symlink dbus machine-id to /etc/machine-id
install -d "$BPM_OUTPUT"/etc/
ln -sfv /var/lib/dbus/machine-id "$BPM_OUTPUT"/etc/machine-id
# Install dbus service
install -Dm755 "$BPM_WORKDIR"/dbus-reload.sh "$BPM_OUTPUT"/usr/sbin/dbus-reload install -Dm755 "$BPM_WORKDIR"/dbus-reload.sh "$BPM_OUTPUT"/usr/sbin/dbus-reload
install -Dm644 "$BPM_WORKDIR"/dbus.esv "$BPM_OUTPUT"/etc/esvm/services/dbus.esv install -Dm644 "$BPM_WORKDIR"/dbus.esv "$BPM_OUTPUT"/etc/esvm/services/dbus.esv
# Install dbus BPM hook
install -Dm644 "$BPM_WORKDIR"/dbus-reload.bpmhook "$BPM_OUTPUT"/var/lib/bpm/hooks/dbus-reload.bpmhook
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/dbus/COPYING install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/dbus/COPYING
} }