Magellan Linux

Annotation of /branches/R11-stable/extras/pm-utils/pm-utils-1.4.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10325 - (hide annotations) (download)
Fri Jan 20 22:13:32 2012 UTC (12 years, 5 months ago) by niro
Original Path: trunk/core/pm-utils/pm-utils-1.4.1-r1.smage2
File size: 1828 byte(s)
-import from magellan-next
1 niro 8220 # $Id$
2    
3     PNAME="pm-utils"
4     PVER="1.4.1"
5     PBUILD="r1"
6    
7 niro 10325 PCAT="sys-apps"
8 niro 8220
9     DESCRIPTION="Suspend and hibernation utilities."
10     HOMEPAGE="http://pm-utils.freedesktop.org/"
11    
12 niro 10325 DEPEND=">= sys-apps/dbus-1.5
13 niro 8220 >= 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     }