void-packages/srcpkgs/lsof/template

38 lines
1.1 KiB
Plaintext
Raw Normal View History

2010-05-20 04:06:21 +02:00
# Template file for 'lsof'
pkgname=lsof
2013-01-06 10:17:01 +01:00
version=4.87
revision=1
2010-05-20 04:06:21 +02:00
wrksrc=lsof_${version}
hostmakedepends="which perl"
2010-05-20 04:06:21 +02:00
short_desc="LiSt Open Files"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://people.freebsd.org/~abe/"
license="lsof"
2012-08-09 09:46:53 +02:00
distfiles="ftp://sunsite.ualberta.ca/pub/Mirror/lsof/lsof_${version}.tar.bz2"
2013-01-06 10:17:01 +01:00
checksum=dfdd3709d82bc79ccdf3e404b84aafa9aede5948642a824ecaefd0aac589da2c
2010-05-20 04:06:21 +02:00
long_desc="
Lsof is a UNIX-specific tool. Its name stands for LiSt Open Files, and it does
just that. It lists information about files that are open by the processes
running on a UNIX system."
2013-01-06 10:17:01 +01:00
post_extract() {
2010-05-20 04:06:21 +02:00
# We have to do this dance because the real distfile is
# included in the .tar.bz2 archive.
2011-01-16 01:40:53 +01:00
tar xf ${wrksrc}/lsof_${version}_src.tar -C ${wrksrc}
2013-01-06 10:17:01 +01:00
}
do_build() {
2011-01-16 01:40:53 +01:00
cd ${wrksrc}/lsof_${version}_src
2010-05-20 04:06:21 +02:00
sed "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" \
-i dialects/linux/machine.h
2013-01-06 10:17:01 +01:00
LSOF_CFGF="$CFLAGS" ./Configure -n linux
2013-06-20 10:06:04 +02:00
make CC=$CC ${makejobs}
2010-05-20 04:06:21 +02:00
}
2012-08-09 09:46:53 +02:00
do_install() {
2011-01-16 01:40:53 +01:00
cd ${wrksrc}/lsof_${version}_src
2012-08-09 09:46:53 +02:00
vinstall lsof 755 usr/sbin
vinstall lsof.8 644 usr/share/man/man8
vinstall ${FILESDIR}/license.txt 644 usr/share/licenses/lsof
2010-05-20 04:06:21 +02:00
}