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