diff options
author | Dane Smith <c1pher@gentoo.org> | 2010-12-03 19:02:34 +0000 |
---|---|---|
committer | Dane Smith <c1pher@gentoo.org> | 2010-12-03 19:02:34 +0000 |
commit | c3458cd015d4db97b2345dcef7fb4a270e24620f (patch) | |
tree | 6c8f618af8d8bc37a060f05ad3e40ddffde53e42 /app-crypt | |
parent | Typo fix for #347648 (diff) | |
download | historical-c3458cd015d4db97b2345dcef7fb4a270e24620f.tar.gz historical-c3458cd015d4db97b2345dcef7fb4a270e24620f.tar.bz2 historical-c3458cd015d4db97b2345dcef7fb4a270e24620f.zip |
Revision bump for johnthe ripper. Add openmp use flag.
Package-Manager: portage-2.2.0_alpha4/cvs/Linux i686
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/johntheripper/ChangeLog | 10 | ||||
-rw-r--r-- | app-crypt/johntheripper/Manifest | 23 | ||||
-rw-r--r-- | app-crypt/johntheripper/johntheripper-1.7.6-r1.ebuild | 157 |
3 files changed, 188 insertions, 2 deletions
diff --git a/app-crypt/johntheripper/ChangeLog b/app-crypt/johntheripper/ChangeLog index d30975b4025b..45e96cd60212 100644 --- a/app-crypt/johntheripper/ChangeLog +++ b/app-crypt/johntheripper/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-crypt/johntheripper # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v 1.118 2010/10/13 17:28:08 c1pher Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v 1.119 2010/12/03 19:02:34 c1pher Exp $ + +*johntheripper-1.7.6-r1 (03 Dec 2010) + + 03 Dec 2010; Dane Smith <c1pher@gentoo.org> + +johntheripper-1.7.6-r1.ebuild: + Revision bump. Adds 'openmp' use flag to enable the built in + parallelization + support. 13 Oct 2010; Dane Smith <c1pher@gentoo.org> johntheripper-1.7.6.ebuild: QA fixes. Added a number of missing || die. diff --git a/app-crypt/johntheripper/Manifest b/app-crypt/johntheripper/Manifest index 41b887fa9f5b..043078e5305f 100644 --- a/app-crypt/johntheripper/Manifest +++ b/app-crypt/johntheripper/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX johntheripper-1.7.2-mkdir-sandbox.patch 554 RMD160 2dfa6d0e912d15ac6205ea89450a0a43c90e563b SHA1 5cd63044c33774f795f32184c486b88df9bb6fc1 SHA256 ced75f4476fc2fe412f630083a5be1102fbbd5ceafc2f34d703cccefdc03e588 AUX johntheripper-1.7.2-sha1-memset.patch 388 RMD160 71190df1e84e543eef49e95391596280d01b3601 SHA1 ec901d34075b32d515993a1918089e29084d234f SHA256 eb5a126c521b34dea476deccf4afe20816ccc861b41910dda7dd5e3625f75028 AUX johntheripper-1.7.2-stackdef-2.S.patch 363 RMD160 dfb0912bcff9ded13a50ccc153448423c0f00831 SHA1 ea3b75eb936adc98ebfe41650f608173b6b272f9 SHA256 9ce4d1e7ee1440208a7b8ed48fd4270c558772df10d3b2bb8ecaffc26152a073 @@ -30,6 +33,24 @@ EBUILD johntheripper-1.7.3.1-r1.ebuild 3802 RMD160 cd748e97576a721d12c02cde6eed2 EBUILD johntheripper-1.7.3.1.ebuild 3991 RMD160 339f70feb161e7bc6e5716cd02c99a77e8a9ed1a SHA1 f20d2ae314093f270393814abc7dba0a245d3e0d SHA256 249101538909c1a303923662c360c44e5eb0ac99069b8744674bbf2e62f5f812 EBUILD johntheripper-1.7.3.4.ebuild 3735 RMD160 5267feff38ecbaa90d01eb0da95595e5b3873e63 SHA1 b52b728619943229ebcfe4de336484b4b2f83f5a SHA256 108b17217b5aa0d801077cdc2a35c448c9b8b5cc58f879961ce8a2363b6cc19b EBUILD johntheripper-1.7.4.2.ebuild 3765 RMD160 b75a724991f5bd390beafacd304a36ac95c4d574 SHA1 1c865c064aed90a8e86c3ff9b22db6766047029f SHA256 d7ac7825f96b5cca459037a7d2baa800444e00fc8cf8c18767513e057c43b1cf +EBUILD johntheripper-1.7.6-r1.ebuild 4001 RMD160 f8248e13359e0e0414b57000c7eca4cbdd34e6f6 SHA1 1fc262de1df95a9ff7f18017717c7b0e28f9c0ce SHA256 b4e0845d1ba6ec73dbfe648c609029565b61aceb8245e57d47527af94e8b0cf2 EBUILD johntheripper-1.7.6.ebuild 3876 RMD160 ca29ce881ddb3f96b3d62a329f3783be13e6ee74 SHA1 c993f3c4ce6830f0a4e75dd70fd5bfeb18ad9ddb SHA256 e630d0395e6613fac6cf06e1ed7dd084dab9ae1763207c023233ad82b7559ffe -MISC ChangeLog 18896 RMD160 eab9eb70e31887b207c6aaceb79909f1be769863 SHA1 68c208f5103d3c6f39aa4678dd301ad44be73896 SHA256 88366b14e96821d8412f488dd3f343d83cc8a25d8e29c2bc84a83e1661a85796 +MISC ChangeLog 19108 RMD160 efb3df7c3eac0c6e680959f9e1a65ddf6d750cc4 SHA1 3858d4addeb8c1a00210e5822ffaf4f0de0cd61b SHA256 31e6248816ce811aa4ad718c83275bbd0bb31b43913d28d019c2ae6e79108007 MISC metadata.xml 160 RMD160 61ea9f9370afee3db802f40f7c6b2edd2f5347cf SHA1 51cf29a3589cff823294704e225b0de18f65e6dd SHA256 7419f4e73ddd07284403525f1380824fc68280cad69e2dfae0645ad52b33ef10 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.16 (GNU/Linux) + +iQIcBAEBAgAGBQJM+T6jAAoJEEsurZwMLhUxwgsP/jSfj0FnTkASzVP/ulai4UQl +IJaShSkj4qakVXdv8exvvq/DuWXM7nhr3mOpSMpBqoB6a4J/16eXb3UTNopcuAOH +vXyyUNWUgsgskbywCc7kj+r4FFD/atDrB+THsZPSKPCfbvza8VS/2XG+Tgcj5ruW +Y0s+LJiai+Hv5VLKM+wqP5JhWcKeM5cztCmikR+L07VEoILw1yjSD2cDAaeb+c8F +Ss3GILd9xjq1H0If5UkR1QwyCJG44ZIdNXeWu4yzszXqeRu6vzYSBJLjH5uskqa7 +UqyLxJj8cc2tbN9JXtH8PWjV+/H5sptNMWzVBJ7LI8sxK5O6KYOtiriG9DNYoObm +fZet4Z1lsDdNF79vaIN+X1G+HDHFmqM65ug7ZdfBwu0gZEVoQfYmfPowgnlZ7eqd +dJ4meV7XMieJOeEeAR1YOjsDPONBCOYWJ/S67IkOgxqlzXazXp3Pw2xIHAspp/nL +BsSXWyo5qf2cKWjEmgOfy99xYwAp3ACD5Z17+n8bpQlCJ5UWJSHWuXvueifZlvTE +G1fZk9AWKrA9cebYtUjnz5YWdylgIxzl4d3jWpC/J6kjISBUGLaNHj0mLOyoPJtu +Fx1OGXC5X80If3YpAdYa+GDsic7cnoFQMDKNPbOkbK5jqMiUvvmTOP6NKGdcmcWv +aB1NQBIbHaYl8WvSQtMy +=0vBi +-----END PGP SIGNATURE----- diff --git a/app-crypt/johntheripper/johntheripper-1.7.6-r1.ebuild b/app-crypt/johntheripper/johntheripper-1.7.6-r1.ebuild new file mode 100644 index 000000000000..5d49f3b61790 --- /dev/null +++ b/app-crypt/johntheripper/johntheripper-1.7.6-r1.ebuild @@ -0,0 +1,157 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.6-r1.ebuild,v 1.1 2010/12/03 19:02:34 c1pher Exp $ + +EAPI="2" + +inherit eutils flag-o-matic toolchain-funcs pax-utils + +MY_PN="john" +MY_P="${MY_PN}-${PV}" + +JUMBO="jumbo-4" +#MPI="mpi10" + +DESCRIPTION="fast password cracker" +HOMEPAGE="http://www.openwall.com/john/" + +SRC_URI="http://www.openwall.com/john/g/${MY_P}.tar.gz + !minimal? ( http://www.openwall.com/john/contrib/${MY_P}-${JUMBO}.diff.gz )" +# mpi? ( ftp://ftp.openwall.com/john/contrib/mpi/2009-bindshell/${MY_P}-${MPI}.patch.gz ) + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="altivec custom-cflags -minimal mmx openmp sse2" +#IUSE="altivec custom-cflags -minimal mmx -mpi sse2" + +# Seems a bit fussy with other MPI implementations. +RDEPEND="!minimal? ( >=dev-libs/openssl-0.9.7 )" +# mpi? ( sys-cluster/openmpi ) +DEPEND="${RDEPEND} + openmp? ( >=sys-devel/gcc-4.2[openmp] )" + +S="${WORKDIR}/${MY_P}" + +get_target() { + if use x86; then + if use sse2; then + echo "linux-x86-sse2" + elif use mmx; then + echo "linux-x86-mmx" + else + echo "linux-x86-any" + fi + elif use alpha; then + echo "linux-alpha" + elif use sparc; then + echo "linux-sparc" + elif use amd64; then + echo "linux-x86-64" + elif use ppc64; then + if use altivec; then + echo "linux-ppc32-altivec" + else + echo "linux-ppc64" + fi + # linux-ppc64-altivec is slightly slower than linux-ppc32-altivec for most hash types. + # as per the Makefile comments + elif use ppc; then + if use altivec; then + echo "linux-ppc32-altivec" + else + echo "linux-ppc32" + fi + else + echo "generic" + fi +} + +src_prepare() { +# if use mpi; then +# epatch "${WORKDIR}/${MY_P}-${MPI}.patch" +# fi + if ! use minimal; then + epatch "${WORKDIR}/${MY_P}-${JUMBO}.diff" + fi + local PATCHLIST="${PATCHLIST} 1.7.6-cflags 1.7.3.1-mkdir-sandbox" + + cd src + for p in ${PATCHLIST}; do + epatch "${FILESDIR}/${PN}-${p}.patch" + done + + if ! use minimal; then + sed -e "s/LDFLAGS *= */override LDFLAGS += /" -e "/LDFLAGS/s/-s//" \ + -e "/LDFLAGS/s/-L[^ ]*//g" -e "/CFLAGS/s/-[IL][^ ]*//g" \ + -i Makefile || die "sed Makefile failed" + fi +} + +src_compile() { + local OMP='' + + use custom-cflags || strip-flags + append-flags -fPIC -fPIE \ + '-DJOHN_SYSTEMWIDE' \ + '-DJOHN_SYSTEMWIDE_HOME=\\\"/etc/john\\\"' \ + '-DJOHN_SYSTEMWIDE_EXEC=\\\"/usr/libexec/john\\\"' + gcc-specs-pie && append-ldflags -nopie + use openmp && OMP="-fopenmp" + + CPP=$(tc-getCXX) CC=$(tc-getCC) AS=$(tc-getCC) LD=$(tc-getCC) +# use mpi && CPP=mpicxx CC=mpicc AS=mpicc LD=mpicc + emake -C src/\ + CPP=${CPP} CC=${CC} AS=${AS} LD=${LD} \ + CFLAGS="-c -Wall ${CFLAGS} ${OMP}" \ + LDFLAGS="${LDFLAGS}" \ + OPT_NORMAL="" \ + OMPFLAGS="${OMP}" \ + $(get_target) || die "emake failed" +} + +src_test() { + cd run + if [[ -f "/etc/john/john.conf" || -f "/etc/john/john.ini" ]]; then + # This requires that MPI is actually 100% online on your system, which might not + # be the case, depending on which MPI implementation you are using. + #if use mpi; then + # mpirun -np 2 ./john --test || die 'self test failed' + #else + + ./john --test || die 'self test failed' + else + ewarn "selftest requires /etc/john/john.conf or /etc/john/john.ini" + fi +} + +src_install() { + # executables + dosbin run/john || die + newsbin run/mailer john-mailer || die + + pax-mark -m "${D}"/usr/sbin/john || die + + dosym john /usr/sbin/unafs || die + dosym john /usr/sbin/unique || die + dosym john /usr/sbin/unshadow || die + + # jumbo-patch additions + if ! use minimal; then + dosym john /usr/sbin/undrop || die + dosbin run/calc_stat || die + dosbin run/genmkvpwd || die + dosbin run/mkvcalcproba || die + insinto /etc/john + doins run/genincstats.rb run/stats || die + doins run/netscreen.py run/sap_prepare.pl || die + fi + + # config files + insinto /etc/john + doins run/john.conf || die + doins run/*.chr run/password.lst || die + + # documentation + dodoc doc/* || die +} |