wok-next view dbus/receipt @ rev 21634
updated exiftool (11.17 -> 12.01)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jun 26 10:45:57 2020 +0100 (2020-06-26) |
parents | e19ff076dc63 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="dbus"
4 VERSION="1.12.18"
5 CATEGORY="x-window"
6 SHORT_DESC="D-Bus, a message bus system"
7 MAINTAINER="maintainer@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 # 1.12.12 TARBALL_SHA1="ff61dc5bb7e3b4dd86444f4a72fb54378edc54fa"
16 COOKOPTS="force-arch" # different .h
18 BUILD_DEPENDS="expat-dev glib-dev libice-dev libsm-dev libx11-dev
19 libxslt libxml2-tools xmlto" # 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 {
36 # temporarily: --disable-xml-docs
37 ./configure \
38 --disable-doxygen-docs \
39 --disable-xml-docs \
40 --disable-static \
41 --with-console-auth-dir=/run/console/ \
42 --with-system-pid-file=/run/dbus/pid \
43 --with-system-socket=/run/dbus/system_bus_socket \
44 --disable-systemd \
45 --without-systemdsystemunitdir \
46 $CONFIGURE_ARGS &&
47 fix libtool &&
48 make &&
49 make -j1 install || return 1
51 # Init script
52 cp -a $stuff/etc $install
53 chown -R root.root $install/etc
55 # docbook stuff
56 mkdir -p $install/usr/share/xml/docbook/stylesheet/dbus
57 cp doc/introspect.* $install/usr/share/xml/docbook/stylesheet/dbus
58 }
60 pre_install_dbus()
61 {
62 # Go for echoing on configuration files if any messagebus user
63 # was found.
64 if ! grep -qs 'messagebus' "$1/etc/passwd"
65 then
66 chroot "$1/" addgroup -g25 -S messagebus
67 chroot "$1/" adduser -h/var/run/dbus -S -D -u25 -G messagebus \
68 -g"D-Bus Message Daemon User" messagebus
69 fi
70 if ! grep -qs ^DBUS_OPTIONS "$1/etc/daemons.conf"
71 then
72 action 'Configuring %s/etc/daemons.conf...' "$1"
73 cat >> "$1/etc/daemons.conf" <<EOT
74 # DBUS daemon options.
75 DBUS_OPTIONS="--system"
77 EOT
78 status
79 fi
80 mkdir -p "$1/var/run" "$1/var/lib/dbus"
81 }
83 #post_install_dbus() {
84 # # Mount /dev to fix an error:
85 # # Failed to generate UUID: Could not open /dev/urandom: Permission denied
86 # [ -z "$1" ] || mount -o bind /dev "$1/dev"
87 # chroot "$1/" dbus-uuidgen --ensure
88 # [ -z "$1" ] || umount "$1/dev"
89 #}
91 pre_remove_dbus()
92 {
93 if [ -z "$1" ]
94 then
95 /etc/init.d/dbus stop
96 fi 2>/dev/null
97 chroot "$1/" deluser messagebus
98 chroot "$1/" delgroup messagebus
99 }
101 post_install_dbus_helper()
102 {
103 local i="$1/usr/libexec/dbus-daemon-launch-helper"
104 chown root:messagebus $i
105 chmod 4750 $i
106 }
108 post_install_dbus_introspect()
109 {
110 U="http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"
111 F="file:///usr/share/xml/docbook/stylesheet/dbus/introspect.dtd"
113 # Create a /etc/xml/catalog file
114 mkdir -p "$1/etc/xml"
115 [ ! -f "$1/etc/xml/catalog" ] &&
116 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
118 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" "$U" "$F" /etc/xml/catalog
119 chroot "$1/" xmlcatalog --noout --add "rewriteURI" "$U" "$F" /etc/xml/catalog
120 }