wok-next view dbus/receipt @ rev 19647

Forgotten changes: libdrm-*, dbus, fontconfig, harfbuzz, libdrm, pixman, xorg-glproto.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Feb 23 00:58:26 2017 +0200 (2017-02-23)
parents 124c3a7da04f
children eb23a9b0f828
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 echo 'messagebus:x:18:18:D-Bus Message Daemon User:/var/run/dbus:/bin/false' >> "$1/etc/passwd"
55 echo 'messagebus:!:14013:0:99999:7:::' >> "$1/etc/shadow"
56 echo 'messagebus:x:18:' >> "$1/etc/group"
57 echo 'messagebus:!::' >> "$1/etc/gshadow"
58 status
59 fi
60 if ! grep -qs ^DBUS_OPTIONS "$1/etc/daemons.conf"; then
61 action 'Configuring %s/etc/daemons.conf...' "$1"
62 cat >> "$1/etc/daemons.conf" <<EOT
63 # DBUS daemon options.
64 DBUS_OPTIONS="--system"
66 EOT
67 status
68 fi
69 [ -d "$1/var/run" ] || mkdir -p "$1/var/run"
70 }
72 pre_remove()
73 {
74 if [ -z "$1" ]; then
75 /etc/init.d/dbus stop 2>/dev/null
76 deluser messagebus
77 fi
78 }