Contents of /branches/magellan-next/core/pm-utils/pm-utils-1.4.1-r1.smage2
Parent Directory | Revision Log
Revision 8220 -
(show annotations)
(download)
Wed Jul 13 09:30:37 2011 UTC (13 years, 2 months ago) by niro
File size: 1834 byte(s)
Wed Jul 13 09:30:37 2011 UTC (13 years, 2 months ago) by niro
File size: 1834 byte(s)
auto added: ver bump to 1.4.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="pm-utils" |
4 | PVER="1.4.1" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | |
9 | DESCRIPTION="Suspend and hibernation utilities." |
10 | HOMEPAGE="http://pm-utils.freedesktop.org/" |
11 | |
12 | DEPEND=">= sys-apps/dbus-1.4 |
13 | >= sys-apps/util-linux-2.19 |
14 | >= sys-apps/procps-3.2 |
15 | >= sys-apps/pm-quirks-2010" |
16 | |
17 | SDEPEND=">= app-text/xmlto-0.0.23 |
18 | >= app-text/docbook-xml-dtd-9 |
19 | >= app-text/docbook-xsl-stylesheets-1.75" |
20 | |
21 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
22 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
23 | |
24 | sminclude mtools |
25 | |
26 | SRC_URI=( |
27 | http://pm-utils.freedesktop.org/releases/${SRCFILE} |
28 | mirror://${PNAME}/${SRCFILE} |
29 | mirror://${PNAME}/${PNAME}-${PVER}-bluetooth-sync.patch |
30 | mirror://${PNAME}/${PNAME}-${PVER}-disable-sata-alpm.patch |
31 | mirror://${PNAME}/${PNAME}-${PVER}-fix-intel-audio-powersave-hook.patch |
32 | mirror://${PNAME}/${PNAME}-${PVER}-logging-append.patch |
33 | ) |
34 | |
35 | UP2DATE="updatecmd_freedesktop ${PNAME} gz" |
36 | |
37 | src_prepare() |
38 | { |
39 | munpack ${SRCFILE} || die |
40 | cd ${SRCDIR} |
41 | |
42 | # fix bluetooth issues |
43 | mpatch ${PNAME}-${PVER}-bluetooth-sync.patch || die |
44 | # disable alpm sata controller |
45 | mpatch ${PNAME}-${PVER}-disable-sata-alpm.patch || die |
46 | # fix intel audio |
47 | mpatch ${PNAME}-${PVER}-fix-intel-audio-powersave-hook.patch || die |
48 | # append logs, do not overwrite |
49 | mpatch ${PNAME}-${PVER}-logging-append.patch || die |
50 | } |
51 | |
52 | src_compile() |
53 | { |
54 | cd ${SRCDIR} |
55 | |
56 | mconfigure --disable-doc || die |
57 | mmake || die |
58 | } |
59 | |
60 | src_install() |
61 | { |
62 | cd ${SRCDIR} |
63 | mmake DESTDIR=${BINDIR} install || die |
64 | |
65 | # ignore grub and clock hooks |
66 | minstalldir /etc/pm/config.d || die |
67 | echo 'HOOK_BLACKLIST="01grub 90clock"' > ${BINDIR}/etc/pm/config.d/blacklisted || die |
68 | |
69 | # networkmanager has native hibernation support |
70 | rm ${BINDIR}/usr/$(mlibdir)/pm-utils/sleep.d/55NetworkManager || die |
71 | |
72 | minstallman man/\*.1 || die |
73 | minstallman man/\*.8 || die |
74 | |
75 | minstalldocs AUTHORS ChangeLog COPYING NEWS pm/HOWTO* README* TODO || die |
76 | } |