Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22516 - (hide annotations) (download)
Wed Oct 22 09:09:20 2014 UTC (9 years, 6 months ago) by niro
Original Path: trunk/extras/pm-utils/pm-utils-1.4.1-r2.smage2
File size: 1831 byte(s)
-mass rebuild of older packages
1 niro 22516 # $Id$
2    
3     PNAME="pm-utils"
4     PVER="1.4.1"
5     PBUILD="r2"
6    
7     PCAT="sys-apps"
8    
9     DESCRIPTION="Suspend and hibernation utilities."
10     HOMEPAGE="http://pm-utils.freedesktop.org/"
11    
12     DEPEND=">= sys-apps/dbus-1.8
13     >= sys-apps/util-linux-2.25
14     >= sys-apps/procps-3.3
15     >= sys-apps/pm-quirks-2010"
16    
17     SDEPEND=">= app-text/xmlto-0.0.26
18     >= app-text/docbook-xml-dtd45-45
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     }