From a40d7aa891556e7984504838ea13099a5ca12802 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 20 Aug 2023 03:40:25 +0100 Subject: gentoo auto-resync : 20:08:2023 - 03:40:24 --- app-crypt/johntheripper/Manifest | 2 +- .../johntheripper/johntheripper-1.8.0-r1.ebuild | 130 --------------------- .../johntheripper/johntheripper-1.8.0-r2.ebuild | 130 +++++++++++++++++++++ 3 files changed, 131 insertions(+), 131 deletions(-) delete mode 100644 app-crypt/johntheripper/johntheripper-1.8.0-r1.ebuild create mode 100644 app-crypt/johntheripper/johntheripper-1.8.0-r2.ebuild (limited to 'app-crypt/johntheripper') diff --git a/app-crypt/johntheripper/Manifest b/app-crypt/johntheripper/Manifest index ece4547f34d4..942a9de3a0d4 100644 --- a/app-crypt/johntheripper/Manifest +++ b/app-crypt/johntheripper/Manifest @@ -1,3 +1,3 @@ DIST john-1.8.0.tar.xz 4468704 BLAKE2B 90d6acc03dc8d22ef869320723e4799e64e15b621cde327ad420595889a43242b182079fd306bb7741b766ddc5e1239e3bdd4f4e396a4ab1e86d635cbebf8f60 SHA512 e2820ecabd7ea4c7404c3d40f064994d0f5746b093c859a58fbf2588492ebcef411d9f3088c8e8ee726284ead969e26fdae834cdae3eb2d32408fc79ed906543 -EBUILD johntheripper-1.8.0-r1.ebuild 2870 BLAKE2B 182a3d5d10b39dd04e4d2cbd365ef8239874fb595c5df9190fcf34909c96d94877c40ab03a413cee6ad4f81fc32bb2f6d0d8dac7d48757b57b9b1f376e6619d1 SHA512 73a5788f1951065480a71b49c8335c2d0adf9cc6918d42a5348bb8120bdab2d10d6a9759e984900a24b147bd87ada80e000b0ee90683770479b6e28589dacfb3 +EBUILD johntheripper-1.8.0-r2.ebuild 2869 BLAKE2B 970038b161660bc47a1a92279c911010fb77fa5008c4bcc8cc4f90ce7cb374629282943cf1742a542d14b5e62442bff431ad956826bb7e1b5498886aa42f03d9 SHA512 199605c25f5d02064f5df1a323099c065f916c66fcd9910c60c6c1c74c2419abe59f652496158e320e09b099b31c270f413de590ce480e9bef5ce8fa900c0181 MISC metadata.xml 409 BLAKE2B f8d40635490b818425ab465d2d34e41c05881a51860e7714161c50af9b061bea3801aefcbad8edb403f3af753b919621b709d23b0a86a0b303b903653f273fd5 SHA512 ed0271486767ec9b53851b534179307b2f160aea50f3a071b9d68aaa21265f5e0e5d031be3b00580e8f706b944ab7ec7aaa7c325485acf73655d899a8787ba13 diff --git a/app-crypt/johntheripper/johntheripper-1.8.0-r1.ebuild b/app-crypt/johntheripper/johntheripper-1.8.0-r1.ebuild deleted file mode 100644 index 6a6fca918868..000000000000 --- a/app-crypt/johntheripper/johntheripper-1.8.0-r1.ebuild +++ /dev/null @@ -1,130 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cuda flag-o-matic toolchain-funcs - -MY_PN="john" -MY_P="${MY_PN}-${PV}" - -DESCRIPTION="fast password cracker" -HOMEPAGE="https://www.openwall.com/john/" - -SRC_URI="https://www.openwall.com/john/j/${MY_P}.tar.xz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm ~hppa ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" -CPU_FLAGS="cpu_flags_x86_mmx cpu_flags_x86_sse2 cpu_flags_x86_avx cpu_flags_x86_xop" -IUSE="custom-cflags openmp ${CPU_FLAGS}" - -RDEPEND="sys-libs/zlib - virtual/libcrypt:=" -DEPEND="${RDEPEND} - !app-crypt/johntheripper-jumbo" - -S="${WORKDIR}/${MY_P}" - -get_target() { - if use alpha; then - echo "linux-alpha" - elif use amd64; then - if use cpu_flags_x86_xop; then - echo "linux-x86-64-xop" - elif use cpu_flags_x86_avx; then - echo "linux-x86-64-avx" - else - echo "linux-x86-64" - fi - elif use ppc; then - echo "linux-ppc32" - elif use ppc64; then - echo "linux-ppc64" - elif use sparc; then - echo "linux-sparc" - elif use x86; then - if use cpu_flags_x86_xop; then - echo "linux-x86-xop" - elif use cpu_flags_x86_avx; then - echo "linux-x86-avx" - elif use cpu_flags_x86_sse2; then - echo "linux-x86-sse2" - elif use cpu_flags_x86_mmx; then - echo "linux-x86-mmx" - else - echo "linux-x86-any" - fi - elif use ppc-macos; then - echo "macosx-ppc32-altivec" - elif use x64-macos; then - echo "macosx-x86-64" - else - echo "generic" - fi -} - -pkg_pretend() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -pkg_setup() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -src_prepare() { - default -} - -src_compile() { - local OMP - - use custom-cflags || strip-flags - cat <<- EOF >> config.gentoo || die - #define JOHN_SYSTEMWIDE 1 - #define JOHN_SYSTEMWIDE_HOME "${EPREFIX}/etc/john" - #define JOHN_SYSTEMWIDE_EXEC "${EPREFIX}/usr/libexec/john" -EOF - - append-flags -fPIC -fPIE - #gcc-specs-pie && append-ldflags -nopie - use openmp && OMP="-fopenmp" - - CPP="$(tc-getCXX)" CC="$(tc-getCC)" AS="$(tc-getCC)" LD="$(tc-getCC)" - - emake -C src/ \ - CPP="${CPP}" CC="${CC}" AS="${AS}" LD="${LD}" \ - CFLAGS="-c -Wall -include ../config.gentoo ${CFLAGS} ${OMP}" \ - LDFLAGS="${LDFLAGS} ${OMP}" \ - OPT_NORMAL="" \ - OMPFLAGS="${OMP}" \ - $(get_target) -} - -src_test() { - emake -C src/ check -} - -src_install() { - # executables - dosbin run/john - newsbin run/mailer john-mailer - - dosym john /usr/sbin/unafs - dosym john /usr/sbin/unique - dosym john /usr/sbin/unshadow - - # config files - insinto /etc/john - doins run/*.chr run/password.lst - doins run/*.conf - - # documentation - dodoc doc/* -} - -pkg_postinst() { - if [ -n "${REPLACING_VERSIONS}" ] && [ "${REPLACING_VERSIONS}" != "1.8.0" ]; then - ewarn "This package no longer includes jumbo. If you want jumbo please install app-crypt/johntheripper-jumbo instead." - fi -} diff --git a/app-crypt/johntheripper/johntheripper-1.8.0-r2.ebuild b/app-crypt/johntheripper/johntheripper-1.8.0-r2.ebuild new file mode 100644 index 000000000000..c9ec0d145876 --- /dev/null +++ b/app-crypt/johntheripper/johntheripper-1.8.0-r2.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cuda flag-o-matic toolchain-funcs + +MY_PN="john" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="fast password cracker" +HOMEPAGE="https://www.openwall.com/john/" + +SRC_URI="https://www.openwall.com/john/j/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~hppa ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" +CPU_FLAGS="cpu_flags_x86_mmx cpu_flags_x86_sse2 cpu_flags_x86_avx cpu_flags_x86_xop" +IUSE="custom-cflags openmp ${CPU_FLAGS}" + +DEPEND="sys-libs/zlib + virtual/libcrypt:=" +RDEPEND="${DEPEND} + !app-crypt/johntheripper-jumbo" + +S="${WORKDIR}/${MY_P}" + +get_target() { + if use alpha; then + echo "linux-alpha" + elif use amd64; then + if use cpu_flags_x86_xop; then + echo "linux-x86-64-xop" + elif use cpu_flags_x86_avx; then + echo "linux-x86-64-avx" + else + echo "linux-x86-64" + fi + elif use ppc; then + echo "linux-ppc32" + elif use ppc64; then + echo "linux-ppc64" + elif use sparc; then + echo "linux-sparc" + elif use x86; then + if use cpu_flags_x86_xop; then + echo "linux-x86-xop" + elif use cpu_flags_x86_avx; then + echo "linux-x86-avx" + elif use cpu_flags_x86_sse2; then + echo "linux-x86-sse2" + elif use cpu_flags_x86_mmx; then + echo "linux-x86-mmx" + else + echo "linux-x86-any" + fi + elif use ppc-macos; then + echo "macosx-ppc32-altivec" + elif use x64-macos; then + echo "macosx-x86-64" + else + echo "generic" + fi +} + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_prepare() { + default +} + +src_compile() { + local OMP + + use custom-cflags || strip-flags + cat <<- EOF >> config.gentoo || die + #define JOHN_SYSTEMWIDE 1 + #define JOHN_SYSTEMWIDE_HOME "${EPREFIX}/etc/john" + #define JOHN_SYSTEMWIDE_EXEC "${EPREFIX}/usr/libexec/john" +EOF + + append-flags -fPIC -fPIE + #gcc-specs-pie && append-ldflags -nopie + use openmp && OMP="-fopenmp" + + CPP="$(tc-getCXX)" CC="$(tc-getCC)" AS="$(tc-getCC)" LD="$(tc-getCC)" + + emake -C src/ \ + CPP="${CPP}" CC="${CC}" AS="${AS}" LD="${LD}" \ + CFLAGS="-c -Wall -include ../config.gentoo ${CFLAGS} ${OMP}" \ + LDFLAGS="${LDFLAGS} ${OMP}" \ + OPT_NORMAL="" \ + OMPFLAGS="${OMP}" \ + $(get_target) +} + +src_test() { + emake -C src/ check +} + +src_install() { + # executables + dosbin run/john + newsbin run/mailer john-mailer + + dosym john /usr/sbin/unafs + dosym john /usr/sbin/unique + dosym john /usr/sbin/unshadow + + # config files + insinto /etc/john + doins run/*.chr run/password.lst + doins run/*.conf + + # documentation + dodoc doc/* +} + +pkg_postinst() { + if [ -n "${REPLACING_VERSIONS}" ] && [ "${REPLACING_VERSIONS}" != "1.8.0" ]; then + ewarn "This package no longer includes jumbo. If you want jumbo please install app-crypt/johntheripper-jumbo instead." + fi +} -- cgit v1.2.3