blob: 42f3a7e683be12401c49783c6f915201eb81d6dc (
plain)
1 # Description: Linux process isolation tool utilizing namespaces, resource limits, seccomp-bpf
2 # URL: https://nsjail.com
3 # Maintainer: John Vogel, jvogel4 at stny dot rr dot com
4 # Depends on: libnl protobuf
5
6 name=nsjail
7 version=3.0
8 kafel_version=8e69b8e
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 # Fix build fail on deprecated-declarartions warning (config.proto/config.pb.cc)
17 #CXXFLAGS="$CXXFLAGS -Wno-deprecated-declarations"
18
19 # workaround to avoid using `git submodule update --init`
20 rm -rf kafel
21 mv $SRC/kafel-$kafel_version* kafel
22
23 make
24
25 install -D -m 755 nsjail $PKG/usr/bin/nsjail
26 install -d -m 755 $PKG/usr/share/nsjail/configs
27 install -D -m 644 configs/* $PKG/usr/share/nsjail/configs
28 install -D -m 644 config.proto $PKG/usr/share/nsjail/config.proto
29 install -D -m 644 Dockerfile $PKG/usr/share/nsjail/Dockerfile
30 install -D -m 644 nsjail.1 $PKG/usr/share/man/man1/nsjail.1
31 }
|