32 lines
1,014 B
Bash
32 lines
1,014 B
Bash
# Template file for 'nsjail'
|
|
pkgname=nsjail
|
|
version=2.7
|
|
revision=3
|
|
build_style=gnu-makefile
|
|
hostmakedepends="bison flex pkg-config protobuf-devel"
|
|
makedepends="libnl3-devel protobuf-devel"
|
|
short_desc="A light-weight process isolation tool"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="Apache-2.0"
|
|
homepage="http://nsjail.com"
|
|
distfiles="https://github.com/google/nsjail/archive/${version}.tar.gz
|
|
https://github.com/google/kafel/archive/409ccb2113e1f82f497d1dcfb5ae18376ff7056c.tar.gz"
|
|
checksum="28afa89c7dbed94528408e4f11d724622d24ea582739b254fa2a739320e87481
|
|
bfebebaf501f9dbd0d0c374797d3c07ee0dd3537b5a6bc70e80408f081d051fe"
|
|
|
|
only_for_archs="aarch64 aarch64-musl armv5tel armv5tel-musl armv6l armv6l-musl armv7l armv7l-musl x86_64 x86_64-musl"
|
|
|
|
post_extract() {
|
|
rmdir kafel
|
|
ln -s ../kafel-* kafel
|
|
}
|
|
|
|
pre_build() {
|
|
sed -i -e 's/\b\(\(C\(XX\)\?\|LD\)FLAGS\s*+=\)/override \1/g' Makefile kafel/build/Makefile.mk kafel/src/Makefile
|
|
}
|
|
|
|
do_install() {
|
|
vbin ${pkgname}
|
|
vman nsjail.1
|
|
vlicense LICENSE
|
|
}
|