2010-05-20 02:06:21 +00:00
|
|
|
# Template file for 'lsof'
|
|
|
|
pkgname=lsof
|
2012-08-09 07:46:53 +00:00
|
|
|
version=4.86
|
2011-06-20 09:23:59 +00:00
|
|
|
revision=1
|
2010-05-20 02:06:21 +00:00
|
|
|
wrksrc=lsof_${version}
|
2012-08-09 07:46:53 +00:00
|
|
|
makedepends="which perl"
|
2010-05-20 02:06:21 +00:00
|
|
|
short_desc="LiSt Open Files"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-20 09:23:59 +00:00
|
|
|
homepage="http://people.freebsd.org/~abe/"
|
|
|
|
license="lsof"
|
2012-08-09 07:46:53 +00:00
|
|
|
distfiles="ftp://sunsite.ualberta.ca/pub/Mirror/lsof/lsof_${version}.tar.bz2"
|
|
|
|
checksum=13e52b8e87dddf1b2e219004e315d755c659217ce6ffc6a5f1102969f1c4dd0c
|
2010-05-20 02:06:21 +00: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."
|
|
|
|
|
2012-08-09 07:46:53 +00:00
|
|
|
do_build() {
|
2010-05-20 02:06:21 +00:00
|
|
|
# We have to do this dance because the real distfile is
|
|
|
|
# included in the .tar.bz2 archive.
|
2011-01-16 00:40:53 +00:00
|
|
|
tar xf ${wrksrc}/lsof_${version}_src.tar -C ${wrksrc}
|
|
|
|
cd ${wrksrc}/lsof_${version}_src
|
2010-05-20 02:06:21 +00:00
|
|
|
sed "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" \
|
|
|
|
-i dialects/linux/machine.h
|
2011-01-16 00:40:53 +00:00
|
|
|
./Configure -n linux
|
|
|
|
make ${makejobs}
|
2010-05-20 02:06:21 +00:00
|
|
|
}
|
|
|
|
|
2012-08-09 07:46:53 +00:00
|
|
|
do_install() {
|
2011-01-16 00:40:53 +00:00
|
|
|
cd ${wrksrc}/lsof_${version}_src
|
2012-08-09 07:46:53 +00: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 02:06:21 +00:00
|
|
|
}
|