wok annotate dbus/receipt @ rev 20950
hardinfo: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 03 15:56:03 2019 +0100 (2019-03-03) |
parents | 2429812d90ab |
children | 6222d1b9c074 |
rev | line source |
---|---|
pankso@790 | 1 # SliTaz package receipt. |
pankso@790 | 2 |
pankso@790 | 3 PACKAGE="dbus" |
psychomaniak@16973 | 4 VERSION="1.6.22" |
pankso@790 | 5 CATEGORY="x-window" |
pankso@790 | 6 SHORT_DESC="D-Bus is a message bus system." |
pankso@790 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
pankso@790 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@790 | 10 WEB_SITE="http://www.freedesktop.org/wiki/Software/dbus" |
pankso@790 | 11 WGET_URL="http://dbus.freedesktop.org/releases/dbus/$TARBALL" |
pankso@16084 | 12 HOST_ARCH="i486 arm" |
pankso@790 | 13 |
pankso@12492 | 14 DEPENDS="expat xorg-libX11 slitaz-base-files xorg-libICE xorg-libSM \ |
pankso@12492 | 15 xorg-libXau xorg-libXdmcp util-linux-uuid" |
pankso@12492 | 16 BUILD_DEPENDS="xorg-libX11-dev expat-dev util-linux-uuid-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 --libexecdir=/usr/lib/dbus \ |
pankso@790 | 23 --sysconfdir=/etc \ |
slaxemulator@10123 | 24 --localstatedir=/var \ |
slaxemulator@10123 | 25 $CONFIGURE_ARGS && |
pankso@16573 | 26 make && make -j 1 install |
pankso@790 | 27 } |
pankso@790 | 28 |
pankso@790 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@790 | 30 genpkg_rules() |
pankso@790 | 31 { |
pankso@790 | 32 mkdir -p $fs/usr/lib $fs/usr/share |
slaxemulator@11088 | 33 cp -a $install/etc $fs |
slaxemulator@11088 | 34 cp -a $install/var $fs |
slaxemulator@11088 | 35 cp -a $install/usr/bin $fs/usr |
slaxemulator@11088 | 36 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@11088 | 37 cp -a $install/usr/lib/dbus $fs/usr/lib |
pankso@12492 | 38 # Remove helper --> dbus-helper |
pankso@790 | 39 rm $fs/usr/lib/dbus/dbus-daemon-launch-helper |
slaxemulator@11088 | 40 cp -a $install/usr/share/dbus* $fs/usr/share |
pankso@790 | 41 # Init script |
slaxemulator@11088 | 42 cp -a $stuff/etc $fs |
pankso@790 | 43 chown -R root.root $fs |
pankso@790 | 44 } |
pankso@790 | 45 |
pankso@790 | 46 pre_install() |
pankso@790 | 47 { |
pankso@790 | 48 # Go for echoing on configuration files if any messagebus user |
pankso@790 | 49 # was found. |
al@18663 | 50 if ! grep -qs 'messagebus' "$1/etc/passwd"; then |
al@18663 | 51 action 'Adding user: messagebus...' |
al@18663 | 52 echo 'messagebus:x:25:25:DBUS Daemon User:/dev/null:/bin/false' >> "$1/etc/passwd" |
al@18663 | 53 echo 'messagebus:!:14013:0:99999:7:::' >> "$1/etc/shadow" |
al@18663 | 54 echo 'messagebus:x:25:' >> "$1/etc/group" |
al@18663 | 55 echo 'messagebus:!::' >> "$1/etc/gshadow" |
pankso@790 | 56 status |
pankso@790 | 57 fi |
al@18663 | 58 if ! grep -qs ^DBUS_OPTIONS "$1/etc/daemons.conf"; then |
al@18663 | 59 action 'Configuring %s/etc/daemons.conf...' "$1" |
al@18663 | 60 cat >> "$1/etc/daemons.conf" << "EOT" |
pankso@790 | 61 # DBUS daemon options. |
pankso@790 | 62 DBUS_OPTIONS="--system" |
pankso@790 | 63 |
pankso@790 | 64 EOT |
pankso@790 | 65 status |
pankso@790 | 66 fi |
al@18663 | 67 [ -d "$1/var/run" ] || mkdir -p "$1/var/run" |
pankso@790 | 68 } |
pankso@790 | 69 |
pankso@790 | 70 pre_remove() |
pankso@790 | 71 { |
slaxemulator@11088 | 72 if [ -z "$1" ]; then |
pascal@15646 | 73 /etc/init.d/dbus stop 2> /dev/null |
slaxemulator@11088 | 74 deluser messagebus |
slaxemulator@11088 | 75 fi |
pankso@790 | 76 } |