wok annotate john/receipt @ rev 25539
Up perl-test-compile (3.1.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 09 12:11:13 2023 +0000 (22 months ago) |
parents | 12552b2d1c54 |
children |
rev | line source |
---|---|
pascal@2172 | 1 # SliTaz package receipt. |
pascal@2172 | 2 |
pascal@2172 | 3 PACKAGE="john" |
erkan@22435 | 4 VERSION="1.9.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" |
erkan@22437 | 9 WEB_SITE="https://www.openwall.com/john/" |
Hans-G?nter@21084 | 10 |
Hans-G?nter@21084 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
erkan@22437 | 12 WGET_URL="${WEB_SITE}k/$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@24433 | 21 # What is the latest version available today? |
pascal@24433 | 22 current_version() |
pascal@24433 | 23 { |
pascal@24433 | 24 wget -O - https://github.com/openwall/john/tags 2>/dev/null | \ |
pascal@24433 | 25 sed '/archive.*tar/!d;/tags\/[0-9\.]*.tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24433 | 26 } |
pascal@24433 | 27 |
pascal@2172 | 28 # Rules to configure and make the package. |
pascal@2172 | 29 compile_rules() |
pascal@2172 | 30 { |
Hans-G?nter@21084 | 31 # cd $src |
Hans-G?nter@21084 | 32 # [ -s $SOURCES_REPOSITORY/$(basename $PATCH) ] || |
Hans-G?nter@21084 | 33 # wget -P $SOURCES_REPOSITORY $PATCH |
Hans-G?nter@21084 | 34 # zcat $SRC/$(basename $PATCH) | patch -p1 |
Hans-G?nter@21084 | 35 |
pascal@2172 | 36 cd $src/src |
slaxemulator@10867 | 37 patch -Np0 -i $stuff/params.h.patch |
Hans-G?nter@21084 | 38 # sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' Makefile |
slaxemulator@11197 | 39 sed -i "s|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=$ARCH -DJOHN_SYSTEMWIDE=1|" Makefile |
Hans-G?nter@21084 | 40 |
pascal@2172 | 41 make clean generic |
pascal@2172 | 42 } |
pascal@2172 | 43 |
pascal@2172 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2172 | 45 genpkg_rules() |
pascal@2172 | 46 { |
Hans-G?nter@21084 | 47 mkdir -p \ |
Hans-G?nter@21084 | 48 $fs/usr/sbin \ |
Hans-G?nter@21084 | 49 $fs/etc/john \ |
Hans-G?nter@21084 | 50 $fs/usr/share/john |
Hans-G?nter@21084 | 51 |
Hans-G?nter@21084 | 52 cp -a $src/run/john $fs/usr/sbin |
Hans-G?nter@21084 | 53 cp -a $src/run/mailer $fs/usr/sbin |
Hans-G?nter@21084 | 54 cp -a $src/run/unafs $fs/usr/sbin |
Hans-G?nter@21084 | 55 cp -a $src/run/unique $fs/usr/sbin |
Hans-G?nter@21084 | 56 cp -a $src/run/unshadow $fs/usr/sbin |
Hans-G?nter@21084 | 57 cp -a $src/run/*.chr $fs/usr/share/john |
Hans-G?nter@21085 | 58 # cp -a $src/run/dumb??.conf $fs/usr/share/john |
Hans-G?nter@21085 | 59 # cp -a $src/run/generic.conf $fs/usr/share/john |
Hans-G?nter@21084 | 60 cp -a $src/run/password.lst $fs/usr/share/john |
Hans-G?nter@21084 | 61 cp $src/run/john.conf $fs/etc/john |
Hans-G?nter@21084 | 62 |
slaxemulator@10867 | 63 sed -i 's|$JOHN|/usr/share/john|g' $fs/etc/john/john.conf |
pascal@2172 | 64 } |