mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-08 18:22:30 +01:00
39 lines
934 B
Plaintext
39 lines
934 B
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=lsof
|
|
pkgver=4.85
|
|
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="102ee2081172bbe76dccaa6cceda8573 lsof_4.85.tar.bz2"
|