wok view dbus/receipt @ rev 10675
iptables: fix kvers
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 27 11:09:25 2011 +0200 (2011-05-27) |
parents | c66ccef23e13 |
children | e02c4bd5b855 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dbus"
4 VERSION="1.4.8"
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 $CONFIGURE_ARGS &&
24 make &&
25 make -j 1 install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/lib $fs/usr/share
32 cp -a $_pkg/etc $fs
33 cp -a $_pkg/var $fs
34 cp -a $_pkg/usr/bin $fs/usr
35 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
36 cp -a $_pkg/usr/lib/dbus $fs/usr/lib
37 # Remove helper (600 Kb).
38 rm $fs/usr/lib/dbus/dbus-daemon-launch-helper
39 cp -a $_pkg/usr/share/dbus* $fs/usr/share
40 # Init script
41 cp -a stuff/etc $fs
42 chown -R root.root $fs
43 }
45 pre_install()
46 {
47 local root
48 root=$1
49 # Go for echoing on configuration files if any messagebus user
50 # was found.
51 if ! grep -q 'messagebus' $root/etc/passwd; then
52 echo -n "Adding user: messagebus..."
53 echo 'messagebus:x:25:25:DBUS Daemon User:/dev/null:/bin/false' >> $root/etc/passwd
54 echo 'messagebus:!:14013:0:99999:7:::' >> $root/etc/shadow
55 echo 'messagebus:x:25:' >> $root/etc/group
56 echo 'messagebus:!::' >> $root/etc/gshadow
57 status
58 fi
59 if ! grep -q ^DBUS_OPTIONS $root/etc/daemons.conf; then
60 echo -n "Configuring $root/etc/daemons.conf..."
61 cat >> $root/etc/daemons.conf << "EOT"
62 # DBUS daemon options.
63 DBUS_OPTIONS="--system"
65 EOT
66 status
67 fi
68 }
70 pre_remove()
71 {
72 /etc/init.d/dbus stop
73 deluser messagebus
74 }