From a7282ee47fdbca38169d6bc184e356ad1fb30253 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 15 Jul 2014 17:59:59 +0200 Subject: [PATCH] john: switch to libressl. --- srcpkgs/john/template | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/srcpkgs/john/template b/srcpkgs/john/template index fa7209d0802..ee54f10840c 100644 --- a/srcpkgs/john/template +++ b/srcpkgs/john/template @@ -2,10 +2,10 @@ pkgname=john version=1.7.9 _jumbover=5 -revision=2 +revision=3 wrksrc="${pkgname}-${version}-jumbo-${_jumbover}" hostmakedepends="libgomp-devel" -makedepends="libgomp-devel openssl-devel" +makedepends="zlib-devel libgomp-devel libressl-devel" conf_files="/etc/john/john.conf" short_desc="John the Ripper password cracker (jumbo-${_jumbover} patch included)" maintainer="Juan RP " @@ -16,20 +16,21 @@ checksum=4007aec40d2fedb1ce3287c62f23f8a1a8b8029d22cd3cbc60bb1a42f56c1a7f only_for_archs="i686 x86_64" -do_build() { +do_configure() { sed -i 's|CFLAGS = -c -Wall -O2|CFLAGS += -c -Wall -DJOHN_SYSTEMWIDE=1|' src/Makefile sed -i 's|^LDFLAGS =\(.*\)|LDFLAGS +=\1 -lm|' src/Makefile sed -i 's|-m486||g' src/Makefile sed -i 's|-msse2||g' src/Makefile sed -i 's|#OMPFLAGS = -fopenmp|OMPFLAGS = -fopenmp|' src/Makefile - + sed -i 's|des_|DES_|g' src/KRB4*.c +} +do_build() { if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then make ${makejobs} -C src linux-x86-64 elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then make ${makejobs} -C src linux-x86-mmx fi } - do_install() { # config file sed -i 's|$JOHN|/usr/share/john|g' run/john.conf