system/crunch: Updated for version 3.5.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Vladimir Yatsemirski 2014-05-04 19:10:52 +07:00 committed by Willy Sudiarto Raharjo
parent 2f39dd696f
commit c0c4251ea1
2 changed files with 10 additions and 14 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for crunch
# Copyright 2013 Vladimir Yatsemirski <7catssmile@gmail.com>
# Copyright 2013-2014 Vladimir Yatsemirski <7catssmile@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=crunch
VERSION=${VERSION:-3.4}
VERSION=${VERSION:-3.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -64,13 +64,13 @@ tar xvf $CWD/$PRGNAM-$VERSION.tgz
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 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
\( -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 {} \;
make
make install PREFIX=$PKG/usr MANDIR=$\(PREFIX\)/man/man1 BTBINDIR=$\(PREFIX\)/bin
make install PREFIX=$PKG/usr MANDIR=$\(PREFIX\)/man/man1 DOCDIR=$\(PREFIX\)/doc/$PRGNAM-$VERSION
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
@ -79,10 +79,6 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/bin/GPL.TXT $PKG/usr/bin/charset.lst $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
Makefile \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,8 +1,8 @@
PRGNAM="crunch"
VERSION="3.4"
VERSION="3.5"
HOMEPAGE="http://crunch-wordlist.sourceforge.net/"
DOWNLOAD="http://download.sourceforge.net/crunch-wordlist/crunch-3.4.tgz"
MD5SUM="3f658a60d8227025df12cfb4ff4b9e15"
DOWNLOAD="http://switch.dl.sourceforge.net/project/crunch-wordlist/crunch-wordlist/crunch-3.5.tgz"
MD5SUM="b4b1e3e348f073355a0683cd85cca838"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""