wok-6.x view dbus/receipt @ rev 22840
Up cryptsetup (2.3.0, supports the BitLocker format)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 12 11:04:59 2020 +0100 (2020-02-12) |
parents | 124c3a7da04f |
children | 96ef6ba30769 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dbus"
4 VERSION="1.12.16"
5 CATEGORY="x-window"
6 SHORT_DESC="A message bus system."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.freedesktop.org/wiki/Software/dbus/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://dbus.freedesktop.org/releases/dbus/$TARBALL"
14 DEPENDS="expat slitaz-base-files util-linux-uuid xorg-libICE
15 xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp"
16 BUILD_DEPENDS="expat-dev util-linux-uuid-dev xorg-libX11-dev"
18 HOST_ARCH="i486 arm"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 ./configure \
24 --libexecdir=/usr/lib/dbus \
25 --sysconfdir=/etc \
26 --localstatedir=/var \
27 $CONFIGURE_ARGS &&
28 make &&
29 make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib
36 mkdir -p $fs/usr/share
38 cp -a $install/etc $fs
39 cp -a $install/var $fs
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 cp -a $install/usr/lib/dbus $fs/usr/lib
43 cp -a $install/usr/share/dbus* $fs/usr/share
45 # Init script
46 cp -a $stuff/etc $fs
48 # Remove helper --> dbus-helper
49 rm $fs/usr/lib/dbus/dbus-daemon-launch-helper
51 chown -R root.root $fs
52 }
54 pre_install()
55 {
56 # Go for echoing on configuration files if any messagebus user
57 # was found.
58 if ! grep -qs 'messagebus' "$1/etc/passwd"
59 then
60 action 'Adding user: messagebus...'
61 echo 'messagebus:x:25:25:DBUS Daemon User:/dev/null:/bin/false' >> "$1/etc/passwd"
62 echo 'messagebus:!:14013:0:99999:7:::' >> "$1/etc/shadow"
63 echo 'messagebus:x:25:' >> "$1/etc/group"
64 echo 'messagebus:!::' >> "$1/etc/gshadow"
65 status
66 fi
67 if ! grep -qs ^DBUS_OPTIONS "$1/etc/daemons.conf"
68 then
69 action 'Configuring %s/etc/daemons.conf...' "$1"
70 cat >> "$1/etc/daemons.conf" << "EOT"
71 # DBUS daemon options.
72 DBUS_OPTIONS="--system"
74 EOT
75 status
76 fi
78 [ -d "$1/var/run" ] || mkdir -p "$1/var/run"
79 }
81 pre_remove()
82 {
83 if [ -z "$1" ]
84 then
85 /etc/init.d/dbus stop 2> /dev/null
86 deluser messagebus
87 fi
88 }