2017-01-01 23:06:37 +01:00
|
|
|
# Template file for 'nsjail'
|
|
|
|
pkgname=nsjail
|
|
|
|
version=1.2
|
2017-01-04 17:20:16 +01:00
|
|
|
revision=2
|
2017-01-01 23:06:37 +01:00
|
|
|
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"
|
|
|
|
|
2017-01-04 17:34:07 +01:00
|
|
|
CFLAGS="-Wno-error=format"
|
|
|
|
|
2017-01-01 23:06:37 +01:00
|
|
|
do_build() {
|
2017-01-04 17:34:07 +01:00
|
|
|
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
|
2017-01-01 23:06:37 +01:00
|
|
|
make CC=$CC
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vbin $pkgname
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|