From 46e7fdfdcfca721802776557b90d433d92058167 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Thu, 10 Mar 2016 19:00:38 +0700 Subject: misc/fcrackzip: Do not overwrite zipinfo. Signed-off-by: Willy Sudiarto Raharjo --- misc/fcrackzip/fcrackzip.SlackBuild | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'misc/fcrackzip') diff --git a/misc/fcrackzip/fcrackzip.SlackBuild b/misc/fcrackzip/fcrackzip.SlackBuild index 27df21d2a6..c23a347fe0 100644 --- a/misc/fcrackzip/fcrackzip.SlackBuild +++ b/misc/fcrackzip/fcrackzip.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh -# Slackware build script for FCrackzip +# Slackware build script for fcrackzip -# Copyright 2010 Willy Sudiarto Raharjo +# Copyright 2010-2016 Willy Sudiarto Raharjo # All rights reserved. # # Permission to use, copy, modify, and distribute this software for any purpose @@ -21,7 +21,7 @@ PRGNAM=fcrackzip VERSION=${VERSION:-1.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -63,10 +63,10 @@ tar xvf $CWD/$PRGNAM-${VERSION}.tar.gz cd $PRGNAM-$VERSION 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 \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -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 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -82,7 +82,10 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +# No overwrite the original zipinfo from slackware +mv "$PKG/usr/bin/zipinfo" "$PKG/usr/bin/fzipinfo" + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true find $PKG/usr/man -type f -exec gzip -9 {} \; -- cgit v1.2.3