wok-next annotate dbus/receipt @ rev 21651
updated fftw (3.3.6-pl2 -> 3.3.8)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jun 26 20:55:50 2020 +0100 (2020-06-26) |
parents | e19ff076dc63 |
children |
rev | line source |
---|---|
al@19781 | 1 # SliTaz package receipt v2. |
pankso@790 | 2 |
pankso@790 | 3 PACKAGE="dbus" |
Hans-G?nter@21579 | 4 VERSION="1.12.18" |
pankso@790 | 5 CATEGORY="x-window" |
al@19647 | 6 SHORT_DESC="D-Bus, a message bus system" |
Hans-G?nter@21579 | 7 MAINTAINER="maintainer@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
al@19647 | 9 WEB_SITE="https://www.freedesktop.org/wiki/Software/dbus/" |
al@20895 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/dbus.html" |
pankso@790 | 11 |
al@19647 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19647 | 13 WGET_URL="https://dbus.freedesktop.org/releases/dbus/$TARBALL" |
Hans-G?nter@21579 | 14 # 1.12.12 TARBALL_SHA1="ff61dc5bb7e3b4dd86444f4a72fb54378edc54fa" |
al@19647 | 15 |
al@21094 | 16 COOKOPTS="force-arch" # different .h |
al@21094 | 17 |
Hans-G?nter@21579 | 18 BUILD_DEPENDS="expat-dev glib-dev libice-dev libsm-dev libx11-dev |
Hans-G?nter@21579 | 19 libxslt libxml2-tools xmlto" # docbook-xsl |
al@21020 | 20 SPLIT="$PACKAGE-helper $PACKAGE-introspect $PACKAGE $PACKAGE-dev" |
pankso@12492 | 21 |
al@21085 | 22 COPY_helper="dbus-daemon-launch-helper" |
al@21085 | 23 COPY_introspect="introspect.*" |
al@21085 | 24 |
al@21085 | 25 DEPENDS_helper="$PACKAGE expat" |
al@21085 | 26 DEPENDS_introspect="libxml2-tools" |
al@21085 | 27 DEPENDS_std="expat libx11 slitaz-base-files" |
al@21085 | 28 |
al@21085 | 29 CAT_helper="x-window|dbus-daemon-launch-helper" |
al@21085 | 30 CAT_introspect="development|introspect DTD & XSL" |
al@21085 | 31 |
al@21085 | 32 CONFIG_FILES_std="/etc/dbus-1/session.conf /etc/dbus-1/system.conf /etc/dbus-1/system.d/" |
al@21085 | 33 |
Hans-G?nter@21579 | 34 compile_rules() |
Hans-G?nter@21579 | 35 { |
al@20443 | 36 # temporarily: --disable-xml-docs |
Hans-G?nter@21579 | 37 ./configure \ |
Hans-G?nter@21579 | 38 --disable-doxygen-docs \ |
Hans-G?nter@21579 | 39 --disable-xml-docs \ |
Hans-G?nter@21579 | 40 --disable-static \ |
Hans-G?nter@21579 | 41 --with-console-auth-dir=/run/console/ \ |
Hans-G?nter@21579 | 42 --with-system-pid-file=/run/dbus/pid \ |
Hans-G?nter@21579 | 43 --with-system-socket=/run/dbus/system_bus_socket \ |
Hans-G?nter@21579 | 44 --disable-systemd \ |
Hans-G?nter@21579 | 45 --without-systemdsystemunitdir \ |
slaxemulator@10123 | 46 $CONFIGURE_ARGS && |
al@20569 | 47 fix libtool && |
al@20534 | 48 make && |
al@20534 | 49 make -j1 install || return 1 |
al@19781 | 50 |
al@19781 | 51 # Init script |
Hans-G?nter@21579 | 52 cp -a $stuff/etc $install |
Hans-G?nter@21579 | 53 chown -R root.root $install/etc |
al@20018 | 54 |
al@20018 | 55 # docbook stuff |
al@20018 | 56 mkdir -p $install/usr/share/xml/docbook/stylesheet/dbus |
Hans-G?nter@21579 | 57 cp doc/introspect.* $install/usr/share/xml/docbook/stylesheet/dbus |
pankso@790 | 58 } |
pankso@790 | 59 |
Hans-G?nter@21579 | 60 pre_install_dbus() |
Hans-G?nter@21579 | 61 { |
pankso@790 | 62 # Go for echoing on configuration files if any messagebus user |
pankso@790 | 63 # was found. |
Hans-G?nter@21579 | 64 if ! grep -qs 'messagebus' "$1/etc/passwd" |
Hans-G?nter@21579 | 65 then |
al@19652 | 66 chroot "$1/" addgroup -g25 -S messagebus |
al@19858 | 67 chroot "$1/" adduser -h/var/run/dbus -S -D -u25 -G messagebus \ |
al@19652 | 68 -g"D-Bus Message Daemon User" messagebus |
pankso@790 | 69 fi |
Hans-G?nter@21579 | 70 if ! grep -qs ^DBUS_OPTIONS "$1/etc/daemons.conf" |
Hans-G?nter@21579 | 71 then |
al@18663 | 72 action 'Configuring %s/etc/daemons.conf...' "$1" |
al@19647 | 73 cat >> "$1/etc/daemons.conf" <<EOT |
pankso@790 | 74 # DBUS daemon options. |
pankso@790 | 75 DBUS_OPTIONS="--system" |
pankso@790 | 76 |
pankso@790 | 77 EOT |
pankso@790 | 78 status |
pankso@790 | 79 fi |
al@19782 | 80 mkdir -p "$1/var/run" "$1/var/lib/dbus" |
pankso@790 | 81 } |
pankso@790 | 82 |
al@19866 | 83 #post_install_dbus() { |
al@19866 | 84 # # Mount /dev to fix an error: |
al@19866 | 85 # # Failed to generate UUID: Could not open /dev/urandom: Permission denied |
al@19866 | 86 # [ -z "$1" ] || mount -o bind /dev "$1/dev" |
al@19866 | 87 # chroot "$1/" dbus-uuidgen --ensure |
al@19866 | 88 # [ -z "$1" ] || umount "$1/dev" |
al@19866 | 89 #} |
al@19781 | 90 |
Hans-G?nter@21579 | 91 pre_remove_dbus() |
Hans-G?nter@21579 | 92 { |
Hans-G?nter@21579 | 93 if [ -z "$1" ] |
Hans-G?nter@21579 | 94 then |
pascal@19695 | 95 /etc/init.d/dbus stop |
al@19781 | 96 fi 2>/dev/null |
al@19781 | 97 chroot "$1/" deluser messagebus |
al@19781 | 98 chroot "$1/" delgroup messagebus |
pankso@790 | 99 } |
al@19781 | 100 |
Hans-G?nter@21579 | 101 post_install_dbus_helper() |
Hans-G?nter@21579 | 102 { |
al@19781 | 103 local i="$1/usr/libexec/dbus-daemon-launch-helper" |
al@19781 | 104 chown root:messagebus $i |
al@19781 | 105 chmod 4750 $i |
al@19781 | 106 } |
al@20018 | 107 |
Hans-G?nter@21579 | 108 post_install_dbus_introspect() |
Hans-G?nter@21579 | 109 { |
al@20018 | 110 U="http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd" |
al@20018 | 111 F="file:///usr/share/xml/docbook/stylesheet/dbus/introspect.dtd" |
al@20018 | 112 |
al@20018 | 113 # Create a /etc/xml/catalog file |
al@20018 | 114 mkdir -p "$1/etc/xml" |
al@20018 | 115 [ ! -f "$1/etc/xml/catalog" ] && |
al@20018 | 116 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog |
al@20018 | 117 |
al@20018 | 118 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" "$U" "$F" /etc/xml/catalog |
al@20018 | 119 chroot "$1/" xmlcatalog --noout --add "rewriteURI" "$U" "$F" /etc/xml/catalog |
al@20018 | 120 } |