# Template file for 'lsof' pkgname=lsof version=4.88 revision=1 wrksrc=lsof_${version} hostmakedepends="perl" short_desc="LiSt Open Files" maintainer="Juan RP " homepage="http://people.freebsd.org/~abe/" license="lsof" distfiles="ftp://sunsite.ualberta.ca/pub/Mirror/lsof/lsof_${version}.tar.bz2" checksum=fe6f9b0e26b779ccd0ea5a0b6327c2b5c38d207a6db16f61ac01bd6c44e5c99b post_extract() { # We have to do this dance because the real distfile is # included in the .tar.bz2 archive. tar xf ${wrksrc}/lsof_${version}_src.tar -C ${wrksrc} } do_build() { cd ${wrksrc}/lsof_${version}_src sed "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" \ -i dialects/linux/machine.h LSOF_CFGF="$CFLAGS" ./Configure -n linux make CC=$CC ${makejobs} } do_install() { cd ${wrksrc}/lsof_${version}_src vbin lsof vman lsof.8 vlicense ${FILESDIR}/license.txt }