25 lines
667 B
Bash
25 lines
667 B
Bash
# Template file for 'lsof'
|
|
pkgname=lsof
|
|
version=4.90
|
|
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=675882076d7944359e2d1f9dbe935edc5cebe48c15a3c12c4c196b85003b359f
|
|
|
|
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
|
|
}
|