smlinux/xorg/dbus/dbus.SMBuild
PktSurf 1ddfe9abba * Fixed indentation in base/docbook build file
* Replaced patch command with applypatch function in multiple build files in base, xorg, gtk, extra and xfce sections
2022-02-23 23:21:55 +05:30

58 lines
1.6 KiB
Text
Executable file

app=dbus
version=1.12.20
build=1sml
homepage="https://wiki.freedesktop.org/www/Software/dbus/"
desc="Freedesktop.org message bus system"
requires="netbsd-curses util-linux expat python3 xmlto"
download="https://dbus.freedesktop.org/releases/dbus/dbus-1.12.20.tar.gz"
build() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
applypatch $srcdir/dbus-allow-root-globally.diff
./configure \
--prefix="" \
--bindir=/bin \
--sbindir=/bin \
--sysconfdir=/etc \
--libexecdir=/lib \
--localstatedir=/var \
--disable-Werror \
--disable-installed-tests \
--enable-shared=yes \
--enable-static=yes \
--disable-verbose-mode \
--with-dbus-user=messagebus \
--enable-inotify \
--enable-user-session \
--with-session-socket-dir=/tmp \
--with-system-pid-file=/var/run/dbus.pid \
--disable-systemd \
--with-x \
--disable-doxygen-docs
# Fix some directory ownership
mkdir -p $pkg/var/lib/dbus
chown messagebus $pkg/var/lib/dbus
make
make install DESTDIR=$pkg
mv $pkg/lib/dbus-1.0/include/dbus/dbus-arch-deps.h $pkg/include/dbus-1.0/dbus/
install -Dm 755 $srcdir/rc.messagebus $pkg/etc/rc.d/rc.messagebus
cp COPYING $pkgdocs/
mkfinalpkg
}
sha512sums="
c288a333102b6fd9d9606c667f6ccb624f7aeaeadb88b4c2aec062738e0e46c56b38d0c426299bda7f6bac1eb2d534f6c0342413ffa8a48bb0033c042e44b3fc dbus-1.12.20.tar.lz
c631e89a11c00eb3977aa3c28dc55d3feb4db785c039429c7cc6c1f53e146ca198afb064b61fc4abaaa7fdc6722a5d6393e1294e39aeee3728472e0950d3df20 dbus-allow-root-globally.diff
"