From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2E2F2158094 for ; Sun, 2 Oct 2022 02:24:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 18868E0953; Sun, 2 Oct 2022 02:24:20 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F391FE0953 for ; Sun, 2 Oct 2022 02:24:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 11335340DE5 for ; Sun, 2 Oct 2022 02:24:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 69C24576 for ; Sun, 2 Oct 2022 02:24:17 +0000 (UTC) From: "Rick Farina" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Rick Farina" Message-ID: <1664676644.000432917e31a8f0dbbacde06951ac9a70342be7.zerochaos@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/johntheripper-jumbo/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/johntheripper-jumbo/johntheripper-jumbo-1.9.0_p20211129-r1.ebuild X-VCS-Directories: app-crypt/johntheripper-jumbo/ X-VCS-Committer: zerochaos X-VCS-Committer-Name: Rick Farina X-VCS-Revision: 000432917e31a8f0dbbacde06951ac9a70342be7 X-VCS-Branch: master Date: Sun, 2 Oct 2022 02:24:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 142de4ee-9999-4aaa-987d-3702d84346f2 X-Archives-Hash: f262e41e1a93948102675475e2c6b137 commit: 000432917e31a8f0dbbacde06951ac9a70342be7 Author: matoro users noreply github com> AuthorDate: Sun Sep 18 03:29:25 2022 +0000 Commit: Rick Farina gentoo org> CommitDate: Sun Oct 2 02:10:44 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00043291 app-crypt/johntheripper-jumbo: install bundled perl deps Several perl scripts e.g. pdf2john.pl need these local bundled perl deps installed. They are pretty heavily forked from the original upstream versions, and locally contained to this package. Closes: https://bugs.gentoo.org/830660 Signed-off-by: Rick Farina gentoo.org> .../johntheripper-jumbo-1.9.0_p20211129-r1.ebuild | 159 +++++++++++++++++++++ 1 file changed, 159 insertions(+) diff --git a/app-crypt/johntheripper-jumbo/johntheripper-jumbo-1.9.0_p20211129-r1.ebuild b/app-crypt/johntheripper-jumbo/johntheripper-jumbo-1.9.0_p20211129-r1.ebuild new file mode 100644 index 000000000000..9abb2540073e --- /dev/null +++ b/app-crypt/johntheripper-jumbo/johntheripper-jumbo-1.9.0_p20211129-r1.ebuild @@ -0,0 +1,159 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools flag-o-matic toolchain-funcs pax-utils + +DESCRIPTION="Fast password cracker" +HOMEPAGE="http://www.openwall.com/john/" + +MY_PN="JohnTheRipper" + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/magnumripper/${MY_PN}.git" + inherit git-r3 +else + JUMBO="jumbo-1.1" + MY_PV="${PV}-${JUMBO}" + MY_P="john-${MY_PV}" + HASH_COMMIT="5d0c85f16f96ca7b6dd06640e95a5801081d6e20" + + SRC_URI="https://github.com/openwall/john/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/john-${HASH_COMMIT}" + + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="custom-cflags kerberos mpi opencl openmp pcap" + +DEPEND=">=dev-libs/openssl-1.0.1:= + virtual/libcrypt:= + mpi? ( virtual/mpi ) + opencl? ( virtual/opencl ) + kerberos? ( virtual/krb5 ) + pcap? ( net-libs/libpcap ) + dev-libs/gmp:= + sys-libs/zlib + app-arch/bzip2" +# Missing (unpackaged): +# - Digest::Haval256 +# - Digest::x +# See bug #777369. +RDEPEND="${DEPEND} + dev-perl/Digest-MD2 + virtual/perl-Digest-MD5 + dev-perl/Digest-SHA3 + dev-perl/Digest-GOST + !app-crypt/johntheripper" + +PATCHES=( + "${FILESDIR}"/${P}-fix-bashism.patch +) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_prepare() { + default + + cd src || die + eautoreconf + + sed -i 's#$prefix/share/john#/etc/john#' configure || die +} + +src_configure() { + cd src || die + + use custom-cflags || strip-flags + + econf \ + --enable-pkg-config \ + --disable-native-march \ + --disable-native-tests \ + --disable-rexgen \ + --with-openssl \ + --with-systemwide \ + $(use_enable mpi) \ + $(use_enable opencl) \ + $(use_enable openmp) \ + $(use_enable pcap) +} + +src_compile() { + # Uses default LD=$(CC) but if the user's set LD, it'll call it + # bug #729432. + emake LD="$(tc-getCC)" -C src +} + +src_test() { + pax-mark -mr run/john + + #if use opencl; then + # GPU tests fail in portage, so run cpu only tests + # ./run/john --device=cpu --test=0 --verbosity=2 || die + #else + # Weak tests + #./run/john --test=0 --verbosity=2 || die + # Strong tests + #./run/john --test=1 --verbosity=2 || die + #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() { + # Executables + dosbin run/john + newsbin run/mailer john-mailer + + pax-mark -mr "${ED}/usr/sbin/john" + + # grep '$(LN)' Makefile.in | head -n-3 | tail -n+2 | cut -d' ' -f3 | cut -d/ -f3 + local s + for s in \ + unshadow unafs undrop unique ssh2john putty2john pfx2john keepass2john keyring2john \ + zip2john gpg2john rar2john racf2john keychain2john kwallet2john pwsafe2john dmg2john \ + hccap2john base64conv truecrypt_volume2john keystore2john + do + dosym john /usr/sbin/${s} + done + + # Scripts + exeinto /usr/share/john + doexe run/*.pl + doexe run/*.py + insinto /usr/share/john + doins -r run/lib + cd run || die + + local s + for s in *.pl *.py; do + dosym ../share/john/${s} /usr/bin/${s} + done + cd .. || die + + if use opencl; then + insinto /etc/john + doins -r run/opencl + fi + + # Config files + insinto /etc/john + doins run/*.chr run/password.lst + doins run/*.conf + doins -r run/rules run/ztex + + # Documentation + rm -f doc/README || die + dodoc -r README.md doc/* +}