Annotation of /branches/magellan-next/core/lsof/lsof-4.85-r1.smage2
Parent Directory | Revision Log
Revision 9100 -
(hide annotations)
(download)
Sat Nov 5 15:05:17 2011 UTC (12 years, 7 months ago) by niro
File size: 1321 byte(s)
Sat Nov 5 15:05:17 2011 UTC (12 years, 7 months ago) by niro
File size: 1321 byte(s)
auto added: ver bump to 4.85-r1
1 | niro | 9100 | # $Id$ |
2 | |||
3 | PNAME="lsof" | ||
4 | PVER="4.85" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="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 | |||
19 | SRC_URI=( | ||
20 | ftp://lsof.itap.purdue.edu/pub/tools/unix/${PNAME}/${SRCFILE} | ||
21 | mirror://${PNAME}/${SRCFILE} | ||
22 | ) | ||
23 | |||
24 | UP2DATE="updatecmd -listonly ftp://lsof.itap.purdue.edu/pub/tools/unix/${PNAME}/ | grep ${PNAME}_[0-9] | sed -n 's:.*_\(.*\)\.tar.*:\1:;$ p'" | ||
25 | |||
26 | src_prepare() | ||
27 | { | ||
28 | munpack ${SRCFILE} || die | ||
29 | cd ${SRCDIR} | ||
30 | # another tarball is integrated | ||
31 | tar xvf ${PNAME}_${PVER}_src.tar || die | ||
32 | } | ||
33 | |||
34 | src_compile() | ||
35 | { | ||
36 | cd ${SRCDIR}/${PNAME}_${PVER}_src | ||
37 | |||
38 | # do not run inventory script | ||
39 | touch .neverInv || die | ||
40 | |||
41 | LINUX_HASSELINUX=n \ | ||
42 | LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \ | ||
43 | LSOF_CFGL="${CFLAGS} ${LDFLAGS}" \ | ||
44 | ./Configure -n $(uname -s | tr [[:upper:]] [[:lower:]]) || die | ||
45 | |||
46 | mmake DEBUG="" all || die | ||
47 | } | ||
48 | |||
49 | src_install() | ||
50 | { | ||
51 | cd ${SRCDIR}/${PNAME}_${PVER}_src | ||
52 | |||
53 | # install binary | ||
54 | minstallexec lsof || die | ||
55 | |||
56 | # install scripts | ||
57 | minstalldir /usr/share/lsof/scripts || die | ||
58 | minstallfile scripts/\* /usr/share/lsof/scripts || die | ||
59 | |||
60 | # install man-pages | ||
61 | minstallman lsof.8 || die | ||
62 | |||
63 | minstalldocs ${PNAME}_${PVER}_src/00* || die | ||
64 | } |