Magellan Linux

Contents of /trunk/core/procps/procps-3.2.8-r7.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11336 - (show annotations) (download)
Sat Mar 3 12:39:15 2012 UTC (12 years, 3 months ago) by niro
File size: 1423 byte(s)
-added a patch to enable cgroup support in ps
1 # $Id$
2
3 PNAME="procps"
4 PVER="3.2.8"
5 PBUILD="r7"
6
7 PCAT="sys-apps"
8
9 DESCRIPTION="Standard informational utilities and process-handling tools -ps top tload snice vmstat."
10 HOMEPAGE="http://procps.sourceforge.net/"
11
12 DEPEND=">= sys-libs/ncurses-5.9"
13
14 SRCFILE="${PNAME}-${PVER}.tar.gz"
15 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16
17 sminclude mtools multilib
18 msetfeature "!check"
19
20 SRC_URI=(
21 http://procps.sourceforge.net/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/3.2.5-top-sort.patch
24 mirror://${PNAME}/${PNAME}-${PVER}-make382-fix.patch
25 mirror://${PNAME}/${PNAME}-${PVER}-cgroup.patch
26 )
27
28 # do not use updatecmd_sourceforge; there is nothing
29 UP2DATE="updatecmd ${HOMEPAGE} | lasttarball gz"
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34
35 # fix terminal breakage when sorting first column in top
36 mpatch 3.2.5-top-sort.patch || die
37
38 # add cgroup support to ps
39 mpatch ${PNAME}-${PVER}-cgroup.patch || die
40
41 # fixes compile issues with make-3.8.2
42 # see: http://comments.gmane.org/gmane.comp.gnu.make.bugs/4768
43 mpatch ${PNAME}-${PVER}-make382-fix.patch || die
44 }
45
46 src_compile()
47 {
48 mmake m64="" || die
49 }
50
51 src_install()
52 {
53 # needed directories
54 minstalldir /usr/include/proc || die
55
56 all-abis make DESTDIR=${BINDIR} lib64='$(mlibdir)' install || die
57
58 # install missing headers
59 minstallfile proc/\*.h /usr/include/proc || die
60
61 # docs
62 minstalldocs AUTHORS BUGS COPYING* NEWS README* TODO ps/HACKING sysctl.conf || die
63 }