wok view dbus/receipt @ rev 12302
Up iptables (1.4.13)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 17 08:30:01 2012 +0200 (2012-04-17) |
parents | 7cd6fe509e75 |
children | 73641efed1cc |
line source
1 # SliTaz package receipt.
3 PACKAGE="dbus"
4 VERSION="1.4.16"
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 $install/etc $fs
33 cp -a $install/var $fs
34 cp -a $install/usr/bin $fs/usr
35 cp -a $install/usr/lib/*.so* $fs/usr/lib
36 cp -a $install/usr/lib/dbus $fs/usr/lib
37 # Remove helper (600 Kb).
38 rm $fs/usr/lib/dbus/dbus-daemon-launch-helper
39 cp -a $install/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 if [ -z "$1" ]; then
73 /etc/init.d/dbus stop
74 deluser messagebus
75 fi
76 }