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