wok-current view udisks/receipt @ rev 14081
udisks: add a polkit rule to make disk group use udisks without password, udisks should work now
author | ernia <monghitri@aruba.it> |
---|---|
date | Fri Feb 22 20:29:00 2013 +0000 (2013-02-22) |
parents | df1ef8b7ecf0 |
children | c9d7f33c4d65 |
line source
1 # SliTaz package receipt.
3 PACKAGE="udisks"
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.freedesktop.org/wiki/Software/udisks"
10 WGET_URL="http://udisks.freedesktop.org/releases/$TARBALL"
12 DEPENDS="expat libatasmart libxslt udev libgudev polkit dbus util-linux-mount"
13 BUILD_DEPENDS="expat-dev libatasmart-dev libxslt-dev udev-dev libgudev-dev \
14 polkit-dev dbus-dev dbus-glib-dev pcre-dev dbus-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --sysconfdir=/etc \
22 --localstatedir=/var \
23 --disable-static \
24 --disable-gtk-doc \
25 $CONFIGURE_ARGS &&
26 # Build fails when build doc even with docbook-xsl installed.
27 sed -i s'/SUBDIRS =.*/SUBDIRS = data udisks src tools po/' Makefile &&
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/etc/polkit-1/localauthority/90-mandatory.d \
35 $fs/usr/lib $fs/usr/share
36 cp -a $install/etc/dbus-1 $fs/etc
37 cp -a $install/lib/udev $fs/etc
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/sbin $fs/usr
40 cp -a $install/usr/lib/udisks2 $fs/usr/lib
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 cp -a $install/usr/share/*-1 $fs/usr/share
43 cp -a $install/var $fs
44 #we don't have consolekit and don't want systemd so we need
45 #a rule to give disk group complete access to udisks2
46 #methods without password.
47 cp $stuff/org.freedesktop.udisks2.pkla \
48 $fs/etc/polkit-1/localauthority/90-mandatory.d
49 }