wok-next annotate john/receipt @ rev 16458

slitaz-tools-boxes: we dont have any gtkdialog boxes anymore
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 19 22:03:30 2014 +0200 (2014-04-19)
parents b2a632fc9587
children 145bc1c732ca
rev   line source
pascal@2172 1 # SliTaz package receipt.
pascal@2172 2
pascal@2172 3 PACKAGE="john"
slaxemulator@11197 4 VERSION="1.7.8"
pascal@2172 5 CATEGORY="system-tools"
pascal@2172 6 SHORT_DESC="Fast password cracker."
pascal@2172 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15215 8 LICENSE="GPL2"
pascal@2172 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@2172 10 WEB_SITE="http://www.openwall.com/john/"
pascal@2172 11 WGET_URL="${WEB_SITE}g/$TARBALL"
slaxemulator@10867 12 CONFIG_FILES="/etc/john/john.conf"
pascal@2172 13
slaxemulator@11197 14 DEPENDS="openssl libdes"
slaxemulator@11197 15 BUILD_DEPENDS="libdes-dev openssl-dev"
slaxemulator@11197 16
slaxemulator@11197 17 PATCH="http://www.openwall.com/john/g/$PACKAGE-$VERSION-jumbo-7.diff.gz"
pascal@14337 18 EXTRA_SOURCE_FILES="$PATCH"
slaxemulator@11197 19
pascal@2172 20 # Rules to configure and make the package.
pascal@2172 21 compile_rules()
pascal@2172 22 {
slaxemulator@11197 23 cd $src
slaxemulator@11197 24 [ -s $SOURCES_REPOSITORY/$(basename $PATCH) ] ||
slaxemulator@11197 25 wget -P $SOURCES_REPOSITORY $PATCH
slaxemulator@11197 26 zcat $SRC/$(basename $PATCH) | patch -p1
pascal@2172 27 cd $src/src
slaxemulator@10867 28 patch -Np0 -i $stuff/params.h.patch
slaxemulator@11197 29 sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' Makefile
slaxemulator@11197 30 sed -i "s|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=$ARCH -DJOHN_SYSTEMWIDE=1|" Makefile
pascal@2172 31 make clean generic
pascal@2172 32 }
pascal@2172 33
pascal@2172 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2172 35 genpkg_rules()
pascal@2172 36 {
slaxemulator@10867 37 mkdir -p $fs/usr/sbin $fs/etc/john $fs/usr/share/john
pascal@2172 38 cp -a $src/run/john $fs/usr/sbin
pascal@2172 39 cp -a $src/run/mailer $fs/usr/sbin
pascal@2172 40 cp -a $src/run/unafs $fs/usr/sbin
pascal@2172 41 cp -a $src/run/unique $fs/usr/sbin
pascal@2172 42 cp -a $src/run/unshadow $fs/usr/sbin
slaxemulator@10867 43 cp -a $src/run/*.chr $fs/usr/share/john
samuel_trassare@12044 44 cp -a $src/run/dumb??.conf $fs/usr/share/john
samuel_trassare@12044 45 cp -a $src/run/generic.conf $fs/usr/share/john
slaxemulator@10867 46 cp -a $src/run/password.lst $fs/usr/share/john
pascal@2172 47 cp $src/run/john.conf $fs/etc/john
slaxemulator@10867 48 sed -i 's|$JOHN|/usr/share/john|g' $fs/etc/john/john.conf
pascal@2172 49 }
pascal@2172 50