wok view dbus/receipt @ rev 1163

e2fsprogs: spin off libcomerr
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 29 12:25:48 2008 +0000 (2008-07-29)
parents b5d96006ea44
children 25178b5b6fbe
line source
1 # SliTaz package receipt.
3 PACKAGE="dbus"
4 VERSION="1.2.1"
5 CATEGORY="x-window"
6 SHORT_DESC="D-Bus is a message bus system."
7 DEPENDS="expat xorg-libX11 slitaz-base-files"
8 BUILD_DEPENDS="xorg-libX11-dev"
9 MAINTAINER="pankso@slitaz.org"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.freedesktop.org/wiki/Software/dbus"
12 WGET_URL="http://dbus.freedesktop.org/releases/dbus/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure \
19 --prefix=/usr \
20 --libexecdir=/usr/lib/dbus \
21 --sysconfdir=/etc \
22 --localstatedir=/var \
23 --mandir=/usr/share/man \
24 $CONFIGURE_ARGS
25 make
26 make DESTDIR=$PWD/_pkg 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 $_pkg/etc $fs
34 cp -a $_pkg/var $fs
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
37 cp -a $_pkg/usr/lib/dbus $fs/usr/lib
38 # Remove helper (600 Kb).
39 rm $fs/usr/lib/dbus/dbus-daemon-launch-helper
40 cp -a $_pkg/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 local root
49 root=$1
50 # Go for echoing on configuration files if any messagebus user
51 # was found.
52 if ! grep -q 'messagebus' $root/etc/passwd; then
53 echo -n "Adding user: messagebus..."
54 echo 'messagebus:x:25:25:DBUS Daemon User:/dev/null:/bin/false' >> $root/etc/passwd
55 echo 'messagebus:!:14013:0:99999:7:::' >> $root/etc/shadow
56 echo 'messagebus:x:25:' >> $root/etc/group
57 echo 'messagebus:!::' >> $root/etc/gshadow
58 status
59 fi
60 if ! grep -q ^DBUS_OPTIONS $root/etc/daemons.conf; then
61 echo -n "Configuring $root/etc/daemons.conf..."
62 cat >> $root/etc/daemons.conf << "EOT"
63 # DBUS daemon options.
64 DBUS_OPTIONS="--system"
66 EOT
67 status
68 fi
69 }
71 pre_remove()
72 {
73 /etc/init.d/dbus stop
74 deluser messagebus
75 }