wok view john/receipt @ rev 21711

djmount: added symbolic links
author Hans-G?nter Theisgen
date Sat Jun 08 15:15:35 2019 +0100 (2019-06-08)
parents 5a01eb694834
children e233cb2fd094
line source
1 # SliTaz package receipt.
3 PACKAGE="john"
4 VERSION="1.8.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}j/$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 }