mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 08:33:51 +02:00
nsjail: update to 1.3.
This commit is contained in:
parent
0f9d5dc5e1
commit
d23d22c3cd
2 changed files with 18 additions and 15 deletions
|
@ -1,9 +1,10 @@
|
||||||
--- common.h 2016-09-10 03:20:32.000000000 +0200
|
--- common.h 2016-09-10 03:20:32.000000000 +0200
|
||||||
+++ common.h 2017-01-04 17:24:12.807104061 +0100
|
+++ common.h 2017-01-04 17:24:12.807104061 +0100
|
||||||
@@ -100,13 +100,13 @@
|
@@ -100,14 +100,14 @@
|
||||||
bool verbose;
|
bool verbose;
|
||||||
bool keep_env;
|
bool keep_env;
|
||||||
bool keep_caps;
|
bool keep_caps;
|
||||||
|
bool disable_no_new_privs;
|
||||||
- __rlim64_t rl_as;
|
- __rlim64_t rl_as;
|
||||||
- __rlim64_t rl_core;
|
- __rlim64_t rl_core;
|
||||||
- __rlim64_t rl_cpu;
|
- __rlim64_t rl_cpu;
|
||||||
|
|
|
@ -1,27 +1,29 @@
|
||||||
# Template file for 'nsjail'
|
# Template file for 'nsjail'
|
||||||
pkgname=nsjail
|
pkgname=nsjail
|
||||||
version=1.2
|
version=1.3
|
||||||
revision=2
|
revision=1
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
|
hostmakedepends="libnl3-devel"
|
||||||
|
makedepends="${hostmakedepends}"
|
||||||
short_desc="A light-weight process isolation tool"
|
short_desc="A light-weight process isolation tool"
|
||||||
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
homepage="https://github.com/google/$pkgname"
|
homepage="https://github.com/google/nsjail"
|
||||||
distfiles="$homepage/archive/$version.tar.gz"
|
distfiles="${homepage}/archive/${version}.tar.gz"
|
||||||
checksum="9f262d56a189cf26f5c66b2c022364df979da92042f64c04300fdbb88aaba8ab"
|
checksum=8df57499c3512362283fb1663f37bfa687a64654a377800dfa6ea94486bf119c
|
||||||
|
|
||||||
CFLAGS="-Wno-error=format"
|
CFLAGS="-Wno-error=format"
|
||||||
|
|
||||||
do_build() {
|
post_extract() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
sed -i '/^CC/d' Makefile
|
||||||
*-musl) cp ${FILESDIR}/musl-compat.h .
|
sed -i 's/\(C\|LD\)FLAGS +=/override &/' Makefile
|
||||||
sed -i common.h -e '/#include <sys\/types.h>/a #include "musl-compat.h"'
|
}
|
||||||
;;
|
pre_build() {
|
||||||
esac
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
make CC=$CC
|
*-musl) CFLAGS+=" -include ${FILESDIR}/musl-compat.h" ;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vbin $pkgname
|
vbin ${pkgname}
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue