wok-next view dbus/receipt @ rev 19715

Fix building: pciutils, pcmanfm-legacy, arj
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 13 17:25:31 2017 +0300 (2017-05-13)
parents eb23a9b0f828
children 028634d82da8
line source
1 # SliTaz package receipt.
3 PACKAGE="dbus"
4 VERSION="1.10.14"
5 CATEGORY="x-window"
6 SHORT_DESC="D-Bus, a message bus system"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.freedesktop.org/wiki/Software/dbus/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://dbus.freedesktop.org/releases/dbus/$TARBALL"
15 DEPENDS="expat xorg-libX11 slitaz-base-files"
16 BUILD_DEPENDS="expat-dev xorg-libX11-dev"
17 SPLIT="dbus-helper"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ./configure \
23 --sysconfdir=/etc \
24 --localstatedir=/var \
25 --disable-doxygen-docs \
26 --disable-xml-docs \
27 --disable-static \
28 --disable-systemd \
29 --without-systemdsystemunitdir \
30 --with-console-auth-dir=/run/console/ \
31 --docdir=/usr/share/doc/dbus-$VERSION \
32 $CONFIGURE_ARGS &&
33 make && make -j 1 install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cook_copy_folders var bin dbus-1
40 cook_copy_files *.so*
42 # Init script
43 cp -a $stuff/etc $fs
45 chown -R root.root $fs
46 }
48 pre_install()
49 {
50 # Go for echoing on configuration files if any messagebus user
51 # was found.
52 if ! grep -qs 'messagebus' "$1/etc/passwd"; then
53 action 'Adding user: messagebus...'
54 chroot "$1/" addgroup -g25 -S messagebus
55 chroot "$1/" adduser -h/var/run/dbus -S -D -u25 \
56 -g"D-Bus Message Daemon User" messagebus
57 status
58 fi
59 if ! grep -qs ^DBUS_OPTIONS "$1/etc/daemons.conf"; then
60 action 'Configuring %s/etc/daemons.conf...' "$1"
61 cat >> "$1/etc/daemons.conf" <<EOT
62 # DBUS daemon options.
63 DBUS_OPTIONS="--system"
65 EOT
66 status
67 fi
68 [ -d "$1/var/run" ] || mkdir -p "$1/var/run"
69 }
71 pre_remove()
72 {
73 if [ -z "$1" ]; then
74 /etc/init.d/dbus stop
75 deluser messagebus
76 delgroup messagebus
77 fi 2> /dev/null
78 }