aboutsummaryrefslogblamecommitdiffstats
path: root/main/libseccomp/APKBUILD
blob: 164fc0c214030860e3d62932877aede04821db1e (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                   

                                                     
                  

            
                                                                        

                                           
                           

                           
                   

                                                                                                  
                                       
                                       
         
 



                                          



                     
         






                                           

                                    

 
         

                                                                                            
                        

                                                                         
            
                  

 
           
                                      

 
                                                                                                                                                                     
                                                                                                                                                                 
                                                                                                                                                                  
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Contributor: Dan Williams <dan@ma.ssive.co>
pkgname=libseccomp
pkgver=2.4.3
pkgrel=0
pkgdesc="An interface to the Linux Kernel's syscall filtering mechanism"
url="https://github.com/seccomp/libseccomp"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="linux-headers"
makedepends="$depends_dev"
checkdepends="bash"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/seccomp/libseccomp/releases/download/v$pkgver/libseccomp-$pkgver.tar.gz
	remove-redefinition-prctl.patch
	fix-performace-regression.patch
	"

case "$CARCH" in
	mips*) options="$options !check";;
esac

# secfixes:
#   2.4.0-r0:
#     - CVE-2019-9893

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

check() {
	# commit be65b26b67099be2b2b4890d736dbd1ad15adf36 adapted to new kernel 5.x syscalls
	# as long as we are at 4.19 kernel, we need this change
	case "$CARCH" in
		ppc64le|s390x) rm -f tests/36-sim-ipc_syscalls.tests \
			             tests/37-sim-ipc_syscalls_be.tests;;
	esac
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="7b7af2e98493243ffe1934fefff5723b24ae9b9bdc4bf039343ee8456c15acb0ea34e81ec292a41143848272aeca794ef92ad38fc3f42c77465170cb540479ef  libseccomp-2.4.3.tar.gz
f2c31dcafdc9a1ad78e32e76b75e1c1603071eaa3f979e1f2483b879a34ad07e0a4ef3642196a695415cdf81e1ed2bf325175872fb4e203ef9d0e668c287493f  remove-redefinition-prctl.patch
c9dd939552089b006e03b94a323c9932806b0681b493b3365c291273cff4485b1066a73919a85dff238fc10e33cd4f67c99645049b0696ba0d6f229aac8d8b81  fix-performace-regression.patch"