contrib/runc/Pkgfile

28 lines
958 B
Plaintext
Raw Normal View History

2016-05-26 01:05:19 +02:00
# Description: a lightweight universal runtime container
# URL: https://runc.io/
# Maintainer: Matt Housh, jaeger at crux dot ninja
2018-08-28 18:43:09 +02:00
# Depends on: go libseccomp git
2016-05-26 01:05:19 +02:00
name=runc
2019-02-06 20:40:40 +01:00
version=96ec217
release=2
2017-02-18 02:04:28 +01:00
source=(http://jaeger.morpheus.net/linux/crux/files/$name-$version.tar.xz \
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-26 01:05:19 +02:00
build() {
mkdir -pv src/github.com/opencontainers
cd src/github.com/opencontainers
2017-10-09 18:15:03 +02:00
ln -sf $SRC/$name-$version $name
cd $name
patch -p1 -i $SRC/0001-nsenter-clone-proc-self-exe-to-avoid-exposing-host-b.patch
2016-05-26 01:05:19 +02:00
export GOPATH=$SRC
2017-10-09 18:15:03 +02:00
export BUILDTAGS="seccomp"
# use the long commit hash here
2019-02-06 20:40:40 +01:00
make COMMIT=96ec2177ae841256168fcf76954f7177af9446eb
2016-05-26 01:05:19 +02: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/
}