wok-current view dbus/receipt @ rev 15682
Add WEBSITE URL because need for QA
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Dec 20 20:44:11 2013 +0100 (2013-12-20) |
parents | 7896f0694ef6 |
children | 53082fab5f1e |
line source
1 # SliTaz package receipt.
3 PACKAGE="dbus"
4 VERSION="1.6.4"
5 CATEGORY="x-window"
6 SHORT_DESC="D-Bus is a message bus system."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.freedesktop.org/wiki/Software/dbus"
11 WGET_URL="http://dbus.freedesktop.org/releases/dbus/$TARBALL"
13 DEPENDS="expat xorg-libX11 slitaz-base-files xorg-libICE xorg-libSM \
14 xorg-libXau xorg-libXdmcp util-linux-uuid"
15 BUILD_DEPENDS="xorg-libX11-dev expat-dev util-linux-uuid-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --libexecdir=/usr/lib/dbus \
23 --sysconfdir=/etc \
24 --localstatedir=/var \
25 $CONFIGURE_ARGS &&
26 make &&
27 make -j 1 install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib $fs/usr/share
34 cp -a $install/etc $fs
35 cp -a $install/var $fs
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib/*.so* $fs/usr/lib
38 cp -a $install/usr/lib/dbus $fs/usr/lib
39 # Remove helper --> dbus-helper
40 rm $fs/usr/lib/dbus/dbus-daemon-launch-helper
41 cp -a $install/usr/share/dbus* $fs/usr/share
42 # Init script
43 cp -a $stuff/etc $fs
44 chown -R root.root $fs
45 }
47 pre_install()
48 {
49 local root
50 root=$1
51 # Go for echoing on configuration files if any messagebus user
52 # was found.
53 if ! grep -qs 'messagebus' $root/etc/passwd; then
54 echo -n "Adding user: messagebus..."
55 echo 'messagebus:x:25:25:DBUS Daemon User:/dev/null:/bin/false' >> $root/etc/passwd
56 echo 'messagebus:!:14013:0:99999:7:::' >> $root/etc/shadow
57 echo 'messagebus:x:25:' >> $root/etc/group
58 echo 'messagebus:!::' >> $root/etc/gshadow
59 status
60 fi
61 if ! grep -qs ^DBUS_OPTIONS $root/etc/daemons.conf; then
62 echo -n "Configuring $root/etc/daemons.conf..."
63 cat >> $root/etc/daemons.conf << "EOT"
64 # DBUS daemon options.
65 DBUS_OPTIONS="--system"
67 EOT
68 status
69 fi
70 }
72 pre_remove()
73 {
74 if [ -z "$1" ]; then
75 /etc/init.d/dbus stop 2> /dev/null
76 deluser messagebus
77 fi
78 }