johntheripper-jumbo conversion

This commit is contained in:
Rick Farina (Zero_Chaos) 2018-12-18 16:06:30 -05:00
parent ee71e8c4d3
commit e4bdd7e356
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A
8 changed files with 47 additions and 45 deletions

View file

@ -0,0 +1 @@
DIST JohnTheRipper-1.8.0-jumbo-1.tar.gz 32533148 BLAKE2B 15929fa25314438619899582b209bee6902b1e53dc2df39ed6a686820665fd4d8e56d26b3f0082d05dc6be2f54add3526570d936c0a929641e33e6dcfb7a13b5 SHA512 8b7fad7a6330b5ff1afc306218ba698aaa27776b566f82c2e76102d5ceb10aeafa69d71fa6fff67c81996ea2c6a04384bab4696ed192306c6d074873562e7089

View file

@ -3,13 +3,12 @@
EAPI=7
inherit cuda flag-o-matic toolchain-funcs pax-utils
inherit flag-o-matic toolchain-funcs pax-utils
DESCRIPTION="fast password cracker"
HOMEPAGE="http://www.openwall.com/john/"
MY_PN="JohnTheRipper"
MY_P="${MY_PN}-${PV}"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/magnumripper/${MY_PN}.git"
@ -17,7 +16,9 @@ if [[ ${PV} == "9999" ]] ; then
KEYWORDS=""
else
JUMBO="jumbo-1"
SRC_URI="https://github.com/magnumripper/${MY_PN}/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
MY_PV="${PV}-${JUMBO}"
MY_P="${MY_PN}-${MY_PV}"
SRC_URI="https://github.com/magnumripper/${MY_PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
S="${WORKDIR}/${MY_P}"
fi
@ -25,12 +26,10 @@ fi
LICENSE="GPL-2"
SLOT="0"
#removed rexgen and commoncrypto
IUSE="cuda custom-cflags kerberos mpi opencl openmp pcap"
IUSE="custom-cflags kerberos mpi opencl openmp pcap"
DEPEND=">=dev-libs/openssl-1.0.1:0
mpi? ( virtual/mpi )
cuda? ( x11-drivers/nvidia-drivers
dev-util/nvidia-cuda-toolkit:= )
opencl? ( virtual/opencl )
kerberos? ( virtual/krb5 )
pcap? ( net-libs/libpcap )
@ -38,7 +37,8 @@ DEPEND=">=dev-libs/openssl-1.0.1:0
sys-libs/zlib
app-arch/bzip2"
RDEPEND="${DEPEND}"
RDEPEND="${DEPEND}
!app-crypt/johntheripper"
pkg_setup() {
if use openmp && [[ ${MERGE_TYPE} != binary ]]; then
@ -47,32 +47,25 @@ pkg_setup() {
}
src_prepare() {
if use cuda; then
pushd "src" >&/dev/null || die
cuda_src_prepare
popd
fi
epatch ${FILESDIR}/${PV}-fix-32bit.patch
epatch ${FILESDIR}/${PV}-gcc5.patch
eapply "${FILESDIR}/${PV}-gcc5.patch"
sed -i 's#/usr/share/john#/etc/john#' src/params.h || die
default
}
src_configure() {
cd src || die
use custom-cflags || strip-flags
# John ignores CPPFLAGS, use CFLAGS instead
append-cflags -DJOHN_SYSTEMWIDE=1
append-cflags -DJOHN_SYSTEMWIDE_HOME=\"${EPREFIX}/etc/john\"
# fix for building with newer nvidia stuff
use cuda && append-ldflags -lstdc++
NVIDIA_CUDA="${EPREFIX}/opt/cuda/" econf \
econf \
--disable-native-macro \
--disable-native-tests \
--without-commoncrypto \
--with-openssl \
--disable-rexgen \
$(use_enable cuda) \
--with-openssl \
$(use_enable mpi) \
$(use_enable opencl) \
$(use_enable openmp) \
@ -80,24 +73,21 @@ src_configure() {
}
src_compile() {
use custom-cflags || strip-flags
# John ignores CPPFLAGS, use CFLAGS instead
append-cflags -DJOHN_SYSTEMWIDE=1
append-cflags -DJOHN_SYSTEMWIDE_HOME=\"${EPREFIX}/etc/john\"
emake -C src
}
src_test() {
pax-mark -mr run/john
if use opencl || use cuda; then
ewarn "GPU tests fail, skipping all tests..."
else
#if use opencl; then
# ewarn "GPU tests fail, skipping all tests..."
#else
#weak tests
emake -C src check
# emake -C src check
#strong tests
#./run/john --test=1 --verbosity=2 || die
fi
#fi
ewarn "When built systemwide, john can't run tests without reading files in /etc."
ewarn "Don't bother opening a bug for this unless you include a patch to fix it"
}
src_install() {
@ -128,6 +118,7 @@ src_install() {
insinto /etc/john
doins run/*.chr run/password.lst
doins run/*.conf
doins -r run/kernels
# documentation
dodoc doc/*

View file

@ -9,7 +9,6 @@ DESCRIPTION="fast password cracker"
HOMEPAGE="http://www.openwall.com/john/"
MY_PN="JohnTheRipper"
MY_P="${MY_PN}-${PV}"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/magnumripper/${MY_PN}.git"
@ -17,7 +16,10 @@ if [[ ${PV} == "9999" ]] ; then
KEYWORDS=""
else
JUMBO="jumbo-1"
SRC_URI="https://github.com/magnumripper/${MY_PN}/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
MY_PV="${PV}-${JUMBO}"
MY_P="${MY_PN}-${MY_PV}"
SRC_URI="https://github.com/magnumripper/${MY_PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
https://github.com/magnumripper/JohnTheRipper/archive/1.8.0-jumbo-1.tar.gz
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
S="${WORKDIR}/${MY_P}"
fi
@ -25,7 +27,7 @@ fi
LICENSE="GPL-2"
SLOT="0"
#removed rexgen and commoncrypto
IUSE="cuda custom-cflags kerberos mpi opencl openmp pcap"
IUSE="custom-cflags kerberos mpi opencl openmp pcap"
DEPEND=">=dev-libs/openssl-1.0.1:0
mpi? ( virtual/mpi )
@ -36,7 +38,8 @@ DEPEND=">=dev-libs/openssl-1.0.1:0
sys-libs/zlib
app-arch/bzip2"
RDEPEND="${DEPEND}"
RDEPEND="${DEPEND}
!app-crypt/johntheripper"
pkg_setup() {
if use openmp && [[ ${MERGE_TYPE} != binary ]]; then
@ -44,17 +47,21 @@ pkg_setup() {
fi
}
src_prepare() {
sed -i 's#$prefix/share/john#/etc/john#' src/configure || die
default
}
src_configure() {
cd src || die
use custom-cflags || strip-flags
append-cppflags -DJOHN_SYSTEMWIDE_HOME=\"${EPREFIX}/etc/john\"
econf \
--disable-rexgen \
--without-commoncrypto \
--disable-native-march \
--disable-native-tests \
--without-commoncrypto \
--disable-rexgen \
--with-openssl \
--with-systemwide \
$(use_enable mpi) \
@ -69,14 +76,16 @@ src_compile() {
src_test() {
pax-mark -mr run/john
if use opencl || use cuda; then
ewarn "GPU tests fail, skipping all tests..."
else
#if use opencl; then
# ewarn "GPU tests fail, skipping all tests..."
#else
#weak tests
emake -C src check
# emake -C src check
#strong tests
#./run/john --test=1 --verbosity=2 || die
fi
#fi
ewarn "When built systemwide, john can't run tests without reading files in /etc."
ewarn "Don't bother opening a bug for this unless you include a patch to fix it"
}
src_install() {
@ -107,6 +116,7 @@ src_install() {
insinto /etc/john
doins run/*.chr run/password.lst
doins run/*.conf
doins -r run/rules run/kernels run/ztex
# documentation
dodoc doc/*

View file

@ -1,2 +0,0 @@
DIST john-1.8.0-jumbo-1.tar.gz 30786455 SHA256 8a059d3caa798e2eb1eddacefb5c4d886c8df55dbf3eac314648bee499eec65d SHA512 ce1a84c7e1a45cef4ecc94e29ad56f40b0a3db502042fc37c1b815e6f8cf243663e24b0ce38a40cf26e93b2e9f1f7b3f730f9710bbe72538973aec96b77f6886 WHIRLPOOL bd6fabb14eefc414b5c8339d8acd4f751c4087f075eb144347740f0ec7ef64f857b60532b7c985e1889430eba84a28af09e5f3b25c9c7f76f446e6740fba09e9
DIST john-1.8.0.tar.gz 5450412 SHA256 1222738c7829ce3014177ca9bd26c41573426f883c6b22527ee9bde363d84bda SHA512 edb7916653d7afcecc57b59919b0f511f46c1bdc8a0866f9467405eaae222ca57af1d24695a9bee30a87b0885a4cfe3bbab3596be74932bfd34a8d8e04d60526 WHIRLPOOL bd037f4964e6fac1b3ffe3fec1330ccebea838f1f00d41abcf45b319ec2b9f616112fb784079f7b1cee7212db7a1a23369276b6d27aa76709e988aca2735ac07

View file

@ -44,6 +44,7 @@ app-crypt/gpa
app-crypt/gpgstats
app-crypt/heimdal
app-crypt/johntheripper
app-crypt/johntheripper-jumbo
app-crypt/keylookup
app-crypt/keynote
app-crypt/md4sum

View file

@ -1,5 +1,6 @@
app-crypt/gnupg smartcard
app-crypt/johntheripper mmx mpi sse2 custom-cflags
app-crypt/johntheripper-jumbo mmx mpi sse2 custom-cflags
app-crypt/ophcrack -tables
#Make keyring optional by hacking gnome-base/libgnomeui and =gnome-base/gnome-keyring-3.18.3-r2