Magellan Linux

Contents of /branches/R11-unstable/extras/udisks/udisks-1.0.5-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32390 - (show annotations) (download)
Mon Apr 29 12:25:58 2019 UTC (4 years, 11 months ago) by niro
File size: 1994 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="udisks"
4 PVER="1.0.5"
5 PBUILD="r1"
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.40
13 >= sys-apps/dbus-1.8
14 >= dev-libs/dbus-glib-0.102
15 >= sys-fs/udev-211
16 >= sys-apps/polkit-0.112
17 >= sys-fs/parted-3.1
18 >= sys-fs/lvm2-2.02.85
19 >= dev-libs/libatasmart-0.18
20 >= sys-apps/sg3-utils-1.36
21 >= virtual/eject
22 >= net-dns/avahi-0.6.31"
23
24 SDEPEND=">= dev-util/pkgconfig-0.25
25 >= dev-util/intltool-0.50
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 # fix install locations for usr-move
55 # use configure not configure.ac as we need gtkdoc-utils for regen
56 sed -i -e 's:slashlibdir=/lib:slashlibdir=/usr/lib:g' \
57 -e 's:slashsbindir=/sbin:slashsbindir=/usr/sbin:g' configure || die
58 }
59
60 src_compile()
61 {
62 cd ${SRCDIR}
63
64 mconfigure \
65 --libexecdir=/usr/$(mlibdir)/${PNAME} \
66 --localstatedir=/var \
67 --disable-static \
68 --disable-verbose-mode \
69 --disable-gtk-doc \
70 --enable-nls \
71 --enable-man-pages \
72 --enable-remote-access \
73 || die
74
75 mmake || die
76 }
77
78 src_install()
79 {
80 cd ${SRCDIR}
81 mmake DESTDIR=${BINDIR} install || die
82 mkeepdir /media || die
83
84 # remove /var/run using /tmp
85 if [[ -d ${BINDIR}/var/run ]]
86 then
87 rm -r ${BINDIR}/var/run || die
88 fi
89
90 minstalldocs COPYING ChangeLog NEWS README TODO || die
91 }
92
93 preinstall()
94 {
95 # adds plugdev group
96 ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
97 }