Magellan Linux

Contents of /branches/magellan-next/core/lsof/lsof-4.84-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6057 - (show annotations) (download)
Wed Aug 18 14:46:18 2010 UTC (13 years, 8 months ago) by niro
File size: 1317 byte(s)
auto added: ver bump to 4.84-r1
1 # $Id$
2
3 PNAME="lsof"
4 PVER="4.84"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-apps"
8 STATE="unstable"
9
10 DESCRIPTION="A small tool to display information about files open to Unix processes."
11 HOMEPAGE="http://people.freebsd.org/~abe/"
12
13 DEPEND=">= virtual/glibc"
14
15 SRCFILE="${PNAME}_${PVER}.tar.bz2"
16 SRCDIR="${BUILDDIR}/${PNAME}_${PVER}"
17
18 sminclude mbuild mtools
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 00* || die
65 }