wok annotate udisks2/receipt @ rev 17420
Up tazusb (4.2.6)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Dec 03 21:07:02 2014 +0100 (2014-12-03) |
parents | 7896f0694ef6 |
children | f517baa7c91e |
rev | line source |
---|---|
monghitri@14125 | 1 # SliTaz package receipt. |
monghitri@14125 | 2 |
monghitri@14125 | 3 PACKAGE="udisks2" |
al@17280 | 4 VERSION="2.1.3" |
monghitri@14125 | 5 CATEGORY="system-tools" |
al@17280 | 6 SHORT_DESC="D-Bus service to access and manipulate storage devices" |
monghitri@14125 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
al@17280 | 9 TARBALL="udisks-$VERSION.tar.bz2" |
monghitri@14125 | 10 WEB_SITE="http://www.freedesktop.org/wiki/Software/udisks" |
monghitri@14125 | 11 WGET_URL="http://udisks.freedesktop.org/releases/$TARBALL" |
monghitri@14125 | 12 |
al@17280 | 13 DEPENDS="libatasmart libgudev polkit" |
al@17280 | 14 BUILD_DEPENDS="libxslt-dev gobject-introspection-dev libgudev-dev polkit-dev \ |
al@17280 | 15 libatasmart-dev expat-dev" |
monghitri@14125 | 16 |
monghitri@14125 | 17 # Rules to configure and make the package. |
monghitri@14125 | 18 compile_rules() |
monghitri@14125 | 19 { |
monghitri@14125 | 20 ./configure \ |
monghitri@14125 | 21 --sysconfdir=/etc \ |
monghitri@14125 | 22 --localstatedir=/var \ |
monghitri@14125 | 23 --disable-static \ |
al@17280 | 24 --disable-gtk-doc-html \ |
al@17280 | 25 --with-udevdir=/etc/udev \ |
al@17280 | 26 $CONFIGURE_ARGS |
monghitri@14125 | 27 # Build fails when build doc even with docbook-xsl installed. |
al@17280 | 28 sed -i '/^SUBDIRS/ s|doc||' Makefile |
monghitri@14125 | 29 make && make install |
monghitri@14125 | 30 } |
monghitri@14125 | 31 |
monghitri@14125 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
monghitri@14125 | 33 genpkg_rules() |
monghitri@14125 | 34 { |
monghitri@14125 | 35 mkdir -p $fs/etc/polkit-1/localauthority/90-mandatory.d \ |
al@17280 | 36 $fs/usr/lib $fs/usr/share |
al@17280 | 37 |
al@17280 | 38 cp -a $install/etc $fs |
monghitri@14125 | 39 cp -a $install/usr/bin $fs/usr |
monghitri@14125 | 40 cp -a $install/usr/sbin $fs/usr |
monghitri@14125 | 41 cp -a $install/usr/lib/udisks2 $fs/usr/lib |
monghitri@14125 | 42 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@17280 | 43 cp -a $install/usr/share/dbus-1 $fs/usr/share |
al@17280 | 44 cp -a $install/usr/share/polkit-1 $fs/usr/share |
monghitri@14125 | 45 cp -a $install/var $fs |
al@17280 | 46 |
al@17280 | 47 # we don't have consolekit and don't want systemd, so we need |
al@17280 | 48 # a rule to give disk group complete access to udisks2 |
al@17280 | 49 # methods without password. |
al@17280 | 50 cp $stuff/*.pkla $fs/etc/polkit-1/localauthority/90-mandatory.d |
monghitri@14125 | 51 } |