wok view dbus/receipt @ rev 2827
Add netsurf (Fast and light web browser)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 29 21:33:46 2009 +0200 (2009-04-29) |
parents | 1344bb3ef87d |
children | d32e2ee46d0c |
line source
1 # SliTaz package receipt.
3 PACKAGE="dbus"
4 VERSION="1.2.4"
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"
9 BUILD_DEPENDS="xorg-libX11-dev expat-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 cp -a ../dbus-$(echo "$VERSION" | sed 's/\..\./.d./')/. .
20 ./configure \
21 --prefix=/usr \
22 --libexecdir=/usr/lib/dbus \
23 --sysconfdir=/etc \
24 --localstatedir=/var \
25 --mandir=/usr/share/man \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$PWD/_pkg install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib $fs/usr/share
35 cp -a $_pkg/etc $fs
36 cp -a $_pkg/var $fs
37 cp -a $_pkg/usr/bin $fs/usr
38 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
39 cp -a $_pkg/usr/lib/dbus $fs/usr/lib
40 # Remove helper (600 Kb).
41 rm $fs/usr/lib/dbus/dbus-daemon-launch-helper
42 cp -a $_pkg/usr/share/dbus* $fs/usr/share
43 # Init script
44 cp -a stuff/etc $fs
45 chown -R root.root $fs
46 }
48 pre_install()
49 {
50 local root
51 root=$1
52 # Go for echoing on configuration files if any messagebus user
53 # was found.
54 if ! grep -q 'messagebus' $root/etc/passwd; then
55 echo -n "Adding user: messagebus..."
56 echo 'messagebus:x:25:25:DBUS Daemon User:/dev/null:/bin/false' >> $root/etc/passwd
57 echo 'messagebus:!:14013:0:99999:7:::' >> $root/etc/shadow
58 echo 'messagebus:x:25:' >> $root/etc/group
59 echo 'messagebus:!::' >> $root/etc/gshadow
60 status
61 fi
62 if ! grep -q ^DBUS_OPTIONS $root/etc/daemons.conf; then
63 echo -n "Configuring $root/etc/daemons.conf..."
64 cat >> $root/etc/daemons.conf << "EOT"
65 # DBUS daemon options.
66 DBUS_OPTIONS="--system"
68 EOT
69 status
70 fi
71 }
73 pre_remove()
74 {
75 /etc/init.d/dbus stop
76 deluser messagebus
77 }