wok-next view john/receipt @ rev 20239

linux-cloop: tiny patch (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 06 18:03:36 2017 +0100 (2017-11-06)
parents 7bb096863642
children e1c0edabdcb2
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.openwall.com/john/"
11 WGET_URL="${WEB_SITE}g/$TARBALL"
12 CONFIG_FILES="/etc/john/john.conf"
14 DEPENDS="openssl libdes"
15 BUILD_DEPENDS="libdes-dev openssl-dev zlib-dev"
17 PATCH="http://www.openwall.com/john/g/$PACKAGE-$VERSION-jumbo-7.diff.gz"
18 EXTRA_SOURCE_FILES="$PATCH"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 [ -s $SOURCES_REPOSITORY/$(basename $PATCH) ] ||
25 wget -P $SOURCES_REPOSITORY $PATCH
26 zcat $SRC/$(basename $PATCH) | patch -p1
27 cd $src/src
28 patch -Np0 -i $stuff/params.h.patch
29 sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' Makefile
30 sed -i "s|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=$ARCH -DJOHN_SYSTEMWIDE=1|" Makefile
31 make clean generic
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/sbin $fs/etc/john $fs/usr/share/john
38 cp -a $src/run/john $fs/usr/sbin
39 cp -a $src/run/mailer $fs/usr/sbin
40 cp -a $src/run/unafs $fs/usr/sbin
41 cp -a $src/run/unique $fs/usr/sbin
42 cp -a $src/run/unshadow $fs/usr/sbin
43 cp -a $src/run/*.chr $fs/usr/share/john
44 cp -a $src/run/dumb??.conf $fs/usr/share/john
45 cp -a $src/run/generic.conf $fs/usr/share/john
46 cp -a $src/run/password.lst $fs/usr/share/john
47 cp $src/run/john.conf $fs/etc/john
48 sed -i 's|$JOHN|/usr/share/john|g' $fs/etc/john/john.conf
49 }