wok annotate john/receipt @ rev 12294

linux: build first the x86_64 kernel
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 16 09:42:04 2012 +0200 (2012-04-16)
parents b3e1b5b704a0
children b2a632fc9587
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"
slaxemulator@11197 17
pascal@2172 18 # Rules to configure and make the package.
pascal@2172 19 compile_rules()
pascal@2172 20 {
slaxemulator@11197 21 cd $src
slaxemulator@11197 22 [ -s $SOURCES_REPOSITORY/$(basename $PATCH) ] ||
slaxemulator@11197 23 wget -P $SOURCES_REPOSITORY $PATCH
slaxemulator@11197 24 zcat $SRC/$(basename $PATCH) | patch -p1
pascal@2172 25 cd $src/src
slaxemulator@10867 26 patch -Np0 -i $stuff/params.h.patch
slaxemulator@11197 27 sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' Makefile
slaxemulator@11197 28 sed -i "s|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=$ARCH -DJOHN_SYSTEMWIDE=1|" Makefile
pascal@2172 29 make clean generic
pascal@2172 30 }
pascal@2172 31
pascal@2172 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2172 33 genpkg_rules()
pascal@2172 34 {
slaxemulator@10867 35 mkdir -p $fs/usr/sbin $fs/etc/john $fs/usr/share/john
pascal@2172 36 cp -a $src/run/john $fs/usr/sbin
pascal@2172 37 cp -a $src/run/mailer $fs/usr/sbin
pascal@2172 38 cp -a $src/run/unafs $fs/usr/sbin
pascal@2172 39 cp -a $src/run/unique $fs/usr/sbin
pascal@2172 40 cp -a $src/run/unshadow $fs/usr/sbin
slaxemulator@10867 41 cp -a $src/run/*.chr $fs/usr/share/john
samuel_trassare@12044 42 cp -a $src/run/dumb??.conf $fs/usr/share/john
samuel_trassare@12044 43 cp -a $src/run/generic.conf $fs/usr/share/john
slaxemulator@10867 44 cp -a $src/run/password.lst $fs/usr/share/john
pascal@2172 45 cp $src/run/john.conf $fs/etc/john
slaxemulator@10867 46 sed -i 's|$JOHN|/usr/share/john|g' $fs/etc/john/john.conf
pascal@2172 47 }
pascal@2172 48