wok-next view dbus/receipt @ rev 21087

Updates...
Revert names: libsdl -> sdl, libsmpeg -> smpeg, libtdb -> tdb
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 28 05:11:49 2018 +0200 (2018-12-28)
parents 5669e8b3be70
children e19ff076dc63
line source
1 # SliTaz package receipt v2.
3 PACKAGE="dbus"
4 VERSION="1.12.12"
5 CATEGORY="x-window"
6 SHORT_DESC="D-Bus, a message bus system"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.freedesktop.org/wiki/Software/dbus/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/dbus.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://dbus.freedesktop.org/releases/dbus/$TARBALL"
14 TARBALL_SHA1="ff61dc5bb7e3b4dd86444f4a72fb54378edc54fa"
16 BUILD_DEPENDS="expat-dev libx11-dev glib-dev libice-dev \
17 libsm-dev libxslt xmlto libxml2-tools" # docbook-xsl
18 SPLIT="$PACKAGE-helper $PACKAGE-introspect $PACKAGE $PACKAGE-dev"
20 COPY_helper="dbus-daemon-launch-helper"
21 COPY_introspect="introspect.*"
23 DEPENDS_helper="$PACKAGE expat"
24 DEPENDS_introspect="libxml2-tools"
25 DEPENDS_std="expat libx11 slitaz-base-files"
27 CAT_helper="x-window|dbus-daemon-launch-helper"
28 CAT_introspect="development|introspect DTD & XSL"
30 CONFIG_FILES_std="/etc/dbus-1/session.conf /etc/dbus-1/system.conf /etc/dbus-1/system.d/"
32 compile_rules() {
33 # temporarily: --disable-xml-docs
34 ./configure \
35 --disable-doxygen-docs \
36 --disable-xml-docs \
37 --disable-static \
38 --with-console-auth-dir=/run/console/ \
39 --with-system-pid-file=/run/dbus/pid \
40 --with-system-socket=/run/dbus/system_bus_socket \
41 --disable-systemd \
42 --without-systemdsystemunitdir \
43 $CONFIGURE_ARGS &&
44 fix libtool &&
45 make &&
46 make -j1 install || return 1
48 # Init script
49 cp -a $stuff/etc $install
50 chown -R root.root $install/etc
52 # docbook stuff
53 mkdir -p $install/usr/share/xml/docbook/stylesheet/dbus
54 cp doc/introspect.* $install/usr/share/xml/docbook/stylesheet/dbus
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 chroot "$1/" addgroup -g25 -S messagebus
62 chroot "$1/" adduser -h/var/run/dbus -S -D -u25 -G messagebus \
63 -g"D-Bus Message Daemon User" messagebus
64 fi
65 if ! grep -qs ^DBUS_OPTIONS "$1/etc/daemons.conf"; then
66 action 'Configuring %s/etc/daemons.conf...' "$1"
67 cat >> "$1/etc/daemons.conf" <<EOT
68 # DBUS daemon options.
69 DBUS_OPTIONS="--system"
71 EOT
72 status
73 fi
74 mkdir -p "$1/var/run" "$1/var/lib/dbus"
75 }
77 #post_install_dbus() {
78 # # Mount /dev to fix an error:
79 # # Failed to generate UUID: Could not open /dev/urandom: Permission denied
80 # [ -z "$1" ] || mount -o bind /dev "$1/dev"
81 # chroot "$1/" dbus-uuidgen --ensure
82 # [ -z "$1" ] || umount "$1/dev"
83 #}
85 pre_remove_dbus() {
86 if [ -z "$1" ]; then
87 /etc/init.d/dbus stop
88 fi 2>/dev/null
89 chroot "$1/" deluser messagebus
90 chroot "$1/" delgroup messagebus
91 }
93 post_install_dbus_helper() {
94 local i="$1/usr/libexec/dbus-daemon-launch-helper"
95 chown root:messagebus $i
96 chmod 4750 $i
97 }
99 post_install_dbus_introspect() {
100 U="http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"
101 F="file:///usr/share/xml/docbook/stylesheet/dbus/introspect.dtd"
103 # Create a /etc/xml/catalog file
104 mkdir -p "$1/etc/xml"
105 [ ! -f "$1/etc/xml/catalog" ] &&
106 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
108 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" "$U" "$F" /etc/xml/catalog
109 chroot "$1/" xmlcatalog --noout --add "rewriteURI" "$U" "$F" /etc/xml/catalog
110 }