wok view dbus/receipt @ rev 14626
Up: cups to 1.6.2.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Jun 01 12:06:52 2013 +0000 (2013-06-01) |
parents | fca38b6cee76 |
children | 7896f0694ef6 |
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.freedesktop.org/wiki/Software/dbus"
10 WGET_URL="http://dbus.freedesktop.org/releases/dbus/$TARBALL"
12 DEPENDS="expat xorg-libX11 slitaz-base-files xorg-libICE xorg-libSM \
13 xorg-libXau xorg-libXdmcp util-linux-uuid"
14 BUILD_DEPENDS="xorg-libX11-dev expat-dev util-linux-uuid-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --libexecdir=/usr/lib/dbus \
22 --sysconfdir=/etc \
23 --localstatedir=/var \
24 $CONFIGURE_ARGS &&
25 make &&
26 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 -q '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 -q ^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 }
71 pre_remove()
72 {
73 if [ -z "$1" ]; then
74 /etc/init.d/dbus stop
75 deluser messagebus
76 fi
77 }