wok view dbus/receipt @ rev 17991

fusecloop: fix realloc index size
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 23 15:42:00 2015 +0200 (2015-04-23)
parents fd764265ec1e
children 124c3a7da04f
line source
1 # SliTaz package receipt.
3 PACKAGE="dbus"
4 VERSION="1.6.22"
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"
12 HOST_ARCH="i486 arm"
14 DEPENDS="expat xorg-libX11 slitaz-base-files xorg-libICE xorg-libSM \
15 xorg-libXau xorg-libXdmcp util-linux-uuid"
16 BUILD_DEPENDS="xorg-libX11-dev expat-dev util-linux-uuid-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure \
22 --libexecdir=/usr/lib/dbus \
23 --sysconfdir=/etc \
24 --localstatedir=/var \
25 $CONFIGURE_ARGS &&
26 make && make -j 1 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 $install/etc $fs
34 cp -a $install/var $fs
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/lib/*.so* $fs/usr/lib
37 cp -a $install/usr/lib/dbus $fs/usr/lib
38 # Remove helper --> dbus-helper
39 rm $fs/usr/lib/dbus/dbus-daemon-launch-helper
40 cp -a $install/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 -qs '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 -qs ^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 [ -d $root/var/run ] || mkdir -p $root/var/run
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 }