wok-current annotate dbus/receipt @ rev 24428

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