wok-next annotate udisks/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents 1ff723a6455b
children d5aab818505e
rev   line source
al@20464 1 # SliTaz package receipt v2.
monghitri@14135 2
monghitri@14135 3 PACKAGE="udisks"
al@20647 4 VERSION="1.0.5"
monghitri@14135 5 CATEGORY="system-tools"
al@20464 6 SHORT_DESC="D-Bus interfaces to query and manipulate storage devices"
monghitri@14135 7 MAINTAINER="pankso@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
al@20464 9 WEB_SITE="http://www.freedesktop.org/wiki/Software/udisks"
al@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/udisks.html"
al@20464 11
monghitri@14135 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
monghitri@14135 13 WGET_URL="http://hal.freedesktop.org/releases/$TARBALL"
pascal@15002 14
al@20623 15 BUILD_DEPENDS="libatasmart-dev eudev-dev sg3_utils-dev libgudev-dev \
al@20647 16 polkit-dev dbus-dev dbus-glib-dev pcre-dev dbus-dev parted-dev \
al@20647 17 libdevmapper-dev util-linux-blkid-dev util-linux-uuid-dev intltool libxslt \
al@20647 18 docbook-xsl"
al@20464 19 SPLIT="udisks-dev"
monghitri@14135 20
al@20464 21 compile_rules() {
al@20647 22 # fix glibc-2.24 issue
al@20647 23 sed 's@#include <stdio\.h>@#include <sys/stat.h>\n#include <stdio.h>@' \
al@20647 24 -i src/helpers/job-drive-detach.c
al@20647 25
monghitri@14135 26 ./configure \
monghitri@14135 27 --disable-remote-access \
monghitri@14135 28 $CONFIGURE_ARGS &&
al@20604 29 fix libtool &&
al@20534 30 make &&
al@20647 31 make \
al@20647 32 profiledir=/etc/bash_completion.d \
al@20647 33 install || return 1
al@20647 34
al@20647 35 # we don't have consolekit and don't want systemd so we need
al@20647 36 # a rule to give disk group complete access to udisks2
al@20647 37 # methods without password.
al@20647 38 install -Dm644 $stuff/org.freedesktop.udisks.pkla \
al@20647 39 $install/etc/polkit-1/localauthority/90-mandatory.d/org.freedesktop.udisks.pkla
monghitri@14135 40 }
monghitri@14135 41
al@20464 42 genpkg_rules() {
al@20464 43 case $PACKAGE in
al@20464 44 udisks)
al@20647 45 copy @std
al@20647 46 DEPENDS="dbus dbus-glib eudev glib libatasmart libdevmapper \
al@20647 47 libgudev libsgutils2 parted polkit bash sg3_utils \
al@20647 48 util-linux-blkid dbus-helper util-linux-mount lsof" # not sure...
al@20464 49 ;;
al@20464 50 *-dev)
al@20604 51 copy @dev
al@20464 52 ;;
al@20464 53 esac
monghitri@14135 54 }