diff options
Diffstat (limited to 'system/runc/runc.SlackBuild')
-rw-r--r-- | system/runc/runc.SlackBuild | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/system/runc/runc.SlackBuild b/system/runc/runc.SlackBuild index 773d9307e2..edb65e6779 100644 --- a/system/runc/runc.SlackBuild +++ b/system/runc/runc.SlackBuild @@ -1,9 +1,9 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for runc # Copyright 2016 Asaf Ohayon <asaf@sysbind.co.il> -# Copyright 2017-2020 Audrius Kažukauskas <audrius@neutrino.lt> +# Copyright 2017-2021 Audrius Kažukauskas <audrius@neutrino.lt> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,11 +23,16 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220415 bkw: Modified by SlackBuilds.org, BUILD=2: strip binary. + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=runc -VERSION=${VERSION:-1.0.0_rc10} -GITHASH=${GITHASH:-dc9208a3303feef5b3839f4323d9beb36df0a9dd} +VERSION=${VERSION:-1.1.12} +GITHASH=${GITHASH:-51d5e94601ceffbbd85688df1c928ecccbfa4685} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCVER=$(echo $VERSION | tr _ -) @@ -39,7 +44,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -55,22 +64,19 @@ cd $PRGNAM-$SRCVER chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -mkdir build -mv vendor build/src -ln -sf $TMP/$PRGNAM-$SRCVER build/src/github.com/opencontainers/runc + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ # 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-$SRCVER/build + BUILDTAGS="seccomp" \ + COMMIT=$GITHASH make install BINDIR=$PKG/usr/bin make install-bash PREFIX=$PKG/usr +strip $PKG/usr/bin/$PRGNAM mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a LICENSE MAINTAINERS NOTICE README.md $PKG/usr/doc/$PRGNAM-$VERSION @@ -80,4 +86,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |