blob: fe8c96f50fa243174b689c2f004ade29882337d9 (
plain)
1 # Description: Linux process isolation tool utilizing namespaces, resource limits, seccomp-bpf
2 # URL: http://nsjail.com
3 # Maintainer: John Vogel, jvogel4 at stny dot rr dot com
4 # Depends on: libnl protobuf
5
6 name=nsjail
7 version=2.9
8 kafel_version=722b93a
9 release=1
10 source=(https://github.com/google/$name/archive/$version/$name-$version.tar.gz
11 https://github.com/google/kafel/archive/$kafel_version/kafel-$kafel_version.tar.gz)
12
13 build() {
14 cd $name-$version*
15
16 # workaround to avoid using `git submodule update --init`
17 rm -rf kafel
18 mv $SRC/kafel-$kafel_version* kafel
19
20 make
21
22 install -D -m 755 nsjail $PKG/usr/bin/nsjail
23 install -d -m 755 $PKG/usr/share/nsjail/configs
24 install -D -m 644 configs/* $PKG/usr/share/nsjail/configs
25 install -D -m 644 config.proto $PKG/usr/share/nsjail/config.proto
26 install -D -m 644 Dockerfile $PKG/usr/share/nsjail/Dockerfile
27 install -D -m 644 nsjail.1 $PKG/usr/share/man/man1/nsjail.1
28 }
|