lsof: update to 4.88.

This commit is contained in:
Juan RP 2014-10-17 11:11:22 +02:00
parent ff80049156
commit 8d3725ed8e
1 changed files with 7 additions and 9 deletions

View File

@ -1,22 +1,21 @@
# Template file for 'lsof' # Template file for 'lsof'
pkgname=lsof pkgname=lsof
version=4.87 version=4.88
revision=2 revision=1
wrksrc=lsof_${version} wrksrc=lsof_${version}
hostmakedepends="which perl" hostmakedepends="perl"
short_desc="LiSt Open Files" short_desc="LiSt Open Files"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://people.freebsd.org/~abe/" homepage="http://people.freebsd.org/~abe/"
license="lsof" license="lsof"
distfiles="ftp://sunsite.ualberta.ca/pub/Mirror/lsof/lsof_${version}.tar.bz2" distfiles="ftp://sunsite.ualberta.ca/pub/Mirror/lsof/lsof_${version}.tar.bz2"
checksum=dfdd3709d82bc79ccdf3e404b84aafa9aede5948642a824ecaefd0aac589da2c checksum=fe6f9b0e26b779ccd0ea5a0b6327c2b5c38d207a6db16f61ac01bd6c44e5c99b
post_extract() { post_extract() {
# We have to do this dance because the real distfile is # We have to do this dance because the real distfile is
# included in the .tar.bz2 archive. # included in the .tar.bz2 archive.
tar xf ${wrksrc}/lsof_${version}_src.tar -C ${wrksrc} tar xf ${wrksrc}/lsof_${version}_src.tar -C ${wrksrc}
} }
do_build() { do_build() {
cd ${wrksrc}/lsof_${version}_src cd ${wrksrc}/lsof_${version}_src
sed "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" \ sed "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" \
@ -24,10 +23,9 @@ do_build() {
LSOF_CFGF="$CFLAGS" ./Configure -n linux LSOF_CFGF="$CFLAGS" ./Configure -n linux
make CC=$CC ${makejobs} make CC=$CC ${makejobs}
} }
do_install() { do_install() {
cd ${wrksrc}/lsof_${version}_src cd ${wrksrc}/lsof_${version}_src
vinstall lsof 755 usr/sbin vbin lsof
vinstall lsof.8 644 usr/share/man/man8 vman lsof.8
vinstall ${FILESDIR}/license.txt 644 usr/share/licenses/lsof vlicense ${FILESDIR}/license.txt
} }