mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-14 00:24:36 +02:00
47 lines
1.2 KiB
Text
47 lines
1.2 KiB
Text
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=lsof
|
|
pkgver=4.99.4
|
|
pkgrel=0
|
|
pkgdesc="LiSt Open Files"
|
|
url="https://github.com/lsof-org/lsof"
|
|
arch="all"
|
|
license="custom"
|
|
subpackages="$pkgname-doc"
|
|
makedepends="bash linux-headers perl"
|
|
source="https://github.com/lsof-org/lsof/archive/$pkgver/lsof-$pkgver.tar.gz
|
|
hassecurity.patch
|
|
"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# This test is skipped on other architectures where unshare
|
|
# returns "Operation not permitted", but on ppc64le unshare
|
|
# returns "Function not implemented" causing a fail instead
|
|
case "$CARCH" in
|
|
ppc64le)
|
|
rm -v lib/dialects/linux/tests/case-20-mmap.bash
|
|
;;
|
|
esac
|
|
}
|
|
|
|
build() {
|
|
./Configure -n linux
|
|
make
|
|
}
|
|
|
|
check() {
|
|
(cd tests && ./Add2TestDB)
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
install -Dm0755 lsof -t "$pkgdir"/usr/bin/
|
|
install -Dm0644 Lsof.8 "$pkgdir"/usr/share/man/man8/lsof.8
|
|
install -Dm0644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
}
|
|
|
|
sha512sums="
|
|
5ce884a1a7665b7c6df40304498a13ec24bc91fd7d6d44985132da75cc7758b9027bee2f417df5ddab04845b95e2fd0f21b0e9f843ed490ab3fd2243fd40ae67 lsof-4.99.4.tar.gz
|
|
379c24df3bcad88bd35c2d9331064312e9faa0e6426479b3e3d3edd377860007ba3af2a0b4b0b998f0146bfd7d067dc4ee7d6f32a6f5e352afc875f6298ab1c2 hassecurity.patch
|
|
"
|