wok-next view dbus/receipt @ rev 19936
mate-common: automake-1.15 support, mate-desktop, mate-icon-theme, mate-system-monitor: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 15 17:04:15 2017 +0200 (2017-10-15) |
parents | 7ae7ca392d9e |
children | e756329576c3 |
line source
1 # SliTaz package receipt v2.
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 BUILD_DEPENDS="expat-dev xorg-libX11-dev"
16 SPLIT="dbus-helper dbus dbus-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure \
22 --sysconfdir=/etc \
23 --localstatedir=/var \
24 --disable-doxygen-docs \
25 --disable-xml-docs \
26 --disable-static \
27 --disable-systemd \
28 --without-systemdsystemunitdir \
29 --with-console-auth-dir=/run/console/ \
30 --docdir=/usr/share/doc/dbus-$VERSION \
31 $CONFIGURE_ARGS &&
32 make && make -j1 install
33 # --without-console-auth-dir \
35 # Init script
36 cp -a $stuff/etc $install
37 chown -R root.root $install/etc
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 case $PACKAGE in
44 dbus-helper)
45 copy dbus-daemon-launch-helper
46 CAT="x-window|dbus-daemon-launch-helper"
47 DEPENDS="dbus expat"
48 ;;
49 dbus)
50 copy @std
51 remove_already_packed
52 DEPENDS="expat xorg-libX11 slitaz-base-files"
53 CONFIG_FILES="/etc/dbus-1/session.conf /etc/dbus-1/system.conf /etc/dbus-1/system.d/"
54 ;;
55 *-dev) copy @dev;;
56 esac
57 }
59 pre_install_dbus() {
60 # Go for echoing on configuration files if any messagebus user
61 # was found.
62 if ! grep -qs 'messagebus' "$1/etc/passwd"; then
63 action 'Adding user: messagebus...'
64 chroot "$1/" addgroup -g25 -S messagebus
65 chroot "$1/" adduser -h/var/run/dbus -S -D -u25 -G messagebus \
66 -g"D-Bus Message Daemon User" messagebus
67 status
68 fi
69 if ! grep -qs ^DBUS_OPTIONS "$1/etc/daemons.conf"; then
70 action 'Configuring %s/etc/daemons.conf...' "$1"
71 cat >> "$1/etc/daemons.conf" <<EOT
72 # DBUS daemon options.
73 DBUS_OPTIONS="--system"
75 EOT
76 status
77 fi
78 mkdir -p "$1/var/run" "$1/var/lib/dbus"
79 }
81 #post_install_dbus() {
82 # # Mount /dev to fix an error:
83 # # Failed to generate UUID: Could not open /dev/urandom: Permission denied
84 # [ -z "$1" ] || mount -o bind /dev "$1/dev"
85 # chroot "$1/" dbus-uuidgen --ensure
86 # [ -z "$1" ] || umount "$1/dev"
87 #}
89 pre_remove_dbus() {
90 if [ -z "$1" ]; then
91 /etc/init.d/dbus stop
92 fi 2>/dev/null
93 chroot "$1/" deluser messagebus
94 chroot "$1/" delgroup messagebus
95 }
97 post_install_dbus_helper() {
98 local i="$1/usr/libexec/dbus-daemon-launch-helper"
99 chown root:messagebus $i
100 chmod 4750 $i
101 }