wok-next view dbus/receipt @ rev 16146
Move kompozer to undigest (not compiling for a long time and not realy maintained)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 26 21:49:28 2014 +0100 (2014-03-26) |
parents | e585bcc8453e |
children | ddb71f9fd845 |
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"
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 cd $src
22 ./configure \
23 --libexecdir=/usr/lib/dbus \
24 --sysconfdir=/etc \
25 --localstatedir=/var \
26 $CONFIGURE_ARGS &&
27 make &&
28 make -j 1 install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib $fs/usr/share
35 cp -a $install/etc $fs
36 cp -a $install/var $fs
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/lib/*.so* $fs/usr/lib
39 cp -a $install/usr/lib/dbus $fs/usr/lib
40 # Remove helper --> dbus-helper
41 rm $fs/usr/lib/dbus/dbus-daemon-launch-helper
42 cp -a $install/usr/share/dbus* $fs/usr/share
43 # Init script
44 cp -a $stuff/etc $fs
45 chown -R root.root $fs
46 }
48 pre_install()
49 {
50 local root
51 root=$1
52 # Go for echoing on configuration files if any messagebus user
53 # was found.
54 if ! grep -qs 'messagebus' $root/etc/passwd; then
55 echo -n "Adding user: messagebus..."
56 echo 'messagebus:x:25:25:DBUS Daemon User:/dev/null:/bin/false' >> $root/etc/passwd
57 echo 'messagebus:!:14013:0:99999:7:::' >> $root/etc/shadow
58 echo 'messagebus:x:25:' >> $root/etc/group
59 echo 'messagebus:!::' >> $root/etc/gshadow
60 status
61 fi
62 if ! grep -qs ^DBUS_OPTIONS $root/etc/daemons.conf; then
63 echo -n "Configuring $root/etc/daemons.conf..."
64 cat >> $root/etc/daemons.conf << "EOT"
65 # DBUS daemon options.
66 DBUS_OPTIONS="--system"
68 EOT
69 status
70 fi
71 }
73 pre_remove()
74 {
75 if [ -z "$1" ]; then
76 /etc/init.d/dbus stop 2> /dev/null
77 deluser messagebus
78 fi
79 }