wok-next annotate john/receipt @ rev 20489

nareto: update index.php path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 12 11:42:04 2018 +0100 (2018-03-12)
parents 145bc1c732ca
children d43bf7aae921
rev   line source
al@20473 1 # SliTaz package receipt v2.
pascal@2172 2
pascal@2172 3 PACKAGE="john"
slaxemulator@11197 4 VERSION="1.7.8"
pascal@2172 5 CATEGORY="system-tools"
al@20473 6 SHORT_DESC="Fast password cracker"
pascal@2172 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15215 8 LICENSE="GPL2"
al@20473 9 WEB_SITE="http://www.openwall.com/john/"
al@20473 10
pascal@2172 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@2172 12 WGET_URL="${WEB_SITE}g/$TARBALL"
pascal@2172 13
pascal@20228 14 BUILD_DEPENDS="libdes-dev openssl-dev zlib-dev"
slaxemulator@11197 15
slaxemulator@11197 16 PATCH="http://www.openwall.com/john/g/$PACKAGE-$VERSION-jumbo-7.diff.gz"
pascal@14337 17 EXTRA_SOURCE_FILES="$PATCH"
slaxemulator@11197 18
al@20473 19 compile_rules() {
slaxemulator@11197 20 [ -s $SOURCES_REPOSITORY/$(basename $PATCH) ] ||
slaxemulator@11197 21 wget -P $SOURCES_REPOSITORY $PATCH
slaxemulator@11197 22 zcat $SRC/$(basename $PATCH) | patch -p1
al@20473 23
pascal@2172 24 cd $src/src
slaxemulator@10867 25 patch -Np0 -i $stuff/params.h.patch
slaxemulator@11197 26 sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' Makefile
al@20473 27
al@20473 28 case $ARCH in
al@20473 29 x86_64) Arch='nocona';;
al@20473 30 *) Arch="$ARCH";;
al@20473 31 esac
al@20473 32 sed -i "s|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=$Arch -DJOHN_SYSTEMWIDE=1|" Makefile
al@20473 33 make clean generic || return 1
al@20473 34
al@20473 35 mkdir -p $install/usr/sbin $install/etc/john $install/usr/share/john
al@20473 36 cp -a $src/run/john $install/usr/sbin
al@20473 37 cp -a $src/run/mailer $install/usr/sbin
al@20473 38 cp -a $src/run/unafs $install/usr/sbin
al@20473 39 cp -a $src/run/unique $install/usr/sbin
al@20473 40 cp -a $src/run/unshadow $install/usr/sbin
al@20473 41 cp -a $src/run/*.chr $install/usr/share/john
al@20473 42 cp -a $src/run/dumb??.conf $install/usr/share/john
al@20473 43 cp -a $src/run/generic.conf $install/usr/share/john
al@20473 44 cp -a $src/run/password.lst $install/usr/share/john
al@20473 45 cp $src/run/john.conf $install/etc/john
al@20473 46 sed -i 's|$JOHN|/usr/share/john|g' $install/etc/john/john.conf
pascal@2172 47 }
pascal@2172 48
al@20473 49 genpkg_rules() {
al@20473 50 copy @std
al@20473 51 DEPENDS="openssl libdes"
al@20473 52 CONFIG_FILES="/etc/john/john.conf"
pascal@2172 53 }