wok-current view dbus/receipt @ rev 20583

libglw-mesa, libglu-mesa, connman: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 14 17:11:28 2018 +0100 (2018-12-14)
parents 2429812d90ab
children 6222d1b9c074
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 # Go for echoing on configuration files if any messagebus user
49 # was found.
50 if ! grep -qs 'messagebus' "$1/etc/passwd"; then
51 action 'Adding user: messagebus...'
52 echo 'messagebus:x:25:25:DBUS Daemon User:/dev/null:/bin/false' >> "$1/etc/passwd"
53 echo 'messagebus:!:14013:0:99999:7:::' >> "$1/etc/shadow"
54 echo 'messagebus:x:25:' >> "$1/etc/group"
55 echo 'messagebus:!::' >> "$1/etc/gshadow"
56 status
57 fi
58 if ! grep -qs ^DBUS_OPTIONS "$1/etc/daemons.conf"; then
59 action 'Configuring %s/etc/daemons.conf...' "$1"
60 cat >> "$1/etc/daemons.conf" << "EOT"
61 # DBUS daemon options.
62 DBUS_OPTIONS="--system"
64 EOT
65 status
66 fi
67 [ -d "$1/var/run" ] || mkdir -p "$1/var/run"
68 }
70 pre_remove()
71 {
72 if [ -z "$1" ]; then
73 /etc/init.d/dbus stop 2> /dev/null
74 deluser messagebus
75 fi
76 }