wok-next annotate dbus/receipt @ rev 19866

Up eudev, rust-musl, slitaz-next, b43-fwcutter, cookutils, dbus, dmidecode, eudev, firmware, libidl, make-slitaz-icons, mirror-tools, tazdev, tazwikiss, yaff; add laptop-detect
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Sep 19 02:54:15 2017 +0300 (2017-09-19)
parents 7ae7ca392d9e
children e756329576c3
rev   line source
al@19781 1 # SliTaz package receipt v2.
pankso@790 2
pankso@790 3 PACKAGE="dbus"
al@19647 4 VERSION="1.10.14"
pankso@790 5 CATEGORY="x-window"
al@19647 6 SHORT_DESC="D-Bus, a message bus system"
pankso@790 7 MAINTAINER="pankso@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
al@19647 9 WEB_SITE="https://www.freedesktop.org/wiki/Software/dbus/"
pankso@16084 10 HOST_ARCH="i486 arm"
pankso@790 11
al@19647 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@19647 13 WGET_URL="https://dbus.freedesktop.org/releases/dbus/$TARBALL"
al@19647 14
al@19647 15 BUILD_DEPENDS="expat-dev xorg-libX11-dev"
al@19781 16 SPLIT="dbus-helper dbus dbus-dev"
pankso@12492 17
pankso@790 18 # Rules to configure and make the package.
pankso@790 19 compile_rules()
pankso@790 20 {
pankso@790 21 ./configure \
pankso@790 22 --sysconfdir=/etc \
slaxemulator@10123 23 --localstatedir=/var \
al@19647 24 --disable-doxygen-docs \
al@19647 25 --disable-xml-docs \
al@19647 26 --disable-static \
al@19647 27 --disable-systemd \
al@19647 28 --without-systemdsystemunitdir \
al@19858 29 --with-console-auth-dir=/run/console/ \
al@19647 30 --docdir=/usr/share/doc/dbus-$VERSION \
slaxemulator@10123 31 $CONFIGURE_ARGS &&
al@19781 32 make && make -j1 install
al@19856 33 # --without-console-auth-dir \
al@19781 34
al@19781 35 # Init script
al@19781 36 cp -a $stuff/etc $install
al@19781 37 chown -R root.root $install/etc
pankso@790 38 }
pankso@790 39
pankso@790 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@790 41 genpkg_rules()
pankso@790 42 {
al@19781 43 case $PACKAGE in
al@19781 44 dbus-helper)
al@19781 45 copy dbus-daemon-launch-helper
al@19781 46 CAT="x-window|dbus-daemon-launch-helper"
al@19843 47 DEPENDS="dbus expat"
al@19781 48 ;;
al@19781 49 dbus)
al@19781 50 copy @std
al@19781 51 remove_already_packed
al@19843 52 DEPENDS="expat xorg-libX11 slitaz-base-files"
al@19781 53 CONFIG_FILES="/etc/dbus-1/session.conf /etc/dbus-1/system.conf /etc/dbus-1/system.d/"
al@19781 54 ;;
al@19781 55 *-dev) copy @dev;;
al@19781 56 esac
pankso@790 57 }
pankso@790 58
al@19781 59 pre_install_dbus() {
pankso@790 60 # Go for echoing on configuration files if any messagebus user
pankso@790 61 # was found.
al@18663 62 if ! grep -qs 'messagebus' "$1/etc/passwd"; then
al@18663 63 action 'Adding user: messagebus...'
al@19652 64 chroot "$1/" addgroup -g25 -S messagebus
al@19858 65 chroot "$1/" adduser -h/var/run/dbus -S -D -u25 -G messagebus \
al@19652 66 -g"D-Bus Message Daemon User" messagebus
pankso@790 67 status
pankso@790 68 fi
al@18663 69 if ! grep -qs ^DBUS_OPTIONS "$1/etc/daemons.conf"; then
al@18663 70 action 'Configuring %s/etc/daemons.conf...' "$1"
al@19647 71 cat >> "$1/etc/daemons.conf" <<EOT
pankso@790 72 # DBUS daemon options.
pankso@790 73 DBUS_OPTIONS="--system"
pankso@790 74
pankso@790 75 EOT
pankso@790 76 status
pankso@790 77 fi
al@19782 78 mkdir -p "$1/var/run" "$1/var/lib/dbus"
pankso@790 79 }
pankso@790 80
al@19866 81 #post_install_dbus() {
al@19866 82 # # Mount /dev to fix an error:
al@19866 83 # # Failed to generate UUID: Could not open /dev/urandom: Permission denied
al@19866 84 # [ -z "$1" ] || mount -o bind /dev "$1/dev"
al@19866 85 # chroot "$1/" dbus-uuidgen --ensure
al@19866 86 # [ -z "$1" ] || umount "$1/dev"
al@19866 87 #}
al@19781 88
al@19781 89 pre_remove_dbus() {
slaxemulator@11088 90 if [ -z "$1" ]; then
pascal@19695 91 /etc/init.d/dbus stop
al@19781 92 fi 2>/dev/null
al@19781 93 chroot "$1/" deluser messagebus
al@19781 94 chroot "$1/" delgroup messagebus
pankso@790 95 }
al@19781 96
al@19781 97 post_install_dbus_helper() {
al@19781 98 local i="$1/usr/libexec/dbus-daemon-launch-helper"
al@19781 99 chown root:messagebus $i
al@19781 100 chmod 4750 $i
al@19781 101 }