wok-6.x view dbus/receipt @ rev 13059

Up: git to 1.7.11.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Jun 20 17:12:28 2012 +0000 (2012-06-20)
parents 73641efed1cc
children fca38b6cee76
line source
1 # SliTaz package receipt.
3 PACKAGE="dbus"
4 VERSION="1.4.20"
5 CATEGORY="x-window"
6 SHORT_DESC="D-Bus is a message bus system."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.freedesktop.org/wiki/Software/dbus"
10 WGET_URL="http://dbus.freedesktop.org/releases/dbus/$TARBALL"
12 DEPENDS="expat xorg-libX11 slitaz-base-files xorg-libICE xorg-libSM \
13 xorg-libXau xorg-libXdmcp util-linux-uuid"
14 BUILD_DEPENDS="xorg-libX11-dev expat-dev util-linux-uuid-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --libexecdir=/usr/lib/dbus \
22 --sysconfdir=/etc \
23 --localstatedir=/var \
24 $CONFIGURE_ARGS &&
25 make &&
26 make -j 1 install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib $fs/usr/share
33 cp -a $install/etc $fs
34 cp -a $install/var $fs
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/lib/*.so* $fs/usr/lib
37 cp -a $install/usr/lib/dbus $fs/usr/lib
38 # Remove helper --> dbus-helper
39 rm $fs/usr/lib/dbus/dbus-daemon-launch-helper
40 cp -a $install/usr/share/dbus* $fs/usr/share
41 # Init script
42 cp -a $stuff/etc $fs
43 chown -R root.root $fs
44 }
46 pre_install()
47 {
48 # Go for echoing on configuration files if any messagebus user
49 # was found.
50 if ! grep -q 'messagebus' $root/etc/passwd; then
51 echo -n "Adding user: messagebus..."
52 echo 'messagebus:x:25:25:DBUS Daemon User:/dev/null:/bin/false' >> $root/etc/passwd
53 echo 'messagebus:!:14013:0:99999:7:::' >> $root/etc/shadow
54 echo 'messagebus:x:25:' >> $root/etc/group
55 echo 'messagebus:!::' >> $root/etc/gshadow
56 status
57 fi
58 if ! grep -q ^DBUS_OPTIONS $root/etc/daemons.conf; then
59 echo -n "Configuring $root/etc/daemons.conf..."
60 cat >> $root/etc/daemons.conf << "EOT"
61 # DBUS daemon options.
62 DBUS_OPTIONS="--system"
64 EOT
65 status
66 fi
67 }
69 pre_remove()
70 {
71 if [ -z "$1" ]; then
72 /etc/init.d/dbus stop
73 deluser messagebus
74 fi
75 }