void-packages/srcpkgs/lsof/template

26 lines
727 B
Bash

# Template file for 'lsof'
pkgname=lsof
version=4.93.2
revision=1
hostmakedepends="perl"
short_desc="LiSt Open Files"
maintainer="Orphaned <orphan@voidlinux.org>"
license="lsof"
homepage="https://people.freebsd.org/~abe/"
distfiles="https://fossies.org/linux/misc/lsof-${version}.tar.gz"
checksum=3df912bd966fc24dc73ddea3e36a61d79270b21b085936a4caabca56e5b486a2
do_build() {
sed "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" \
-i dialects/linux/machine.h
if [ "$CROSS_BUILD" ]; then
export LSOF_INCLUDE="${XBPS_CROSS_BASE}/usr/include"
fi
LSOF_CFGF="$CFLAGS" LSOF_CFGL="$LDFLAGS" ./Configure -n linux
make CC=$CC ${makejobs}
}
do_install() {
vbin lsof
vman Lsof.8
vlicense ${FILESDIR}/license.txt
}