2016-05-25 18:05:19 -05:00
|
|
|
# Description: a lightweight universal runtime container
|
|
|
|
# URL: https://runc.io/
|
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
2018-08-28 11:43:09 -05:00
|
|
|
# Depends on: go libseccomp git
|
2016-05-25 18:05:19 -05:00
|
|
|
|
|
|
|
name=runc
|
2019-02-06 13:40:40 -06:00
|
|
|
version=96ec217
|
2019-02-11 12:23:49 -06:00
|
|
|
release=2
|
2017-02-17 19:04:28 -06:00
|
|
|
source=(http://jaeger.morpheus.net/linux/crux/files/$name-$version.tar.xz \
|
2019-02-11 12:23:49 -06:00
|
|
|
http://jaeger.morpheus.net/linux/crux/files/$name-man-pages-$version.tar.xz \
|
|
|
|
0001-nsenter-clone-proc-self-exe-to-avoid-exposing-host-b.patch)
|
2016-05-25 18:05:19 -05:00
|
|
|
|
|
|
|
build() {
|
|
|
|
mkdir -pv src/github.com/opencontainers
|
|
|
|
cd src/github.com/opencontainers
|
2017-10-09 11:15:03 -05:00
|
|
|
ln -sf $SRC/$name-$version $name
|
|
|
|
cd $name
|
2019-02-11 12:23:49 -06:00
|
|
|
patch -p1 -i $SRC/0001-nsenter-clone-proc-self-exe-to-avoid-exposing-host-b.patch
|
2016-05-25 18:05:19 -05:00
|
|
|
export GOPATH=$SRC
|
2017-10-09 11:15:03 -05:00
|
|
|
export BUILDTAGS="seccomp"
|
2017-03-27 12:07:42 -05:00
|
|
|
# use the long commit hash here
|
2019-02-06 13:40:40 -06:00
|
|
|
make COMMIT=96ec2177ae841256168fcf76954f7177af9446eb
|
2016-05-25 18:05:19 -05:00
|
|
|
|
|
|
|
install -D -m 0755 $name $PKG/usr/bin/$name
|
|
|
|
install -d -m 0755 $PKG/usr/share/man/man8
|
|
|
|
install -m 0644 $SRC/man8/* $PKG/usr/share/man/man8/
|
|
|
|
}
|