void-packages/srcpkgs/lsof/template

24 lines
668 B
Bash

# Template file for 'lsof'
pkgname=lsof
version=4.91
revision=1
wrksrc=lsof_${version}_src
hostmakedepends="perl"
short_desc="LiSt Open Files"
maintainer="Juan RP <xtraeme@voidlinux.org>"
homepage="https://people.freebsd.org/~abe/"
license="lsof"
distfiles="https://fossies.org/linux/misc/lsof_${version}_src.tar.xz"
checksum=84c8bba41a2f458edf92427ae5a3088d8010e8dbec7ce5bc58c709ede87ac3bf
do_build() {
sed "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" \
-i dialects/linux/machine.h
LSOF_CFGF="$CFLAGS" LSOF_CFGL="$LDFLAGS" ./Configure -n linux
make CC=$CC ${makejobs}
}
do_install() {
vbin lsof
vman lsof.8
vlicense ${FILESDIR}/license.txt
}