Contents of /trunk/core/pmount/pmount-0.9.13-r10.smage2
Parent Directory | Revision Log
Revision 1214 -
(show annotations)
(download)
Sun Apr 26 12:21:24 2009 UTC (15 years, 5 months ago) by niro
File size: 1363 byte(s)
Sun Apr 26 12:21:24 2009 UTC (15 years, 5 months ago) by niro
File size: 1363 byte(s)
-rev bump to 0.9.13-r10; rebuild
1 | # $Id$ |
2 | |
3 | PNAME="pmount" |
4 | PVER="0.9.13" |
5 | PBUILD="r10" |
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://www.piware.de/projects.shtml" |
12 | |
13 | DEPEND=">= sys-fs/sysfsutils-2.0 |
14 | >= sys-apps/dbus-1.2 |
15 | >= sys-apps/hal-0.5.11" |
16 | |
17 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
19 | |
20 | sminclude mbuild |
21 | |
22 | SRC_URI=( |
23 | http://www.piware.de/projects/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | mirror://${PNAME}/${PNAME}-${PVER}-dbus-close.patch |
26 | ) |
27 | |
28 | UP2DATE="updatecmd http://www.piware.de/projects/ | grep ${PNAME}- | lasttarball gz" |
29 | |
30 | src_prepare() |
31 | { |
32 | munpack ${SRCFILE} || die |
33 | cd ${SRCDIR} |
34 | |
35 | # do not close a shared connection, fixes crashes with dbus 1.0 |
36 | mpatch ${PNAME}-${PVER}-dbus-close.patch || die |
37 | } |
38 | |
39 | src_compile() |
40 | { |
41 | cd ${SRCDIR} |
42 | mconfigure --enable-hal || die |
43 | mmake || die |
44 | } |
45 | |
46 | src_install() |
47 | { |
48 | cd ${SRCDIR} |
49 | mmake DESTDIR=${BINDIR} install || die |
50 | |
51 | # fix permissions |
52 | chgrp plugdev ${BINDIR}/usr/bin/{pmount,pumount,pmount-hal} || die |
53 | chmod 4710 ${BINDIR}/usr/bin/{pmount,pumount,pmount-hal} || die |
54 | |
55 | minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die |
56 | } |
57 | |
58 | preinstall() |
59 | { |
60 | # adds plugdev group |
61 | ${MLIBDIR}/mgroupadd -o "-g 302" plugdev |
62 | } |
63 | |
64 | postinstall() |
65 | { |
66 | # needed by pmount |
67 | [ ! -d ${MROOT}/media ] && install -o root -g root -d ${MROOT}/media |
68 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |