# $Id$ PNAME="lsof" PVER="4.90" PBUILD="r1" PCAT="sys-apps" DESCRIPTION="A small tool to display information about files open to Unix processes." HOMEPAGE="http://people.freebsd.org/~abe/" DEPEND=">= virtual/glibc" SRCFILE="${PNAME}_${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}_${PVER}" sminclude mbuild mtools msetfeature "!check" SRC_URI=( #ftp://lsof.itap.purdue.edu/pub/tools/unix/${PNAME}/${SRCFILE} ftp://ftp.fu-berlin.de/pub/unix/tools/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) #UP2DATE="updatecmd -listonly ftp://lsof.itap.purdue.edu/pub/tools/unix/${PNAME}/ | grep ${PNAME}_[0-9] | sed -n 's:.*_\(.*\)\.tar.*:\1:;$ p'" UP2SEPERATOR="_" UP2DATE="updatecmd ftp://ftp.fu-berlin.de/pub/unix/tools/${PNAME}/ | grep ${PNAME}_[0-9] | highesttarball" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # another tarball is integrated tar xvf ${PNAME}_${PVER}_src.tar || die } src_compile() { cd ${SRCDIR}/${PNAME}_${PVER}_src # do not run inventory script touch .neverInv || die LINUX_HASSELINUX=n \ LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \ LSOF_CFGL="${CFLAGS} ${LDFLAGS}" \ ./Configure -n $(uname -s | tr [[:upper:]] [[:lower:]]) || die mmake DEBUG="" all || die } src_install() { cd ${SRCDIR}/${PNAME}_${PVER}_src # install binary minstallexec lsof || die # install scripts minstalldir /usr/share/lsof/scripts || die minstallfile scripts/\* /usr/share/lsof/scripts || die # install man-pages minstallman lsof.8 || die minstalldocs ${PNAME}_${PVER}_src/00* || die }