Contents of /branches/magellan-next/core/udisks/udisks-1.0.4-r2.smage2
Parent Directory | Revision Log
Revision 9259 -
(show annotations)
(download)
Thu Nov 24 00:45:13 2011 UTC (12 years, 10 months ago) by niro
File size: 2146 byte(s)
Thu Nov 24 00:45:13 2011 UTC (12 years, 10 months ago) by niro
File size: 2146 byte(s)
-fixed polit rule install
1 | # $Id$ |
2 | |
3 | PNAME="udisks" |
4 | PVER="1.0.4" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="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.28 |
13 | >= sys-apps/dbus-1.4 |
14 | >= dev-libs/dbus-glib-0.92 |
15 | >= sys-fs/udev-171 |
16 | >= sys-apps/polkit-0.101 |
17 | >= sys-fs/parted-1.8.8 |
18 | >=sys-fs/lvm2-2.02.85 |
19 | >=dev-libs/libatasmart-0.17 |
20 | >=sys-apps/sg3-utils-1.31 |
21 | >= sys-apps/eject-2.1.5 |
22 | >= net-dns/avahi-0.6.30" |
23 | |
24 | SDEPEND=">= dev-util/pkgconfig-0.25 |
25 | >=dev-util/intltool-0.41 |
26 | >= dev-libs/libxslt-1.1.26 |
27 | >= app-text/docbook-xsl-stylesheets-1.76" |
28 | |
29 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
30 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
31 | |
32 | sminclude mtools |
33 | |
34 | SRC_URI=( |
35 | http://hal.freedesktop.org/releases/${SRCFILE} |
36 | mirror://${PNAME}/${SRCFILE} |
37 | mirror://${PNAME}/${PNAME}-1.0.3-ntfs3g.patch |
38 | mirror://${PNAME}/${PNAME}-1.0.3-tmp.patch |
39 | ) |
40 | |
41 | UP2TARBALL="${PNAME}" |
42 | UP2DATE="updatecmd_freedesktop hal gz" |
43 | |
44 | src_prepare() |
45 | { |
46 | munpack ${SRCFILE} || die |
47 | cd ${SRCDIR} |
48 | |
49 | # support ntfs-3g |
50 | mpatch ${PNAME}-1.0.3-ntfs3g.patch || die |
51 | # don't use /var/run/udisks but /tmp |
52 | mpatch ${PNAME}-1.0.3-tmp.patch || die |
53 | } |
54 | |
55 | src_compile() |
56 | { |
57 | cd ${SRCDIR} |
58 | |
59 | mconfigure \ |
60 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ |
61 | --localstatedir=/var \ |
62 | --disable-static \ |
63 | --disable-verbose-mode \ |
64 | --disable-gtk-doc \ |
65 | --enable-nls \ |
66 | --enable-man-pages \ |
67 | --enable-remote-access \ |
68 | || die |
69 | |
70 | mmake || die |
71 | } |
72 | |
73 | src_install() |
74 | { |
75 | cd ${SRCDIR} |
76 | mmake DESTDIR=${BINDIR} install || die |
77 | mkeepdir /media || die |
78 | |
79 | # remove /var/run using /tmp |
80 | if [[ -d ${BINDIR}/var/run ]] |
81 | then |
82 | rm -r ${BINDIR}/var/run || die |
83 | fi |
84 | |
85 | # create polkit local authority file to allow users in plugdev group mount devices |
86 | minstalldir /var/lib/polkit-1/localauthority/10-vendor.d || die |
87 | cat > ${BINDIR}/var/lib/polkit-1/localauthority/10-vendor.d/01-org.freedesktop.udisks.pkla << EOF |
88 | [Local users] |
89 | Identity=unix-group:plugdev |
90 | Action=org.freedesktop.udisks.* |
91 | ResultAny=yes |
92 | ResultInactive=no |
93 | ResultActive=yes |
94 | EOF |
95 | |
96 | minstalldocs COPYING ChangeLog NEWS README TODO || die |
97 | } |
98 | |
99 | preinstall() |
100 | { |
101 | # adds plugdev group |
102 | ${MLIBDIR}/mgroupadd -o "-g 302" plugdev |
103 | } |