summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-15 13:19:02 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-16 12:11:30 +0700
commit62c08f78232883311e8198740526260de843a380 (patch)
tree798fd3648d8df0b6e835e3e115ff0d7be1d6712e /system
parentee764ed613409b426f53192a17c915002e89f0a9 (diff)
downloadslackbuilds-62c08f78232883311e8198740526260de843a380.tar.gz
system/runc: Strip binary.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/runc/runc.SlackBuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/system/runc/runc.SlackBuild b/system/runc/runc.SlackBuild
index 47f3fc8d29..3cfd1f3e52 100644
--- a/system/runc/runc.SlackBuild
+++ b/system/runc/runc.SlackBuild
@@ -23,12 +23,14 @@
# 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.2}
GITHASH=${GITHASH:-12644e614e25b05da6fd08a38ffa0cfe1903fdec}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -42,9 +44,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -65,9 +64,9 @@ 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 {} \;
+ -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
@@ -77,6 +76,7 @@ make \
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