Magellan Linux

Contents of /trunk/core/pmount/pmount-0.9.20-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3653 - (show annotations) (download)
Thu Oct 29 00:09:27 2009 UTC (14 years, 6 months ago) by niro
File size: 1489 byte(s)
auto added: ver bump to 0.9.20-r1
1 # $Id$
2
3 PNAME="pmount"
4 PVER="0.9.20"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-apps"
8 STATE="unstable"
9
10 DESCRIPTION="pmount allows normal users to mount devices without any entries in /etc/fstab."
11 HOMEPAGE="http://pmount.alioth.debian.org/"
12
13 DEPEND=">= sys-apps/util-linux-2.16
14 >= sys-apps/dbus-1.3
15 >= sys-apps/hal-0.5.13"
16
17 SRCFILE="${PNAME}-${PVER}.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude mbuild
21
22 SRC_URI=(
23 https://alioth.debian.org/frs/download.php/3127/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 mirror://${PNAME}/${PNAME}-0.9.13-dbus-close.patch
26 mirror://${PNAME}/${PNAME}-${PVER}-ext4.patch
27 )
28
29 UP2DATE="updatecmd http://www.piware.de/projects/ | grep ${PNAME}- | lasttarball gz"
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34 cd ${SRCDIR}
35
36 # do not close a shared connection, fixes crashes with dbus 1.0
37 mpatch ${PNAME}-0.9.13-dbus-close.patch || die
38
39 # support for ext4
40 mpatch ${PNAME}-${PVER}-ext4.patch || die
41 }
42
43 src_compile()
44 {
45 cd ${SRCDIR}
46 mconfigure --enable-hal || die
47 mmake || die
48 }
49
50 src_install()
51 {
52 cd ${SRCDIR}
53 mmake DESTDIR=${BINDIR} install || die
54
55 # fix permissions
56 chgrp plugdev ${BINDIR}/usr/bin/{pmount,pumount,pmount-hal} || die
57 chmod 4710 ${BINDIR}/usr/bin/{pmount,pumount,pmount-hal} || die
58
59 minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die
60 }
61
62 preinstall()
63 {
64 # adds plugdev group
65 ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
66 }
67
68 postinstall()
69 {
70 # needed by pmount
71 [ ! -d ${MROOT}/media ] && install -o root -g root -d ${MROOT}/media
72 }

Properties

Name Value
svn:keywords Id