wok-6.x annotate john/receipt @ rev 14337
Add EXTRA_SOURCE_FILES variable to track sources files for the mirrors
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 13 19:32:46 2013 +0200 (2013-04-13) |
parents | 3d13d460f4df |
children | 7bb096863642 |
rev | line source |
---|---|
pascal@2172 | 1 # SliTaz package receipt. |
pascal@2172 | 2 |
pascal@2172 | 3 PACKAGE="john" |
slaxemulator@11197 | 4 VERSION="1.7.8" |
pascal@2172 | 5 CATEGORY="system-tools" |
pascal@2172 | 6 SHORT_DESC="Fast password cracker." |
pascal@2172 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@2172 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@2172 | 9 WEB_SITE="http://www.openwall.com/john/" |
pascal@2172 | 10 WGET_URL="${WEB_SITE}g/$TARBALL" |
slaxemulator@10867 | 11 CONFIG_FILES="/etc/john/john.conf" |
pascal@2172 | 12 |
slaxemulator@11197 | 13 DEPENDS="openssl libdes" |
slaxemulator@11197 | 14 BUILD_DEPENDS="libdes-dev openssl-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 |
pascal@2172 | 19 # Rules to configure and make the package. |
pascal@2172 | 20 compile_rules() |
pascal@2172 | 21 { |
slaxemulator@11197 | 22 cd $src |
slaxemulator@11197 | 23 [ -s $SOURCES_REPOSITORY/$(basename $PATCH) ] || |
slaxemulator@11197 | 24 wget -P $SOURCES_REPOSITORY $PATCH |
slaxemulator@11197 | 25 zcat $SRC/$(basename $PATCH) | patch -p1 |
pascal@2172 | 26 cd $src/src |
slaxemulator@10867 | 27 patch -Np0 -i $stuff/params.h.patch |
slaxemulator@11197 | 28 sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' Makefile |
slaxemulator@11197 | 29 sed -i "s|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=$ARCH -DJOHN_SYSTEMWIDE=1|" Makefile |
pascal@2172 | 30 make clean generic |
pascal@2172 | 31 } |
pascal@2172 | 32 |
pascal@2172 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2172 | 34 genpkg_rules() |
pascal@2172 | 35 { |
slaxemulator@10867 | 36 mkdir -p $fs/usr/sbin $fs/etc/john $fs/usr/share/john |
pascal@2172 | 37 cp -a $src/run/john $fs/usr/sbin |
pascal@2172 | 38 cp -a $src/run/mailer $fs/usr/sbin |
pascal@2172 | 39 cp -a $src/run/unafs $fs/usr/sbin |
pascal@2172 | 40 cp -a $src/run/unique $fs/usr/sbin |
pascal@2172 | 41 cp -a $src/run/unshadow $fs/usr/sbin |
slaxemulator@10867 | 42 cp -a $src/run/*.chr $fs/usr/share/john |
samuel_trassare@12044 | 43 cp -a $src/run/dumb??.conf $fs/usr/share/john |
samuel_trassare@12044 | 44 cp -a $src/run/generic.conf $fs/usr/share/john |
slaxemulator@10867 | 45 cp -a $src/run/password.lst $fs/usr/share/john |
pascal@2172 | 46 cp $src/run/john.conf $fs/etc/john |
slaxemulator@10867 | 47 sed -i 's|$JOHN|/usr/share/john|g' $fs/etc/john/john.conf |
pascal@2172 | 48 } |
pascal@2172 | 49 |