blob: c1ce5851c98afa565bbe35437f14e2098f97473a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lsof
pkgver=4.87
pkgrel=0
pkgdesc="LiSt Open Files"
url="http://people.freebsd.org/~abe/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
depends=
makedepends=""
source="ftp://sunsite.ualberta.ca/pub/Mirror/$pkgname/${pkgname}_$pkgver.tar.bz2"
_builddir="$srcdir"/${pkgname}_${pkgver}/${pkgname}_${pkgver}_src
prepare() {
# theres a tarball in teh tarball...
cd "$srcdir"/${pkgname}_${pkgver}
tar -xf ${pkgname}_${pkgver}_src.tar
cd "$_builddir"
sed -e "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" \
-i dialects/linux/machine.h
}
build () {
cd "$_builddir"
./Configure -n linux
make || return 1
}
package() {
cd "$_builddir"
install -D -m0755 -o root -g root lsof "$pkgdir"/usr/sbin/lsof
install -D -m0644 -o root -g root lsof.8 \
"$pkgdir"/usr/share/man/man8/lsof.8
}
md5sums="80e2a76d0e05826db910ec88e631296c lsof_4.87.tar.bz2"
sha256sums="dfdd3709d82bc79ccdf3e404b84aafa9aede5948642a824ecaefd0aac589da2c lsof_4.87.tar.bz2"
sha512sums="5e811225dd65366e3ef49628d567864fadda1dbda2d66a5e473123e73c468f5a3a577ae4e1b701a55ac49c2a759dab5c413663121c260a2804fca10ece902766 lsof_4.87.tar.bz2"
|