wok-next annotate john/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | d6378d455338 |
children | d2aca43913dc |
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@21020 | 9 WEB_SITE="https://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() { |
al@20513 | 20 [ -s $SRC/$(basename $PATCH) ] || |
al@20513 | 21 wget -P $SRC $PATCH |
slaxemulator@11197 | 22 zcat $SRC/$(basename $PATCH) | patch -p1 |
al@20473 | 23 |
pascal@2172 | 24 cd $src/src |
slaxemulator@11197 | 25 sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' Makefile |
al@20473 | 26 |
al@20473 | 27 case $ARCH in |
al@20473 | 28 x86_64) Arch='nocona';; |
al@20473 | 29 *) Arch="$ARCH";; |
al@20473 | 30 esac |
al@20473 | 31 sed -i "s|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=$Arch -DJOHN_SYSTEMWIDE=1|" Makefile |
al@20473 | 32 make clean generic || return 1 |
al@20473 | 33 |
al@20473 | 34 mkdir -p $install/usr/sbin $install/etc/john $install/usr/share/john |
al@20473 | 35 cp -a $src/run/john $install/usr/sbin |
al@20473 | 36 cp -a $src/run/mailer $install/usr/sbin |
al@20473 | 37 cp -a $src/run/unafs $install/usr/sbin |
al@20473 | 38 cp -a $src/run/unique $install/usr/sbin |
al@20473 | 39 cp -a $src/run/unshadow $install/usr/sbin |
al@20473 | 40 cp -a $src/run/*.chr $install/usr/share/john |
al@20473 | 41 cp -a $src/run/dumb??.conf $install/usr/share/john |
al@20473 | 42 cp -a $src/run/generic.conf $install/usr/share/john |
al@20473 | 43 cp -a $src/run/password.lst $install/usr/share/john |
al@20473 | 44 cp $src/run/john.conf $install/etc/john |
al@20473 | 45 sed -i 's|$JOHN|/usr/share/john|g' $install/etc/john/john.conf |
pascal@2172 | 46 } |
pascal@2172 | 47 |
al@20473 | 48 genpkg_rules() { |
al@20473 | 49 copy @std |
al@20473 | 50 DEPENDS="openssl libdes" |
al@20473 | 51 CONFIG_FILES="/etc/john/john.conf" |
pascal@2172 | 52 } |