37 lines
1022 B
Bash
37 lines
1022 B
Bash
# Template file for 'nsjail'
|
|
pkgname=nsjail
|
|
version=2.6
|
|
revision=1
|
|
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/9a8568c8f91a91d93893a61a48665dc329e075f1.tar.gz
|
|
"
|
|
checksum="
|
|
866c181266e33f94e22e1bba72c04883d8bd5694929b19d8aa183a72acc8519b
|
|
6fc048e72499fd0bc0414e4ab9c32fabefc04a2a36a8af46799557aa3150d1dd
|
|
"
|
|
|
|
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
|
|
}
|