wok annotate udisks2/receipt @ rev 16674
Up slitaz-arm-rpi with new piborg, piface, pibrella
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 15 21:56:18 2014 +0200 (2014-05-15) |
parents | 58941a070b50 |
children | 96fd065ed4ea |
rev | line source |
---|---|
monghitri@14125 | 1 # SliTaz package receipt. |
monghitri@14125 | 2 |
monghitri@14125 | 3 PACKAGE="udisks2" |
monghitri@14125 | 4 VERSION="1.94.0" |
monghitri@14125 | 5 CATEGORY="system-tools" |
monghitri@14125 | 6 SHORT_DESC="D-Bus interfaces to query and manipulate storage devices." |
monghitri@14125 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
monghitri@14125 | 9 SOURCE="udisks" |
monghitri@14125 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
monghitri@14125 | 11 WEB_SITE="http://www.freedesktop.org/wiki/Software/udisks" |
monghitri@14125 | 12 WGET_URL="http://udisks.freedesktop.org/releases/$TARBALL" |
monghitri@14125 | 13 |
monghitri@14125 | 14 DEPENDS="expat libatasmart libxslt udev libgudev polkit dbus util-linux-mount \ |
monghitri@14125 | 15 dbus-helper" |
monghitri@14125 | 16 BUILD_DEPENDS="expat-dev libatasmart-dev libxslt-dev udev-dev libgudev-dev \ |
monghitri@14125 | 17 polkit-dev dbus-dev dbus-glib-dev pcre-dev dbus-dev" |
monghitri@14125 | 18 |
monghitri@14125 | 19 # Rules to configure and make the package. |
monghitri@14125 | 20 compile_rules() |
monghitri@14125 | 21 { |
monghitri@14125 | 22 cd $src |
monghitri@14125 | 23 ./configure \ |
monghitri@14125 | 24 --sysconfdir=/etc \ |
monghitri@14125 | 25 --localstatedir=/var \ |
monghitri@14125 | 26 --disable-static \ |
monghitri@14125 | 27 --disable-gtk-doc \ |
monghitri@14125 | 28 $CONFIGURE_ARGS && |
monghitri@14125 | 29 # Build fails when build doc even with docbook-xsl installed. |
monghitri@14125 | 30 sed -i s'/SUBDIRS =.*/SUBDIRS = data udisks src tools po/' Makefile && |
monghitri@14125 | 31 make && make install |
monghitri@14125 | 32 } |
monghitri@14125 | 33 |
monghitri@14125 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
monghitri@14125 | 35 genpkg_rules() |
monghitri@14125 | 36 { |
monghitri@14125 | 37 mkdir -p $fs/etc/polkit-1/localauthority/90-mandatory.d \ |
monghitri@14125 | 38 $fs/usr/lib $fs/usr/share $fs/etc/udev |
monghitri@14125 | 39 cp -a $install/etc/dbus-1 $fs/etc |
monghitri@14125 | 40 cp -a $install/lib/udev $fs/etc |
monghitri@14125 | 41 cp -a $install/usr/bin $fs/usr |
monghitri@14125 | 42 cp -a $install/usr/sbin $fs/usr |
monghitri@14125 | 43 cp -a $install/usr/lib/udisks2 $fs/usr/lib |
monghitri@14125 | 44 cp -a $install/usr/lib/*.so* $fs/usr/lib |
monghitri@14125 | 45 cp -a $install/usr/share/*-1 $fs/usr/share |
monghitri@14125 | 46 cp -a $install/var $fs |
monghitri@14125 | 47 #we don't have consolekit and don't want systemd so we need |
monghitri@14125 | 48 #a rule to give disk group complete access to udisks2 |
monghitri@14125 | 49 #methods without password. |
monghitri@14125 | 50 cp $stuff/org.freedesktop.udisks2.pkla \ |
monghitri@14125 | 51 $fs/etc/polkit-1/localauthority/90-mandatory.d |
monghitri@14125 | 52 } |