wok-next annotate dbus/receipt @ rev 19781

Up dbus, dbus-glib, libsigc++, glibmm; libpng16, lcms2, optipng, pngquant.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jun 17 22:59:11 2017 +0300 (2017-06-17)
parents 9ee8f405f17f
children e5efff3d8fce
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@19647 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@19781 33
al@19781 34 # Init script
al@19781 35 cp -a $stuff/etc $install
al@19781 36 chown -R root.root $install/etc
pankso@790 37 }
pankso@790 38
pankso@790 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@790 40 genpkg_rules()
pankso@790 41 {
al@19781 42 case $PACKAGE in
al@19781 43 dbus-helper)
al@19781 44 copy dbus-daemon-launch-helper
al@19781 45 CAT="x-window|dbus-daemon-launch-helper"
al@19781 46 ;;
al@19781 47 dbus)
al@19781 48 copy @std
al@19781 49 remove_already_packed
al@19781 50 DEPENDS="expat xorg-libX11 slitaz-base-files"
al@19781 51 CONFIG_FILES="/etc/dbus-1/session.conf /etc/dbus-1/system.conf /etc/dbus-1/system.d/"
al@19781 52 ;;
al@19781 53 *-dev) copy @dev;;
al@19781 54 esac
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@18663 61 action 'Adding user: messagebus...'
al@19652 62 chroot "$1/" addgroup -g25 -S messagebus
al@19652 63 chroot "$1/" adduser -h/var/run/dbus -S -D -u25 \
al@19652 64 -g"D-Bus Message Daemon User" messagebus
pankso@790 65 status
pankso@790 66 fi
al@18663 67 if ! grep -qs ^DBUS_OPTIONS "$1/etc/daemons.conf"; then
al@18663 68 action 'Configuring %s/etc/daemons.conf...' "$1"
al@19647 69 cat >> "$1/etc/daemons.conf" <<EOT
pankso@790 70 # DBUS daemon options.
pankso@790 71 DBUS_OPTIONS="--system"
pankso@790 72
pankso@790 73 EOT
pankso@790 74 status
pankso@790 75 fi
al@18663 76 [ -d "$1/var/run" ] || mkdir -p "$1/var/run"
pankso@790 77 }
pankso@790 78
al@19781 79 post_install_dbus() {
al@19781 80 dbus-uuidgen --ensure
al@19781 81 }
al@19781 82
al@19781 83 pre_remove_dbus() {
slaxemulator@11088 84 if [ -z "$1" ]; then
pascal@19695 85 /etc/init.d/dbus stop
al@19781 86 fi 2>/dev/null
al@19781 87 chroot "$1/" deluser messagebus
al@19781 88 chroot "$1/" delgroup messagebus
pankso@790 89 }
al@19781 90
al@19781 91 post_install_dbus_helper() {
al@19781 92 local i="$1/usr/libexec/dbus-daemon-launch-helper"
al@19781 93 chown root:messagebus $i
al@19781 94 chmod 4750 $i
al@19781 95 }