wok view dbus/receipt @ rev 24070
Up harfbuzz (2.8.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 06 14:28:49 2021 +0000 (2021-07-06) |
parents | 96ef6ba30769 |
children | b547eecf9b74 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dbus"
4 VERSION="1.12.18"
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 current_version()
21 {
22 local branch=$(wget -O - $WEB_SITE 2>/dev/null | sed '/>stable</!d;s|.*dbus-||;s|/NEWS.*||')
23 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
24 sed "/dbus-$branch/!d;s|.*dbus-||;s|.tar.*||" | sed '$!d'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --libexecdir=/usr/lib/dbus \
32 --sysconfdir=/etc \
33 --localstatedir=/var \
34 $CONFIGURE_ARGS &&
35 make &&
36 make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib
43 mkdir -p $fs/usr/share
45 cp -a $install/etc $fs
46 cp -a $install/var $fs
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/lib/*.so* $fs/usr/lib
49 cp -a $install/usr/lib/dbus $fs/usr/lib
50 cp -a $install/usr/share/dbus* $fs/usr/share
52 # Init script
53 cp -a $stuff/etc $fs
55 # Remove helper --> dbus-helper
56 rm $fs/usr/lib/dbus/dbus-daemon-launch-helper
58 chown -R root.root $fs
59 }
61 pre_install()
62 {
63 # Go for echoing on configuration files if any messagebus user
64 # was found.
65 if ! grep -qs 'messagebus' "$1/etc/passwd"
66 then
67 action 'Adding user: messagebus...'
68 echo 'messagebus:x:25:25:DBUS Daemon User:/dev/null:/bin/false' >> "$1/etc/passwd"
69 echo 'messagebus:!:14013:0:99999:7:::' >> "$1/etc/shadow"
70 echo 'messagebus:x:25:' >> "$1/etc/group"
71 echo 'messagebus:!::' >> "$1/etc/gshadow"
72 status
73 fi
74 if ! grep -qs ^DBUS_OPTIONS "$1/etc/daemons.conf"
75 then
76 action 'Configuring %s/etc/daemons.conf...' "$1"
77 cat >> "$1/etc/daemons.conf" << "EOT"
78 # DBUS daemon options.
79 DBUS_OPTIONS="--system"
81 EOT
82 status
83 fi
85 [ -d "$1/var/run" ] || mkdir -p "$1/var/run"
86 }
88 pre_remove()
89 {
90 if [ -z "$1" ]
91 then
92 /etc/init.d/dbus stop 2> /dev/null
93 deluser messagebus
94 fi
95 }