aboutsummaryrefslogtreecommitdiff
path: root/misc/fcrackzip
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-03-10 19:00:38 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-03-11 13:24:34 +0700
commit46e7fdfdcfca721802776557b90d433d92058167 (patch)
tree78ebaade666d38c333900bea62df030790f93c70 /misc/fcrackzip
parent1af94247f939128433ce5d9e95865b0b0cb395f1 (diff)
misc/fcrackzip: Do not overwrite zipinfo.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/fcrackzip')
-rw-r--r--misc/fcrackzip/fcrackzip.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/misc/fcrackzip/fcrackzip.SlackBuild b/misc/fcrackzip/fcrackzip.SlackBuild
index 27df21d2a69d5..c23a347fe0560 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 <willysr@slackware-id.org>
+# Copyright 2010-2016 Willy Sudiarto Raharjo <willysr@slackware-id.org>
# 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 {} \;