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