Contents of /trunk/extras/udisks2/udisks2-1.97.0-r2.smage2
Parent Directory | Revision Log
Revision 12478 -
(show annotations)
(download)
Wed May 30 16:20:28 2012 UTC (12 years, 3 months ago) by niro
File size: 1986 byte(s)
Wed May 30 16:20:28 2012 UTC (12 years, 3 months ago) by niro
File size: 1986 byte(s)
-fixed dependencies and use plugdev as admin group
1 | # $Id$ |
2 | |
3 | PNAME="udisks2" |
4 | PVER="1.97.0" |
5 | PBUILD="r2" |
6 | |
7 | PCAT="sys-fs" |
8 | |
9 | DESCRIPTION="Daemon providing interfaces to work with storage devices." |
10 | HOMEPAGE="http://www.freedesktop.org/wiki/Software/udisks" |
11 | |
12 | DEPEND=">= dev-libs/glib2-2.32 |
13 | >= sys-apps/dbus-1.5 |
14 | >= sys-fs/udev-181 |
15 | >= sys-apps/polkit-0.104 |
16 | >= sys-apps/acl-2.2 |
17 | >= sys-apps/util-linux-2.20 |
18 | >= sys-fs/parted-1.8.8 |
19 | >= sys-fs/cryptsetup-1.4 |
20 | >= dev-libs/libatasmart-0.18 |
21 | >= sys-apps/eject-2.1.5" |
22 | |
23 | SDEPEND=">= dev-util/pkgconfig-0.25 |
24 | >= dev-util/intltool-0.50 |
25 | >= dev-libs/libxslt-1.1.26 |
26 | >= app-text/docbook-xsl-stylesheets-1.76 |
27 | >= dev-libs/gobject-introspection-1.32" |
28 | |
29 | SRCFILE="udisks-${PVER}.tar.bz2" |
30 | SRCDIR="${BUILDDIR}/udisks-${PVER}" |
31 | |
32 | sminclude mtools |
33 | |
34 | SRC_URI=( |
35 | http://udisks.freedesktop.org/releases/${SRCFILE} |
36 | mirror://${PNAME}/${SRCFILE} |
37 | mirror://${PNAME}/${PNAME}-1.94.0-ntfs-3g.patch |
38 | ) |
39 | |
40 | UP2DATE="updatecmd_freedesktop udisks" |
41 | |
42 | src_prepare() |
43 | { |
44 | munpack ${SRCFILE} || die |
45 | cd ${SRCDIR} |
46 | |
47 | # support ntfs-3g |
48 | mpatch ${PNAME}-1.94.0-ntfs-3g.patch || die |
49 | } |
50 | |
51 | src_compile() |
52 | { |
53 | cd ${SRCDIR} |
54 | |
55 | mconfigure \ |
56 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ |
57 | --localstatedir=/var \ |
58 | --disable-static \ |
59 | --disable-gtk-doc \ |
60 | --enable-introspection \ |
61 | --with-systemdsystemunitdir=/usr/lib/systemd/system \ |
62 | || die |
63 | |
64 | mmake || die |
65 | } |
66 | |
67 | src_install() |
68 | { |
69 | cd ${SRCDIR} |
70 | mmake DESTDIR=${BINDIR} install || die |
71 | mkeepdir /media || die |
72 | mkeepdir /var/lib/udisks2 || die |
73 | |
74 | # create polkit local authority file to allow users in plugdev group mount devices |
75 | minstalldir /var/lib/polkit-1/localauthority/10-vendor.d || die |
76 | MCONFIG="/var/lib/polkit-1/localauthority/10-vendor.d/01-org.freedesktop.udisks2.pkla" |
77 | mclearconfig || die |
78 | maddconfig '[Local users]' || die |
79 | maddconfig 'Identity=unix-group:plugdev' || die |
80 | maddconfig 'Action=org.freedesktop.udisks2.*' || die |
81 | maddconfig 'ResultAny=yes' || die |
82 | maddconfig 'ResultInactive=no' || die |
83 | maddconfig 'ResultActive=yes' || die |
84 | |
85 | minstalldocs COPYING ChangeLog NEWS README TODO || die |
86 | } |