aboutsummaryrefslogtreecommitdiff
path: root/system/docker-proxy
diff options
context:
space:
mode:
Diffstat (limited to 'system/docker-proxy')
-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 41ef0663dc3c..6489a67b1549 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