wok-next annotate dbus/receipt @ rev 16143
ethumb-dev: sync version
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 26 10:18:25 2014 +0100 (2014-03-26) |
parents | e585bcc8453e |
children | ddb71f9fd845 |
rev | line source |
---|---|
pankso@790 | 1 # SliTaz package receipt. |
pankso@790 | 2 |
pankso@790 | 3 PACKAGE="dbus" |
slaxemulator@13378 | 4 VERSION="1.6.4" |
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 cd $src |
pankso@790 | 22 ./configure \ |
pankso@790 | 23 --libexecdir=/usr/lib/dbus \ |
pankso@790 | 24 --sysconfdir=/etc \ |
slaxemulator@10123 | 25 --localstatedir=/var \ |
slaxemulator@10123 | 26 $CONFIGURE_ARGS && |
pascal@1527 | 27 make && |
slaxemulator@8246 | 28 make -j 1 install |
pankso@790 | 29 } |
pankso@790 | 30 |
pankso@790 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@790 | 32 genpkg_rules() |
pankso@790 | 33 { |
pankso@790 | 34 mkdir -p $fs/usr/lib $fs/usr/share |
slaxemulator@11088 | 35 cp -a $install/etc $fs |
slaxemulator@11088 | 36 cp -a $install/var $fs |
slaxemulator@11088 | 37 cp -a $install/usr/bin $fs/usr |
slaxemulator@11088 | 38 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@11088 | 39 cp -a $install/usr/lib/dbus $fs/usr/lib |
pankso@12492 | 40 # Remove helper --> dbus-helper |
pankso@790 | 41 rm $fs/usr/lib/dbus/dbus-daemon-launch-helper |
slaxemulator@11088 | 42 cp -a $install/usr/share/dbus* $fs/usr/share |
pankso@790 | 43 # Init script |
slaxemulator@11088 | 44 cp -a $stuff/etc $fs |
pankso@790 | 45 chown -R root.root $fs |
pankso@790 | 46 } |
pankso@790 | 47 |
pankso@790 | 48 pre_install() |
pankso@790 | 49 { |
slaxemulator@13099 | 50 local root |
slaxemulator@13099 | 51 root=$1 |
pankso@790 | 52 # Go for echoing on configuration files if any messagebus user |
pankso@790 | 53 # was found. |
pascal@15646 | 54 if ! grep -qs 'messagebus' $root/etc/passwd; then |
pankso@790 | 55 echo -n "Adding user: messagebus..." |
pankso@790 | 56 echo 'messagebus:x:25:25:DBUS Daemon User:/dev/null:/bin/false' >> $root/etc/passwd |
pankso@790 | 57 echo 'messagebus:!:14013:0:99999:7:::' >> $root/etc/shadow |
pankso@790 | 58 echo 'messagebus:x:25:' >> $root/etc/group |
pankso@790 | 59 echo 'messagebus:!::' >> $root/etc/gshadow |
pankso@790 | 60 status |
pankso@790 | 61 fi |
pascal@15646 | 62 if ! grep -qs ^DBUS_OPTIONS $root/etc/daemons.conf; then |
pankso@790 | 63 echo -n "Configuring $root/etc/daemons.conf..." |
pankso@790 | 64 cat >> $root/etc/daemons.conf << "EOT" |
pankso@790 | 65 # DBUS daemon options. |
pankso@790 | 66 DBUS_OPTIONS="--system" |
pankso@790 | 67 |
pankso@790 | 68 EOT |
pankso@790 | 69 status |
pankso@790 | 70 fi |
pankso@790 | 71 } |
pankso@790 | 72 |
pankso@790 | 73 pre_remove() |
pankso@790 | 74 { |
slaxemulator@11088 | 75 if [ -z "$1" ]; then |
pascal@15646 | 76 /etc/init.d/dbus stop 2> /dev/null |
slaxemulator@11088 | 77 deluser messagebus |
slaxemulator@11088 | 78 fi |
pankso@790 | 79 } |