wok view udisks2/receipt @ rev 15002

Add some GPL2 licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 21:12:16 2013 +0000 (2013-08-10)
parents 58941a070b50
children 96fd065ed4ea
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 LICENSE="GPL2"
9 SOURCE="udisks"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.freedesktop.org/wiki/Software/udisks"
12 WGET_URL="http://udisks.freedesktop.org/releases/$TARBALL"
14 DEPENDS="expat libatasmart libxslt udev libgudev polkit dbus util-linux-mount \
15 dbus-helper"
16 BUILD_DEPENDS="expat-dev libatasmart-dev libxslt-dev udev-dev libgudev-dev \
17 polkit-dev dbus-dev dbus-glib-dev pcre-dev dbus-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 ./configure \
24 --sysconfdir=/etc \
25 --localstatedir=/var \
26 --disable-static \
27 --disable-gtk-doc \
28 $CONFIGURE_ARGS &&
29 # Build fails when build doc even with docbook-xsl installed.
30 sed -i s'/SUBDIRS =.*/SUBDIRS = data udisks src tools po/' Makefile &&
31 make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/etc/polkit-1/localauthority/90-mandatory.d \
38 $fs/usr/lib $fs/usr/share $fs/etc/udev
39 cp -a $install/etc/dbus-1 $fs/etc
40 cp -a $install/lib/udev $fs/etc
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/sbin $fs/usr
43 cp -a $install/usr/lib/udisks2 $fs/usr/lib
44 cp -a $install/usr/lib/*.so* $fs/usr/lib
45 cp -a $install/usr/share/*-1 $fs/usr/share
46 cp -a $install/var $fs
47 #we don't have consolekit and don't want systemd so we need
48 #a rule to give disk group complete access to udisks2
49 #methods without password.
50 cp $stuff/org.freedesktop.udisks2.pkla \
51 $fs/etc/polkit-1/localauthority/90-mandatory.d
52 }