From 7f0ccc917c7abe6223784c703d86cd14755691fb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 3 Jul 2021 22:39:47 +0100 Subject: gentoo resync : 03.07.2021 --- app-crypt/johntheripper/Manifest | 2 +- .../johntheripper/johntheripper-1.8.0-r1.ebuild | 140 +++++++++++++++++++++ app-crypt/johntheripper/johntheripper-1.8.0.ebuild | 139 -------------------- 3 files changed, 141 insertions(+), 140 deletions(-) create mode 100644 app-crypt/johntheripper/johntheripper-1.8.0-r1.ebuild delete mode 100644 app-crypt/johntheripper/johntheripper-1.8.0.ebuild (limited to 'app-crypt/johntheripper') diff --git a/app-crypt/johntheripper/Manifest b/app-crypt/johntheripper/Manifest index 58ca29b499c3..74f5a0f43915 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.ebuild 3121 BLAKE2B 92eb6d74bbaa0617e54639dbc9c7aea2c193c53f6996ab1b96bcc85f789e6a92713239cfdb6f2b1d09678dfa6b94d37eed3e3babffbc1e38c2c938e3d8bb4a8c SHA512 770f077de18bb64b4a25e31e048fca5462fb0b2c6acd2fd32f7138bb693dfadc6b4f7264f481f9a4394851dc813105a38279addb84c21eac348e9e6f0ee6c247 +EBUILD johntheripper-1.8.0-r1.ebuild 3141 BLAKE2B bc039a11336a9993c64185c1ee0b3251f98dbc4ca24cf3ff60081c4e807bf0bfa0e6a9e55be518e65702f184edd343d4819752557f44adfc90d81ae0150763bb SHA512 57186c0038b5d7dbc6252ea6e93ead4cf10c6ca5e3cb62c895a92026394a834942771e36e6e2cd11a6067a9af6af9d64d440fdb708f95da121cc2a6ba5fd5ddf MISC metadata.xml 408 BLAKE2B 061c3b13a1528247c36a3c97dda9b4eb044a06abb953180723a83b7c069e6b40decac9e12605a17d9a6ed4d896ada27acbf8d2c42044872e64efa4cb895b609d SHA512 cb3df73a8466c79899cc1a8c2ed2431a84300fe09dd2a930c958c9d1fd68004191f2384722fe8a96ccca305be50143170b2722c672ec807971c9265064ca0d35 diff --git a/app-crypt/johntheripper/johntheripper-1.8.0-r1.ebuild b/app-crypt/johntheripper/johntheripper-1.8.0-r1.ebuild new file mode 100644 index 000000000000..48bf0ae95f66 --- /dev/null +++ b/app-crypt/johntheripper/johntheripper-1.8.0-r1.ebuild @@ -0,0 +1,140 @@ +# Copyright 1999-2021 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" + elif use x86-solaris; then + echo "solaris-x86-any" + elif use x86-fbsd; then + if use cpu_flags_x86_sse2; then + echo "freebsd-x86-sse2" + elif use cpu_flags_x86_mmx; then + echo "freebsd-x86-mmx" + else + echo "freebsd-x86-any" + fi + elif use amd64-fbsd; then + echo "freebsd-x86-64" + else + echo "generic" + fi +} + +pkg_setup() { + if use openmp && [[ ${MERGE_TYPE} != binary ]]; then + tc-has-openmp || die "Please switch to an openmp compatible compiler" + fi +} + +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() { + make -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.ebuild b/app-crypt/johntheripper/johntheripper-1.8.0.ebuild deleted file mode 100644 index 048b15c1c8d6..000000000000 --- a/app-crypt/johntheripper/johntheripper-1.8.0.ebuild +++ /dev/null @@ -1,139 +0,0 @@ -# Copyright 1999-2021 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" -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" - elif use x86-solaris; then - echo "solaris-x86-any" - elif use x86-fbsd; then - if use cpu_flags_x86_sse2; then - echo "freebsd-x86-sse2" - elif use cpu_flags_x86_mmx; then - echo "freebsd-x86-mmx" - else - echo "freebsd-x86-any" - fi - elif use amd64-fbsd; then - echo "freebsd-x86-64" - else - echo "generic" - fi -} - -pkg_setup() { - if use openmp && [[ ${MERGE_TYPE} != binary ]]; then - tc-has-openmp || die "Please switch to an openmp compatible compiler" - fi -} - -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() { - make -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