void-packages/srcpkgs/lsof/template

32 lines
889 B
Text
Raw Normal View History

2010-05-20 02:06:21 +00:00
# Template file for 'lsof'
pkgname=lsof
2014-10-17 09:11:22 +00:00
version=4.88
revision=1
2010-05-20 02:06:21 +00:00
wrksrc=lsof_${version}
2014-10-17 09:11:22 +00:00
hostmakedepends="perl"
2010-05-20 02:06:21 +00:00
short_desc="LiSt Open Files"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://people.freebsd.org/~abe/"
license="lsof"
2012-08-09 07:46:53 +00:00
distfiles="ftp://sunsite.ualberta.ca/pub/Mirror/lsof/lsof_${version}.tar.bz2"
2014-10-17 09:11:22 +00:00
checksum=fe6f9b0e26b779ccd0ea5a0b6327c2b5c38d207a6db16f61ac01bd6c44e5c99b
2010-05-20 02:06:21 +00:00
2013-01-06 09:17:01 +00:00
post_extract() {
2010-05-20 02:06:21 +00:00
# We have to do this dance because the real distfile is
# included in the .tar.bz2 archive.
2011-01-16 00:40:53 +00:00
tar xf ${wrksrc}/lsof_${version}_src.tar -C ${wrksrc}
2013-01-06 09:17:01 +00:00
}
do_build() {
2011-01-16 00:40:53 +00:00
cd ${wrksrc}/lsof_${version}_src
2010-05-20 02:06:21 +00:00
sed "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" \
-i dialects/linux/machine.h
2013-01-06 09:17:01 +00:00
LSOF_CFGF="$CFLAGS" ./Configure -n linux
2013-06-20 08:06:04 +00:00
make CC=$CC ${makejobs}
2010-05-20 02:06:21 +00:00
}
2012-08-09 07:46:53 +00:00
do_install() {
2011-01-16 00:40:53 +00:00
cd ${wrksrc}/lsof_${version}_src
2014-10-17 09:11:22 +00:00
vbin lsof
vman lsof.8
vlicense ${FILESDIR}/license.txt
2010-05-20 02:06:21 +00:00
}