# SliTaz package receipt. PACKAGE="john" VERSION="1.7.8" CATEGORY="system-tools" SHORT_DESC="Fast password cracker." MAINTAINER="pascal.bellard@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.openwall.com/john/" WGET_URL="${WEB_SITE}g/$TARBALL" CONFIG_FILES="/etc/john/john.conf" DEPENDS="openssl libdes" BUILD_DEPENDS="libdes-dev openssl-dev" PATCH="http://www.openwall.com/john/g/$PACKAGE-$VERSION-jumbo-7.diff.gz" # Rules to configure and make the package. compile_rules() { cd $src [ -s $SOURCES_REPOSITORY/$(basename $PATCH) ] || wget -P $SOURCES_REPOSITORY $PATCH zcat $SRC/$(basename $PATCH) | patch -p1 cd $src/src patch -Np0 -i $stuff/params.h.patch sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' Makefile sed -i "s|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=$ARCH -DJOHN_SYSTEMWIDE=1|" Makefile make clean generic } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/sbin $fs/etc/john $fs/usr/share/john cp -a $src/run/john $fs/usr/sbin cp -a $src/run/mailer $fs/usr/sbin cp -a $src/run/unafs $fs/usr/sbin cp -a $src/run/unique $fs/usr/sbin cp -a $src/run/unshadow $fs/usr/sbin cp -a $src/run/*.chr $fs/usr/share/john cp -a $src/run/dumb??.conf $fs/usr/share/john cp -a $src/run/generic.conf $fs/usr/share/john cp -a $src/run/password.lst $fs/usr/share/john cp $src/run/john.conf $fs/etc/john sed -i 's|$JOHN|/usr/share/john|g' $fs/etc/john/john.conf }