APKBUILD 1.29 KB
Newer Older
1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
2 3
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Contributor: Dan Williams <dan@ma.ssive.co>
4
pkgname=libseccomp
5 6
pkgver=2.4.0
pkgrel=0
7
pkgdesc="An interface to the Linux Kernel's syscall filtering mechanism"
8 9
url="https://github.com/seccomp/libseccomp"
arch="all"
10
license="LGPL-2.1"
11 12
depends_dev="linux-headers"
makedepends="$depends_dev"
13
checkdepends="bash"
14 15 16
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/seccomp/libseccomp/releases/download/v$pkgver/libseccomp-$pkgver.tar.gz
	remove-redefinition-prctl.patch"
17
builddir="$srcdir/libseccomp-$pkgver"
18

19 20 21 22
# secfixes:
#   2.4.0-r0:
#     - CVE-2019-9893

23
build() {
24
	cd "$builddir"
25 26 27 28 29 30 31
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
32 33
		--localstatedir=/var
	make
34 35
}

36 37
check() {
	cd "$builddir"
38
	make check
39 40
}

41
package() {
42
	cd "$builddir"
43
	make DESTDIR="$pkgdir" install
44 45
}

46
sha512sums="daa4a32c6c2b2f39aa9db1a4606619f9faeffcd2fca00c25ac5cf95d0405639ec21203293be7c8341317a05b18fd9f603a201544457cac91bf034a0bbd4dfc88  libseccomp-2.4.0.tar.gz
47
f2c31dcafdc9a1ad78e32e76b75e1c1603071eaa3f979e1f2483b879a34ad07e0a4ef3642196a695415cdf81e1ed2bf325175872fb4e203ef9d0e668c287493f  remove-redefinition-prctl.patch"