38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'nsjail'
|
|
pkgname=nsjail
|
|
version=2.9
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
hostmakedepends="bison flex pkg-config protobuf"
|
|
makedepends="libnl3-devel protobuf-devel"
|
|
short_desc="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/722b93a630e53ca472a4c69f61cb3dfc44ea5041.tar.gz"
|
|
checksum="f8578a48330d3d089c9234a2b562be08043f8fe77453c322724acdf403d0afc3
|
|
49d2327c794c90aca50a9933c00d453705534b16e5f42d8c8e19c3d274f5e5f8"
|
|
|
|
archs="aarch64* armv5tel* armv6l* armv7l* x86_64*"
|
|
CXXFLAGS="-Wno-format-truncation"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
armv*) broken="https://build.voidlinux.org/builders/armv6l_builder/builds/20655/steps/shell_3/logs/stdio";;
|
|
esac
|
|
|
|
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
|
|
}
|