Annotation of /branches/R11-stable/core/lsof/lsof-4.87-r1.smage2
Parent Directory | Revision Log
Revision 15593 -
(hide annotations)
(download)
Mon Jan 7 10:44:35 2013 UTC (11 years, 8 months ago) by niro
File size: 1336 byte(s)
Mon Jan 7 10:44:35 2013 UTC (11 years, 8 months ago) by niro
File size: 1336 byte(s)
-release branches/R11-stable
1 | niro | 15585 | # $Id$ |
2 | |||
3 | PNAME="lsof" | ||
4 | PVER="4.87" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="sys-apps" | ||
8 | |||
9 | DESCRIPTION="A small tool to display information about files open to Unix processes." | ||
10 | HOMEPAGE="http://people.freebsd.org/~abe/" | ||
11 | |||
12 | DEPEND=">= virtual/glibc" | ||
13 | |||
14 | SRCFILE="${PNAME}_${PVER}.tar.bz2" | ||
15 | SRCDIR="${BUILDDIR}/${PNAME}_${PVER}" | ||
16 | |||
17 | sminclude mbuild mtools | ||
18 | msetfeature "!check" | ||
19 | |||
20 | SRC_URI=( | ||
21 | ftp://lsof.itap.purdue.edu/pub/tools/unix/${PNAME}/${SRCFILE} | ||
22 | mirror://${PNAME}/${SRCFILE} | ||
23 | ) | ||
24 | |||
25 | UP2DATE="updatecmd -listonly ftp://lsof.itap.purdue.edu/pub/tools/unix/${PNAME}/ | grep ${PNAME}_[0-9] | sed -n 's:.*_\(.*\)\.tar.*:\1:;$ p'" | ||
26 | |||
27 | src_prepare() | ||
28 | { | ||
29 | munpack ${SRCFILE} || die | ||
30 | cd ${SRCDIR} | ||
31 | # another tarball is integrated | ||
32 | tar xvf ${PNAME}_${PVER}_src.tar || die | ||
33 | } | ||
34 | |||
35 | src_compile() | ||
36 | { | ||
37 | cd ${SRCDIR}/${PNAME}_${PVER}_src | ||
38 | |||
39 | # do not run inventory script | ||
40 | touch .neverInv || die | ||
41 | |||
42 | LINUX_HASSELINUX=n \ | ||
43 | LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \ | ||
44 | LSOF_CFGL="${CFLAGS} ${LDFLAGS}" \ | ||
45 | ./Configure -n $(uname -s | tr [[:upper:]] [[:lower:]]) || die | ||
46 | |||
47 | mmake DEBUG="" all || die | ||
48 | } | ||
49 | |||
50 | src_install() | ||
51 | { | ||
52 | cd ${SRCDIR}/${PNAME}_${PVER}_src | ||
53 | |||
54 | # install binary | ||
55 | minstallexec lsof || die | ||
56 | |||
57 | # install scripts | ||
58 | minstalldir /usr/share/lsof/scripts || die | ||
59 | minstallfile scripts/\* /usr/share/lsof/scripts || die | ||
60 | |||
61 | # install man-pages | ||
62 | minstallman lsof.8 || die | ||
63 | |||
64 | minstalldocs ${PNAME}_${PVER}_src/00* || die | ||
65 | } |