wok view john/receipt @ rev 11289

Up: file to 5.09.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Nov 11 07:04:29 2011 +0000 (2011-11-11)
parents c34a2d4b16b6
children 3d13d460f4df
line source
1 # SliTaz package receipt.
3 PACKAGE="john"
4 VERSION="1.7.8"
5 CATEGORY="system-tools"
6 SHORT_DESC="Fast password cracker."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.openwall.com/john/"
10 WGET_URL="${WEB_SITE}g/$TARBALL"
11 CONFIG_FILES="/etc/john/john.conf"
13 DEPENDS="openssl libdes"
14 BUILD_DEPENDS="libdes-dev openssl-dev"
16 PATCH="http://www.openwall.com/john/g/$PACKAGE-$VERSION-jumbo-7.diff.gz"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 [ -s $SOURCES_REPOSITORY/$(basename $PATCH) ] ||
23 wget -P $SOURCES_REPOSITORY $PATCH
24 zcat $SRC/$(basename $PATCH) | patch -p1
25 cd $src/src
26 patch -Np0 -i $stuff/params.h.patch
27 sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' Makefile
28 sed -i "s|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=$ARCH -DJOHN_SYSTEMWIDE=1|" Makefile
29 make clean generic
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/sbin $fs/etc/john $fs/usr/share/john
36 cp -a $src/run/john $fs/usr/sbin
37 cp -a $src/run/mailer $fs/usr/sbin
38 cp -a $src/run/unafs $fs/usr/sbin
39 cp -a $src/run/unique $fs/usr/sbin
40 cp -a $src/run/unshadow $fs/usr/sbin
41 cp -a $src/run/*.chr $fs/usr/share/john
42 cp -a $src/run/password.lst $fs/usr/share/john
43 cp $src/run/john.conf $fs/etc/john
44 sed -i 's|$JOHN|/usr/share/john|g' $fs/etc/john/john.conf
45 }