mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-09 15:51:45 +02:00
34 lines
867 B
Plaintext
34 lines
867 B
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=lsof
|
|
pkgver=4.98.0
|
|
pkgrel=2
|
|
pkgdesc="LiSt Open Files"
|
|
url="https://github.com/lsof-org/lsof"
|
|
arch="all"
|
|
license="custom"
|
|
subpackages="$pkgname-doc"
|
|
makedepends="linux-headers"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/lsof-org/lsof/archive/$pkgver/lsof-$pkgver.tar.gz"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
sed -i "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" \
|
|
dialects/linux/machine.h
|
|
}
|
|
|
|
build() {
|
|
./Configure -n linux
|
|
make
|
|
}
|
|
|
|
package() {
|
|
install -Dm0755 lsof "$pkgdir"/usr/bin/lsof
|
|
install -Dm0644 Lsof.8 "$pkgdir"/usr/share/man/man8/lsof.8
|
|
install -Dm0644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
|
}
|
|
|
|
sha512sums="
|
|
bd94d6395a425bedd4506a263aac57fb11b608b9dce9c46182ca050be9f92c5cdcae8cca6f7a27a3eaf66a60c37c5d3e2e9414e87eb3b6e524315811d7f5c3a4 lsof-4.98.0.tar.gz
|
|
"
|