wok-current view dbus/receipt @ rev 8467

Add: libofx-dev
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon Feb 07 16:46:28 2011 +0100 (2011-02-07)
parents 6883d7a79a48
children c66ccef23e13
line source
1 # SliTaz package receipt.
3 PACKAGE="dbus"
4 VERSION="1.4.1"
5 CATEGORY="x-window"
6 SHORT_DESC="D-Bus is a message bus system."
7 DEPENDS="expat xorg-libX11 slitaz-base-files xorg-libICE xorg-libSM \
8 xorg-libXau xorg-libXdmcp util-linux-ng-uuid"
9 BUILD_DEPENDS="xorg-libX11-dev expat-dev util-linux-ng-uuid-dev"
10 MAINTAINER="pankso@slitaz.org"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WEB_SITE="http://www.freedesktop.org/wiki/Software/dbus"
13 WGET_URL="http://dbus.freedesktop.org/releases/dbus/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 --libexecdir=/usr/lib/dbus \
21 --sysconfdir=/etc \
22 --localstatedir=/var &&
23 make &&
24 make -j 1 install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/lib $fs/usr/share
31 cp -a $_pkg/etc $fs
32 cp -a $_pkg/var $fs
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
35 cp -a $_pkg/usr/lib/dbus $fs/usr/lib
36 # Remove helper (600 Kb).
37 rm $fs/usr/lib/dbus/dbus-daemon-launch-helper
38 cp -a $_pkg/usr/share/dbus* $fs/usr/share
39 # Init script
40 cp -a stuff/etc $fs
41 chown -R root.root $fs
42 }
44 pre_install()
45 {
46 local root
47 root=$1
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 /etc/init.d/dbus stop
72 deluser messagebus
73 }