Magellan Linux

Annotation of /branches/magellan-next/core/udisks/udisks-1.0.3-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8350 - (hide annotations) (download)
Fri Jul 15 07:43:01 2011 UTC (12 years, 10 months ago) by niro
File size: 2145 byte(s)
auto added: ver bump to 1.0.3-r3
1 niro 8350 # $Id$
2    
3     PNAME="udisks"
4     PVER="1.0.3"
5     PBUILD="r3"
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}-${PVER}-ntfs3g.patch
38     mirror://${PNAME}/${PNAME}-${PVER}-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}-${PVER}-ntfs3g.patch || die
51     # don't use /var/run/udisks but /tmp
52     mpatch ${PNAME}-${PVER}-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
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     }