27 lines
649 B
Bash
27 lines
649 B
Bash
# Template file for 'nsjail'
|
|
pkgname=nsjail
|
|
version=1.2
|
|
revision=2
|
|
build_style=gnu-makefile
|
|
short_desc="A light-weight process isolation tool"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/google/$pkgname"
|
|
distfiles="$homepage/archive/$version.tar.gz"
|
|
checksum="9f262d56a189cf26f5c66b2c022364df979da92042f64c04300fdbb88aaba8ab"
|
|
|
|
CFLAGS="-Wno-error=format"
|
|
|
|
do_build() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) cp ${FILESDIR}/musl-compat.h .
|
|
sed -i common.h -e '/#include <sys\/types.h>/a #include "musl-compat.h"'
|
|
;;
|
|
esac
|
|
make CC=$CC
|
|
}
|
|
|
|
do_install() {
|
|
vbin $pkgname
|
|
vlicense LICENSE
|
|
}
|