wok-current view john/receipt @ rev 24045

memtest,plop: tune lzma compression
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 06 12:50:46 2021 +0000 (2021-05-06)
parents 20bb678f7b14
children ad8b9ff412d2
line source
1 # SliTaz package receipt.
3 PACKAGE="john"
4 VERSION="1.9.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Fast password cracker."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.openwall.com/john/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="${WEB_SITE}k/$TARBALL"
14 DEPENDS="libdes openssl"
15 BUILD_DEPENDS="libdes-dev openssl-dev"
16 CONFIG_FILES="/etc/john/john.conf"
18 #PATCH="http://www.openwall.com/john/g/$PACKAGE-$VERSION-jumbo-7.diff.gz"
19 #EXTRA_SOURCE_FILES="$PATCH"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 # cd $src
25 # [ -s $SOURCES_REPOSITORY/$(basename $PATCH) ] ||
26 # wget -P $SOURCES_REPOSITORY $PATCH
27 # zcat $SRC/$(basename $PATCH) | patch -p1
29 cd $src/src
30 patch -Np0 -i $stuff/params.h.patch
31 # sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' Makefile
32 sed -i "s|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=$ARCH -DJOHN_SYSTEMWIDE=1|" Makefile
34 make clean generic
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p \
41 $fs/usr/sbin \
42 $fs/etc/john \
43 $fs/usr/share/john
45 cp -a $src/run/john $fs/usr/sbin
46 cp -a $src/run/mailer $fs/usr/sbin
47 cp -a $src/run/unafs $fs/usr/sbin
48 cp -a $src/run/unique $fs/usr/sbin
49 cp -a $src/run/unshadow $fs/usr/sbin
50 cp -a $src/run/*.chr $fs/usr/share/john
51 # cp -a $src/run/dumb??.conf $fs/usr/share/john
52 # cp -a $src/run/generic.conf $fs/usr/share/john
53 cp -a $src/run/password.lst $fs/usr/share/john
54 cp $src/run/john.conf $fs/etc/john
56 sed -i 's|$JOHN|/usr/share/john|g' $fs/etc/john/john.conf
57 }