wok view john/receipt @ rev 14581

Add Drbl
author Stanislas Leduc <shann@slitaz.org>
date Sat May 25 21:08:27 2013 +0200 (2013-05-25)
parents 3d13d460f4df
children 7bb096863642
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"
17 EXTRA_SOURCE_FILES="$PATCH"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 [ -s $SOURCES_REPOSITORY/$(basename $PATCH) ] ||
24 wget -P $SOURCES_REPOSITORY $PATCH
25 zcat $SRC/$(basename $PATCH) | patch -p1
26 cd $src/src
27 patch -Np0 -i $stuff/params.h.patch
28 sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' Makefile
29 sed -i "s|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=$ARCH -DJOHN_SYSTEMWIDE=1|" Makefile
30 make clean generic
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/sbin $fs/etc/john $fs/usr/share/john
37 cp -a $src/run/john $fs/usr/sbin
38 cp -a $src/run/mailer $fs/usr/sbin
39 cp -a $src/run/unafs $fs/usr/sbin
40 cp -a $src/run/unique $fs/usr/sbin
41 cp -a $src/run/unshadow $fs/usr/sbin
42 cp -a $src/run/*.chr $fs/usr/share/john
43 cp -a $src/run/dumb??.conf $fs/usr/share/john
44 cp -a $src/run/generic.conf $fs/usr/share/john
45 cp -a $src/run/password.lst $fs/usr/share/john
46 cp $src/run/john.conf $fs/etc/john
47 sed -i 's|$JOHN|/usr/share/john|g' $fs/etc/john/john.conf
48 }