wok-stable annotate dbus/receipt @ rev 11623

amule, emelfm2, fpm2, gcolor2, gftp, grisbi; grsync, htop, hydrogen, kino, lingot, listpatron, lostirc, mitter, mplayer*, notecase, obconf, osmo, sakura, sylpheed, tilda, transmission, xine-ui, xsane: install .desktop file
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jan 24 22:51:41 2012 +0100 (2012-01-24)
parents 7cd6fe509e75
children
rev   line source
pankso@790 1 # SliTaz package receipt.
pankso@790 2
pankso@790 3 PACKAGE="dbus"
slaxemulator@11088 4 VERSION="1.4.16"
pankso@790 5 CATEGORY="x-window"
pankso@790 6 SHORT_DESC="D-Bus is a message bus system."
pascal@2488 7 DEPENDS="expat xorg-libX11 slitaz-base-files xorg-libICE xorg-libSM \
pankso@4112 8 xorg-libXau xorg-libXdmcp util-linux-ng-uuid"
pankso@4112 9 BUILD_DEPENDS="xorg-libX11-dev expat-dev util-linux-ng-uuid-dev"
pankso@790 10 MAINTAINER="pankso@slitaz.org"
pankso@790 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@790 12 WEB_SITE="http://www.freedesktop.org/wiki/Software/dbus"
pankso@790 13 WGET_URL="http://dbus.freedesktop.org/releases/dbus/$TARBALL"
pankso@790 14
pankso@790 15 # Rules to configure and make the package.
pankso@790 16 compile_rules()
pankso@790 17 {
pankso@790 18 cd $src
pankso@790 19 ./configure \
pankso@790 20 --libexecdir=/usr/lib/dbus \
pankso@790 21 --sysconfdir=/etc \
slaxemulator@10123 22 --localstatedir=/var \
slaxemulator@10123 23 $CONFIGURE_ARGS &&
pascal@1527 24 make &&
slaxemulator@8246 25 make -j 1 install
pankso@790 26 }
pankso@790 27
pankso@790 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@790 29 genpkg_rules()
pankso@790 30 {
pankso@790 31 mkdir -p $fs/usr/lib $fs/usr/share
slaxemulator@11088 32 cp -a $install/etc $fs
slaxemulator@11088 33 cp -a $install/var $fs
slaxemulator@11088 34 cp -a $install/usr/bin $fs/usr
slaxemulator@11088 35 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@11088 36 cp -a $install/usr/lib/dbus $fs/usr/lib
pankso@790 37 # Remove helper (600 Kb).
pankso@790 38 rm $fs/usr/lib/dbus/dbus-daemon-launch-helper
slaxemulator@11088 39 cp -a $install/usr/share/dbus* $fs/usr/share
pankso@790 40 # Init script
slaxemulator@11088 41 cp -a $stuff/etc $fs
pankso@790 42 chown -R root.root $fs
pankso@790 43 }
pankso@790 44
pankso@790 45 pre_install()
pankso@790 46 {
pankso@790 47 local root
pankso@790 48 root=$1
pankso@790 49 # Go for echoing on configuration files if any messagebus user
pankso@790 50 # was found.
pankso@790 51 if ! grep -q 'messagebus' $root/etc/passwd; then
pankso@790 52 echo -n "Adding user: messagebus..."
pankso@790 53 echo 'messagebus:x:25:25:DBUS Daemon User:/dev/null:/bin/false' >> $root/etc/passwd
pankso@790 54 echo 'messagebus:!:14013:0:99999:7:::' >> $root/etc/shadow
pankso@790 55 echo 'messagebus:x:25:' >> $root/etc/group
pankso@790 56 echo 'messagebus:!::' >> $root/etc/gshadow
pankso@790 57 status
pankso@790 58 fi
pankso@790 59 if ! grep -q ^DBUS_OPTIONS $root/etc/daemons.conf; then
pankso@790 60 echo -n "Configuring $root/etc/daemons.conf..."
pankso@790 61 cat >> $root/etc/daemons.conf << "EOT"
pankso@790 62 # DBUS daemon options.
pankso@790 63 DBUS_OPTIONS="--system"
pankso@790 64
pankso@790 65 EOT
pankso@790 66 status
pankso@790 67 fi
pankso@790 68 }
pankso@790 69
pankso@790 70 pre_remove()
pankso@790 71 {
slaxemulator@11088 72 if [ -z "$1" ]; then
slaxemulator@11088 73 /etc/init.d/dbus stop
slaxemulator@11088 74 deluser messagebus
slaxemulator@11088 75 fi
pankso@790 76 }