summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAudrius Kažukauskas <audrius@neutrino.lt>2018-03-31 17:22:25 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-04-01 08:33:45 +0700
commit4da1e79bdb657ede4034b8419966b84ed39e5f11 (patch)
tree956fadd8d707a64166b6447074f321af4e4a88e1
parent4f9ef4783e56e2c49a476a30eced4f0c286b1dc9 (diff)
downloadslackbuilds-4da1e79bdb657ede4034b8419966b84ed39e5f11.tar.gz
system/runc: Updated for version 1.0.0_rc5.
Signed-off-by: Audrius Kažukauskas <audrius@neutrino.lt>
-rw-r--r--system/runc/runc.SlackBuild18
-rw-r--r--system/runc/runc.info6
2 files changed, 13 insertions, 11 deletions
diff --git a/system/runc/runc.SlackBuild b/system/runc/runc.SlackBuild
index 454fdf6b91..e7b01c6837 100644
--- a/system/runc/runc.SlackBuild
+++ b/system/runc/runc.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for runc
# Copyright 2016 Asaf Ohayon <asaf@sysbind.co.il>
-# Copyright 2017 Audrius Kažukauskas <audrius@neutrino.lt>
+# Copyright 2017-2018 Audrius Kažukauskas <audrius@neutrino.lt>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,11 +24,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=runc
-VERSION=${VERSION:-1.0.0_rc4_3f2f8b8}
-GITHASH=${GITHASH:-3f2f8b84a77f73d38244dd690525642a72156c64}
+VERSION=${VERSION:-1.0.0_rc5}
+GITHASH=${GITHASH:-4fc53a81fb7c994640722ac585fa9ca548971871}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCVER=$(echo $VERSION | tr _ -)
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -47,9 +49,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$GITHASH
-tar xvf $CWD/$PRGNAM-$GITHASH.tar.gz
-cd $PRGNAM-$GITHASH
+rm -rf $PRGNAM-$SRCVER
+tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
+cd $PRGNAM-$SRCVER
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -59,14 +61,14 @@ find -L . \
mkdir build
mv vendor build/src
-ln -sf $TMP/$PRGNAM-$GITHASH build/src/github.com/opencontainers/runc
+ln -sf $TMP/$PRGNAM-$SRCVER build/src/github.com/opencontainers/runc
# Do not try to get git commit hash, we're not inside git repository.
sed -i '/^COMMIT/d' Makefile
make \
COMMIT=$GITHASH \
- GOPATH=$TMP/$PRGNAM-$GITHASH/build
+ GOPATH=$TMP/$PRGNAM-$SRCVER/build
make install BINDIR=$PKG/usr/bin
make install-bash PREFIX=$PKG/usr
diff --git a/system/runc/runc.info b/system/runc/runc.info
index 2a23fc0ba1..25a59e026f 100644
--- a/system/runc/runc.info
+++ b/system/runc/runc.info
@@ -1,10 +1,10 @@
PRGNAM="runc"
-VERSION="1.0.0_rc4_3f2f8b8"
+VERSION="1.0.0_rc5"
HOMEPAGE="https://github.com/opencontainers/runc"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
-DOWNLOAD_x86_64="https://github.com/opencontainers/runc/archive/3f2f8b8/runc-3f2f8b84a77f73d38244dd690525642a72156c64.tar.gz"
-MD5SUM_x86_64="0dc3b1eafba193280d6cf6ffa46c2521"
+DOWNLOAD_x86_64="https://github.com/opencontainers/runc/archive/v1.0.0-rc5/runc-1.0.0-rc5.tar.gz"
+MD5SUM_x86_64="0de61b0ae2cef25c895a58733b2a11bc"
REQUIRES="google-go-lang libseccomp"
MAINTAINER="Audrius Kažukauskas"
EMAIL="audrius@neutrino.lt"