summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2022-04-12 02:04:32 -0400
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-16 12:11:22 +0700
commit2e28629c80e97609f473b7091a4a1d2ec5d891a4 (patch)
tree400a7db58b775c8f8ff1dd15e6747426312f8960
parent65b54561567818bda4a69a95338672015e6f0031 (diff)
downloadslackbuilds-2e28629c80e97609f473b7091a4a1d2ec5d891a4.tar.gz
slackbuilds-2e28629c80e97609f473b7091a4a1d2ec5d891a4.tar.xz
system/docker-proxy: Strip binary.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/docker-proxy/docker-proxy.SlackBuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/system/docker-proxy/docker-proxy.SlackBuild b/system/docker-proxy/docker-proxy.SlackBuild
index 41ef0663dc..6489a67b15 100644
--- a/system/docker-proxy/docker-proxy.SlackBuild
+++ b/system/docker-proxy/docker-proxy.SlackBuild
@@ -22,12 +22,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220411 bkw: Modified by SlackBuilds.org, BUILD=2: strip binary.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=docker-proxy
VERSION=${VERSION:-20210125_b350742}
GITHASH=${GITHASH:-b3507428be5b458cb0e2b4086b13531fb0706e46}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -40,9 +42,7 @@ if [ -z "$ARCH" ]; then
fi
SRCNAM=libnetwork
-# 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
@@ -63,9 +63,9 @@ cd $SRCNAM-$GITHASH
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 {} \+
mkdir build
mv vendor build/src
@@ -73,6 +73,7 @@ mv vendor build/src
GO111MODULE=auto \
GOPATH=$TMP/$SRCNAM-$GITHASH/build \
go build -o $PKG/usr/bin/docker-proxy ./cmd/proxy
+strip $PKG/usr/bin/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE $PKG/usr/doc/$PRGNAM-$VERSION