Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12843 - (show annotations) (download)
Wed Jul 4 08:48:12 2012 UTC (11 years, 11 months ago) by niro
File size: 1670 byte(s)
-marked stable
1 # $Id$
2
3 PNAME="procps"
4 PVER="3.2.8"
5 PBUILD="r8"
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 # fix install location to be compat with usr-move
46 all-abis 'sed -i
47 -e "s:\$(DESTDIR)/bin/:\$(DESTDIR)/usr/bin/:"
48 -e "s:\$(DESTDIR)/sbin/:\$(DESTDIR)/usr/sbin/:"
49 -e "s:\$(DESTDIR)/\$(lib64)/:\$(DESTDIR)/usr/\$(lib64)/:"
50 Makefile || die'
51 }
52
53 src_compile()
54 {
55 mmake m64="" || die
56 }
57
58 src_install()
59 {
60 # needed directories
61 minstalldir /usr/include/proc || die
62
63 all-abis make DESTDIR=${BINDIR} lib64='$(mlibdir)' install || die
64
65 # install missing headers
66 minstallfile proc/\*.h /usr/include/proc || die
67
68 # docs
69 minstalldocs AUTHORS BUGS COPYING* NEWS README* TODO ps/HACKING sysctl.conf || die
70 }