wok-6.x view udisks2/receipt @ rev 14927

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