wok-next view john/receipt @ rev 21331
updated libvips (7.42.3 -> 8.8.4)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Dec 12 17:17:36 2019 +0100 (2019-12-12) |
parents | d5aab818505e |
children | adf9af989d97 |
line source
1 # SliTaz package receipt v2.
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.bz2"
12 WGET_URL="${WEB_SITE}g/$TARBALL"
14 BUILD_DEPENDS="libdes-dev openssl-dev zlib-dev"
16 #PATCH="http://www.openwall.com/john/g/$PACKAGE-$VERSION-jumbo-7.diff.gz"
17 #EXTRA_SOURCE_FILES="$PATCH"
19 compile_rules()
20 {
21 # [ -s $SRC/$(basename $PATCH) ] ||
22 # wget -P $SRC $PATCH
23 # zcat $SRC/$(basename $PATCH) | patch -p1
25 cd $src/src
26 sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' \
27 Makefile
29 case $ARCH in
30 x86_64) Arch='nocona';;
31 *) Arch="$ARCH";;
32 esac
33 sed -i "s|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=$Arch -DJOHN_SYSTEMWIDE=1|" Makefile
34 make clean generic || return 1
36 mkdir -p $install/usr/sbin
37 mkdir -p $install/etc/john
38 mkdir -p $install/usr/share/john
40 cp -a $src/run/john $install/usr/sbin
41 cp -a $src/run/mailer $install/usr/sbin
42 cp -a $src/run/unafs $install/usr/sbin
43 cp -a $src/run/unique $install/usr/sbin
44 cp -a $src/run/unshadow $install/usr/sbin
45 cp -a $src/run/*.chr $install/usr/share/john
46 cp -a $src/run/dumb??.conf $install/usr/share/john
47 cp -a $src/run/generic.conf $install/usr/share/john
48 cp -a $src/run/password.lst $install/usr/share/john
49 cp $src/run/john.conf $install/etc/john
51 sed -i 's|$JOHN|/usr/share/john|g' $install/etc/john/john.conf
52 }
54 genpkg_rules()
55 {
56 copy @std
57 DEPENDS="libdes openssl"
58 CONFIG_FILES="/etc/john/john.conf"
59 }