wok-current annotate john/receipt @ rev 21507
updated n2n (1.3.2 -> 2.4)
author | Hans-G?nter Theisgen |
---|---|
date | Thu May 02 17:41:52 2019 +0100 (2019-05-02) |
parents | 5a01eb694834 |
children | e233cb2fd094 |
rev | line source |
---|---|
pascal@2172 | 1 # SliTaz package receipt. |
pascal@2172 | 2 |
pascal@2172 | 3 PACKAGE="john" |
Hans-G?nter@21084 | 4 VERSION="1.8.0" |
pascal@2172 | 5 CATEGORY="system-tools" |
pascal@2172 | 6 SHORT_DESC="Fast password cracker." |
pascal@2172 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15215 | 8 LICENSE="GPL2" |
Hans-G?nter@21084 | 9 WEB_SITE="https://www.openwall.com/john/" |
Hans-G?nter@21084 | 10 |
Hans-G?nter@21084 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@21084 | 12 WGET_URL="${WEB_SITE}j/$TARBALL" |
Hans-G?nter@21084 | 13 |
Hans-G?nter@21084 | 14 DEPENDS="libdes openssl" |
Hans-G?nter@21084 | 15 BUILD_DEPENDS="libdes-dev openssl-dev" |
slaxemulator@10867 | 16 CONFIG_FILES="/etc/john/john.conf" |
pascal@2172 | 17 |
Hans-G?nter@21084 | 18 #PATCH="http://www.openwall.com/john/g/$PACKAGE-$VERSION-jumbo-7.diff.gz" |
Hans-G?nter@21084 | 19 #EXTRA_SOURCE_FILES="$PATCH" |
slaxemulator@11197 | 20 |
pascal@2172 | 21 # Rules to configure and make the package. |
pascal@2172 | 22 compile_rules() |
pascal@2172 | 23 { |
Hans-G?nter@21084 | 24 # cd $src |
Hans-G?nter@21084 | 25 # [ -s $SOURCES_REPOSITORY/$(basename $PATCH) ] || |
Hans-G?nter@21084 | 26 # wget -P $SOURCES_REPOSITORY $PATCH |
Hans-G?nter@21084 | 27 # zcat $SRC/$(basename $PATCH) | patch -p1 |
Hans-G?nter@21084 | 28 |
pascal@2172 | 29 cd $src/src |
slaxemulator@10867 | 30 patch -Np0 -i $stuff/params.h.patch |
Hans-G?nter@21084 | 31 # sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' Makefile |
slaxemulator@11197 | 32 sed -i "s|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=$ARCH -DJOHN_SYSTEMWIDE=1|" Makefile |
Hans-G?nter@21084 | 33 |
pascal@2172 | 34 make clean generic |
pascal@2172 | 35 } |
pascal@2172 | 36 |
pascal@2172 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2172 | 38 genpkg_rules() |
pascal@2172 | 39 { |
Hans-G?nter@21084 | 40 mkdir -p \ |
Hans-G?nter@21084 | 41 $fs/usr/sbin \ |
Hans-G?nter@21084 | 42 $fs/etc/john \ |
Hans-G?nter@21084 | 43 $fs/usr/share/john |
Hans-G?nter@21084 | 44 |
Hans-G?nter@21084 | 45 cp -a $src/run/john $fs/usr/sbin |
Hans-G?nter@21084 | 46 cp -a $src/run/mailer $fs/usr/sbin |
Hans-G?nter@21084 | 47 cp -a $src/run/unafs $fs/usr/sbin |
Hans-G?nter@21084 | 48 cp -a $src/run/unique $fs/usr/sbin |
Hans-G?nter@21084 | 49 cp -a $src/run/unshadow $fs/usr/sbin |
Hans-G?nter@21084 | 50 cp -a $src/run/*.chr $fs/usr/share/john |
Hans-G?nter@21085 | 51 # cp -a $src/run/dumb??.conf $fs/usr/share/john |
Hans-G?nter@21085 | 52 # cp -a $src/run/generic.conf $fs/usr/share/john |
Hans-G?nter@21084 | 53 cp -a $src/run/password.lst $fs/usr/share/john |
Hans-G?nter@21084 | 54 cp $src/run/john.conf $fs/etc/john |
Hans-G?nter@21084 | 55 |
slaxemulator@10867 | 56 sed -i 's|$JOHN|/usr/share/john|g' $fs/etc/john/john.conf |
pascal@2172 | 57 } |