void-packages/srcpkgs/lsof/template

39 lines
1.2 KiB
Plaintext
Raw Normal View History

2010-05-20 04:06:21 +02:00
# Template file for 'lsof'
pkgname=lsof
2011-01-16 01:40:53 +01:00
version=4.84
2010-05-20 04:06:21 +02:00
wrksrc=lsof_${version}
#build_wrksrc=lsof_${version}_src
distfiles="ftp://sunsite.ualberta.ca/pub/Mirror/lsof/lsof_${version}.tar.bz2"
build_style=custom-install
short_desc="LiSt Open Files"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-01-16 01:40:53 +01:00
checksum=20893a2d9b443fba519602f05692d5f72054a9f6dc1236bcb2616cc5330dc725
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."
Add_dependency run glibc
do_build()
{
# 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}
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
2011-01-16 01:40:53 +01:00
./Configure -n linux
make ${makejobs}
2010-05-20 04:06:21 +02:00
}
do_install()
{
2011-01-16 01:40:53 +01:00
cd ${wrksrc}/lsof_${version}_src
install -D -m755 lsof ${DESTDIR}/usr/sbin/lsof
2010-05-20 04:06:21 +02:00
install -D -m644 lsof.8 \
2011-01-16 01:40:53 +01:00
${DESTDIR}/usr/share/man/man8/lsof.8
2010-05-20 04:06:21 +02:00
install -D -m644 ${FILESDIR}/license.txt \
2011-01-16 01:40:53 +01:00
${DESTDIR}/usr/share/licenses/lsof_license.txt
2010-05-20 04:06:21 +02:00
}