39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Template file for 'nsjail'
|
|
pkgname=nsjail
|
|
version=3.3
|
|
revision=2
|
|
create_wrksrc=yes
|
|
build_style=gnu-makefile
|
|
hostmakedepends="bison flex pkg-config protobuf which"
|
|
makedepends="libnl3-devel protobuf-devel"
|
|
short_desc="Light-weight process isolation tool"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="Apache-2.0"
|
|
homepage="http://nsjail.com"
|
|
distfiles="https://github.com/google/nsjail/archive/${version}.tar.gz
|
|
https://github.com/google/kafel/archive/1af0975af45ca4404f357b9a4e1636f53a01bfd3.tar.gz"
|
|
checksum="9c247d0cba565b4e3f91cc76e827ddf7f3ad499f54ba611edd25d4d7be4890c3
|
|
e8c195a2a08daa70c7712adae3eaa01656b039dcc8cc1e5e8210006716761ad5"
|
|
|
|
archs="aarch64* armv5tel* armv6l* armv7l* x86_64*"
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
makedepends+=" musl-legacy-compat"
|
|
fi
|
|
|
|
post_extract() {
|
|
mv nsjail-$version/* .
|
|
rmdir kafel
|
|
mv kafel-* kafel
|
|
}
|
|
|
|
post_patch() {
|
|
vsed -e 's/-Werror\b//g' -i Makefile kafel/build/Makefile.mk
|
|
vsed -e 's/\b\(\(C\(XX\)\?\|LD\)FLAGS\s*+=\)/override \1/g' -i Makefile kafel/build/Makefile.mk kafel/src/Makefile
|
|
}
|
|
|
|
do_install() {
|
|
vbin ${pkgname}
|
|
vman nsjail.1
|
|
}
|