Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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