void-packages/srcpkgs/lsof/template
maxice8 866515d81b lsof: update to 4.91.
Closes: #12963 [via git-merge-pr]
2018-03-27 23:03:57 -07:00

24 lines
667 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.eu>"
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
}