wok-next view dbus/receipt @ rev 19811

Up btrfs-progs, fuse, gtkmm, gtkmm-dev, jfsutils, libaal, libacpi, libaio, libarchive, libart_lgpl, libass, libbonoboui, libcddb, libcdio, libconfig, libcroco, libcss, libparserutils, libwapcaplet, slitaz-i18n-extra; (re)move locale-*-extra -> slitaz-i18n-extra; add netsurf-buildsystem.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jul 20 00:33:52 2017 +0300 (2017-07-20)
parents 028634d82da8
children 8c198c0388a5
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
34 # Init script
35 cp -a $stuff/etc $install
36 chown -R root.root $install/etc
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 case $PACKAGE in
43 dbus-helper)
44 copy dbus-daemon-launch-helper
45 CAT="x-window|dbus-daemon-launch-helper"
46 ;;
47 dbus)
48 copy @std
49 remove_already_packed
50 DEPENDS="expat xorg-libX11 slitaz-base-files"
51 CONFIG_FILES="/etc/dbus-1/session.conf /etc/dbus-1/system.conf /etc/dbus-1/system.d/"
52 ;;
53 *-dev) copy @dev;;
54 esac
55 }
57 pre_install_dbus() {
58 # Go for echoing on configuration files if any messagebus user
59 # was found.
60 if ! grep -qs 'messagebus' "$1/etc/passwd"; then
61 action 'Adding user: messagebus...'
62 chroot "$1/" addgroup -g25 -S messagebus
63 chroot "$1/" adduser -h/var/run/dbus -S -D -u25 \
64 -g"D-Bus Message Daemon User" messagebus
65 status
66 fi
67 if ! grep -qs ^DBUS_OPTIONS "$1/etc/daemons.conf"; then
68 action 'Configuring %s/etc/daemons.conf...' "$1"
69 cat >> "$1/etc/daemons.conf" <<EOT
70 # DBUS daemon options.
71 DBUS_OPTIONS="--system"
73 EOT
74 status
75 fi
76 mkdir -p "$1/var/run" "$1/var/lib/dbus"
77 }
79 post_install_dbus() {
80 dbus-uuidgen --ensure
81 }
83 pre_remove_dbus() {
84 if [ -z "$1" ]; then
85 /etc/init.d/dbus stop
86 fi 2>/dev/null
87 chroot "$1/" deluser messagebus
88 chroot "$1/" delgroup messagebus
89 }
91 post_install_dbus_helper() {
92 local i="$1/usr/libexec/dbus-daemon-launch-helper"
93 chown root:messagebus $i
94 chmod 4750 $i
95 }