wok-next view dbus/receipt @ rev 21307
updated hydra (7.3 -> 9.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 10:07:48 2019 +0100 (2019-12-10) |
parents | 7c5d038be95b |
children | a959f8d42765 |
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 COOKOPTS="force-arch" # different .h
18 BUILD_DEPENDS="expat-dev libx11-dev glib-dev libice-dev \
19 libsm-dev libxslt xmlto libxml2-tools" # docbook-xsl
20 SPLIT="$PACKAGE-helper $PACKAGE-introspect $PACKAGE $PACKAGE-dev"
22 COPY_helper="dbus-daemon-launch-helper"
23 COPY_introspect="introspect.*"
25 DEPENDS_helper="$PACKAGE expat"
26 DEPENDS_introspect="libxml2-tools"
27 DEPENDS_std="expat libx11 slitaz-base-files"
29 CAT_helper="x-window|dbus-daemon-launch-helper"
30 CAT_introspect="development|introspect DTD & XSL"
32 CONFIG_FILES_std="/etc/dbus-1/session.conf /etc/dbus-1/system.conf /etc/dbus-1/system.d/"
34 compile_rules() {
35 # temporarily: --disable-xml-docs
36 ./configure \
37 --disable-doxygen-docs \
38 --disable-xml-docs \
39 --disable-static \
40 --with-console-auth-dir=/run/console/ \
41 --with-system-pid-file=/run/dbus/pid \
42 --with-system-socket=/run/dbus/system_bus_socket \
43 --disable-systemd \
44 --without-systemdsystemunitdir \
45 $CONFIGURE_ARGS &&
46 fix libtool &&
47 make &&
48 make -j1 install || return 1
50 # Init script
51 cp -a $stuff/etc $install
52 chown -R root.root $install/etc
54 # docbook stuff
55 mkdir -p $install/usr/share/xml/docbook/stylesheet/dbus
56 cp doc/introspect.* $install/usr/share/xml/docbook/stylesheet/dbus
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 chroot "$1/" addgroup -g25 -S messagebus
64 chroot "$1/" adduser -h/var/run/dbus -S -D -u25 -G messagebus \
65 -g"D-Bus Message Daemon User" messagebus
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 # # Mount /dev to fix an error:
81 # # Failed to generate UUID: Could not open /dev/urandom: Permission denied
82 # [ -z "$1" ] || mount -o bind /dev "$1/dev"
83 # chroot "$1/" dbus-uuidgen --ensure
84 # [ -z "$1" ] || umount "$1/dev"
85 #}
87 pre_remove_dbus() {
88 if [ -z "$1" ]; then
89 /etc/init.d/dbus stop
90 fi 2>/dev/null
91 chroot "$1/" deluser messagebus
92 chroot "$1/" delgroup messagebus
93 }
95 post_install_dbus_helper() {
96 local i="$1/usr/libexec/dbus-daemon-launch-helper"
97 chown root:messagebus $i
98 chmod 4750 $i
99 }
101 post_install_dbus_introspect() {
102 U="http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"
103 F="file:///usr/share/xml/docbook/stylesheet/dbus/introspect.dtd"
105 # Create a /etc/xml/catalog file
106 mkdir -p "$1/etc/xml"
107 [ ! -f "$1/etc/xml/catalog" ] &&
108 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
110 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" "$U" "$F" /etc/xml/catalog
111 chroot "$1/" xmlcatalog --noout --add "rewriteURI" "$U" "$F" /etc/xml/catalog
112 }