wok view john/receipt @ rev 13204
Up: flex (2.5.37)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Aug 06 13:46:14 2012 +0200 (2012-08-06) |
parents | b3e1b5b704a0 |
children | b2a632fc9587 |
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/dumb??.conf $fs/usr/share/john
43 cp -a $src/run/generic.conf $fs/usr/share/john
44 cp -a $src/run/password.lst $fs/usr/share/john
45 cp $src/run/john.conf $fs/etc/john
46 sed -i 's|$JOHN|/usr/share/john|g' $fs/etc/john/john.conf
47 }