Annotation of /trunk/extras/udisks/udisks-1.0.4-r4.smage2
Parent Directory | Revision Log
Revision 12753 -
(hide annotations)
(download)
Mon Jul 2 14:37:15 2012 UTC (12 years, 2 months ago) by niro
File size: 2395 byte(s)
Mon Jul 2 14:37:15 2012 UTC (12 years, 2 months ago) by niro
File size: 2395 byte(s)
-marked unstable
1 | niro | 12703 | # $Id$ |
2 | |||
3 | PNAME="udisks" | ||
4 | PVER="1.0.4" | ||
5 | PBUILD="r4" | ||
6 | |||
7 | PCAT="sys-fs" | ||
8 | niro | 12753 | STATE="unstable" |
9 | niro | 12703 | |
10 | DESCRIPTION="Daemon providing interfaces to work with storage devices." | ||
11 | HOMEPAGE="http://www.freedesktop.org/wiki/Software/udisks" | ||
12 | |||
13 | DEPEND=">= dev-libs/glib2-2.28 | ||
14 | >= sys-apps/dbus-1.5 | ||
15 | >= dev-libs/dbus-glib-0.98 | ||
16 | >= sys-fs/udev-175 | ||
17 | >= sys-apps/polkit-0.101 | ||
18 | >= sys-fs/parted-1.8.8 | ||
19 | >= sys-fs/lvm2-2.02.85 | ||
20 | >= dev-libs/libatasmart-0.17 | ||
21 | >= sys-apps/sg3-utils-1.31 | ||
22 | >= sys-apps/eject-2.1.5 | ||
23 | >= net-dns/avahi-0.6.30" | ||
24 | |||
25 | SDEPEND=">= dev-util/pkgconfig-0.25 | ||
26 | >= dev-util/intltool-0.41 | ||
27 | >= dev-libs/libxslt-1.1.26 | ||
28 | >= app-text/docbook-xsl-stylesheets-1.76" | ||
29 | |||
30 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
31 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
32 | |||
33 | sminclude mtools | ||
34 | |||
35 | SRC_URI=( | ||
36 | http://hal.freedesktop.org/releases/${SRCFILE} | ||
37 | mirror://${PNAME}/${SRCFILE} | ||
38 | mirror://${PNAME}/${PNAME}-1.0.3-ntfs3g.patch | ||
39 | mirror://${PNAME}/${PNAME}-1.0.3-tmp.patch | ||
40 | ) | ||
41 | |||
42 | UP2TARBALL="${PNAME}" | ||
43 | UP2DATE="updatecmd_freedesktop hal gz" | ||
44 | |||
45 | src_prepare() | ||
46 | { | ||
47 | munpack ${SRCFILE} || die | ||
48 | cd ${SRCDIR} | ||
49 | |||
50 | # support ntfs-3g | ||
51 | mpatch ${PNAME}-1.0.3-ntfs3g.patch || die | ||
52 | # don't use /var/run/udisks but /tmp | ||
53 | mpatch ${PNAME}-1.0.3-tmp.patch || die | ||
54 | |||
55 | # fix install locations for usr-move | ||
56 | # use configure not configure.ac as we need gtkdoc-utils for regen | ||
57 | sed -i -e 's:slashlibdir=/lib:slashlibdir=/usr/lib:g' \ | ||
58 | -e 's:slashsbindir=/sbin:slashsbindir=/usr/sbin:g' configure || die | ||
59 | } | ||
60 | |||
61 | src_compile() | ||
62 | { | ||
63 | cd ${SRCDIR} | ||
64 | |||
65 | mconfigure \ | ||
66 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ | ||
67 | --localstatedir=/var \ | ||
68 | --disable-static \ | ||
69 | --disable-verbose-mode \ | ||
70 | --disable-gtk-doc \ | ||
71 | --enable-nls \ | ||
72 | --enable-man-pages \ | ||
73 | --enable-remote-access \ | ||
74 | || die | ||
75 | |||
76 | mmake || die | ||
77 | } | ||
78 | |||
79 | src_install() | ||
80 | { | ||
81 | cd ${SRCDIR} | ||
82 | mmake DESTDIR=${BINDIR} install || die | ||
83 | mkeepdir /media || die | ||
84 | |||
85 | # remove /var/run using /tmp | ||
86 | if [[ -d ${BINDIR}/var/run ]] | ||
87 | then | ||
88 | rm -r ${BINDIR}/var/run || die | ||
89 | fi | ||
90 | |||
91 | # create polkit local authority file to allow users in plugdev group mount devices | ||
92 | minstalldir /var/lib/polkit-1/localauthority/10-vendor.d || die | ||
93 | cat > ${BINDIR}/var/lib/polkit-1/localauthority/10-vendor.d/01-org.freedesktop.udisks.pkla << EOF | ||
94 | [Local users] | ||
95 | Identity=unix-group:plugdev | ||
96 | Action=org.freedesktop.udisks.* | ||
97 | ResultAny=yes | ||
98 | ResultInactive=no | ||
99 | ResultActive=yes | ||
100 | EOF | ||
101 | |||
102 | minstalldocs COPYING ChangeLog NEWS README TODO || die | ||
103 | } | ||
104 | |||
105 | preinstall() | ||
106 | { | ||
107 | # adds plugdev group | ||
108 | ${MLIBDIR}/mgroupadd -o "-g 302" plugdev | ||
109 | } |