NAME=lsof
VERSION=4.77
SOURCE=ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_$VERSION.tar.bz2
BUILD=${BUILD:-1}
OPTIMIZE=${OPTIMIZE:-"-Os -pipe"}

build() {
	_explode 0
	cd lsof_$VERSION
	tar xvf lsof_${VERSION}_src.tar
	cd lsof_${VERSION}_src
	echo n | ./Configure linux
	make
	mkdir -p $PKG$BINDIR
	cat lsof > $PKG$BINDIR/lsof
	# No, NOT suid.
	chmod 0755 $PKG$BINDIR/lsof
	mkdir -p $PKG$MANDIR/man8
	cat lsof.8 > $PKG$MANDIR/man8/lsof.8
	_doc 0 lsof-$VERSION  00*
	_chfix
	_chgrp_bin
}
