public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alon Bar-Lev (alonbl)" <alonbl@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/johntheripper: ChangeLog johntheripper-1.7.2-r3.ebuild
Date: Fri, 14 Dec 2007 19:33:36 +0000	[thread overview]
Message-ID: <E1J3GHw-0006lK-WF@stork.gentoo.org> (raw)

alonbl      07/12/14 19:33:36

  Modified:             ChangeLog
  Added:                johntheripper-1.7.2-r3.ebuild
  Log:
  Fix hardened issues, bug#167731
  (Portage version: 2.1.4_rc10)

Revision  Changes    Path
1.74                 app-crypt/johntheripper/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?rev=1.74&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?rev=1.74&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?r1=1.73&r2=1.74

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -r1.73 -r1.74
--- ChangeLog	16 Nov 2007 16:29:04 -0000	1.73
+++ ChangeLog	14 Dec 2007 19:33:36 -0000	1.74
@@ -1,6 +1,12 @@
 # ChangeLog for app-crypt/johntheripper
 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v 1.73 2007/11/16 16:29:04 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v 1.74 2007/12/14 19:33:36 alonbl Exp $
+
+*johntheripper-1.7.2-r3 (14 Dec 2007)
+
+  14 Dec 2007; Alon Bar-Lev <alonbl@gentoo.org>
+  +johntheripper-1.7.2-r3.ebuild:
+  Fix hardened issues, bug#167731
 
   16 Nov 2007; Raúl Porcel <armin76@gentoo.org>
   johntheripper-1.7.2-r2.ebuild:



1.1                  app-crypt/johntheripper/johntheripper-1.7.2-r3.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.2-r3.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.2-r3.ebuild?rev=1.1&content-type=text/plain

Index: johntheripper-1.7.2-r3.ebuild
===================================================================
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.2-r3.ebuild,v 1.1 2007/12/14 19:33:36 alonbl Exp $

inherit eutils flag-o-matic toolchain-funcs pax-utils

MY_PBASE=${P/theripper/}
MY_PNBASE=${PN/theripper/}
S=${WORKDIR}/${MY_PBASE}
DESCRIPTION="fast password cracker"
HOMEPAGE="http://www.openwall.com/john/"
SRC_URI="http://www.openwall.com/john/f/${MY_PBASE}.tar.gz
		http://www.openwall.com/john/contrib/${MY_PNBASE}-1.7.2-all-7.diff.gz"

# banquise-to-bigpatch-17.patch.bz2"
# based off /var/tmp/portage/johntheripper-1.6.40

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE="mmx altivec sse2 custom-cflags"

RDEPEND=">=dev-libs/openssl-0.9.7"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${WORKDIR}"/${MY_PNBASE}-1.7.2-all-7.diff

	for p in sha1-memset stackdef.S stackdef-2.S mkdir-sandbox; do
		epatch "${FILESDIR}/${P}-${p}.patch"
	done
}

src_compile() {
	#
	# upstream request to strip
	# any flags, as he optimize the
	# outputs
	#
	use custom-cflags || strip-flags
	append-flags -fno-PIC -fno-PIE
	append-ldflags -nopie

	cd "${S}"/src

	# Remove default OPT_NORMAL -funroll-loops bug#198659 for unknown archs
	OPTIONS="CPP=$(tc-getCXX) CC=$(tc-getCC) AS=$(tc-getCC) LD=$(tc-getCC) \
		CFLAGS=\"-c -Wall ${CFLAGS} -DJOHN_SYSTEMWIDE \
		-DJOHN_SYSTEMWIDE_HOME=\\\"\\\\\\\"/etc/john\\\\\\\"\\\"\" \
		LDFLAGS=\"${LDFLAGS}\" \
		OPT_NORMAL=\"\""

	if use x86 ; then
		if use sse2 ; then
			eval emake ${OPTIONS} linux-x86-sse2 || die "Make failed"
		elif use mmx ; then
			eval emake ${OPTIONS} linux-x86-mmx || die "Make failed"
		else
			eval emake ${OPTIONS} linux-x86-any || die "Make failed"
		fi
	elif use alpha ; then
		eval emake ${OPTIONS} linux-alpha || die "Make failed"
	elif use sparc; then
		eval emake ${OPTIONS} linux-sparc  || die "Make failed"
	elif use amd64; then
		eval emake ${OPTIONS} linux-x86-64  || die "Make failed"
	elif use ppc-macos; then
		if use altivec; then
			eval emake ${OPTIONS} macosx-ppc32-altivec || die "Make failed"
		else
			eval emake ${OPTIONS} macosx-ppc32 || die "Make failed"
		fi
		# for Tiger this can be macosx-ppc64
	elif use ppc64; then
		if use altivec; then
			eval emake ${OPTIONS} linux-ppc32-altivec  || die "Make failed"
		else
			eval emake ${OPTIONS} linux-ppc64  || die "Make failed"
		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
			eval emake ${OPTIONS} linux-ppc32-altivec  || die "Make failed"
		else
			eval emake ${OPTIONS} linux-ppc32 || die "Make failed"
		fi
	else
		eval emake ${OPTIONS} generic || die "Make failed"
	fi

	# currently broken
	#eval emake bench || die "make failed"
}

src_test() {
	cd run
	if  [ -f /etc/john/john.conf -o -f /etc/john/john.ini  ]; then
		./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
	newsbin run/mailer john-mailer

	pax-mark -m "${D}"/usr/sbin/john

	dosym john /usr/sbin/unafs
	dosym john /usr/sbin/unique
	dosym john /usr/sbin/unshadow

	# for EGG only
	dosym john /usr/sbin/undrop

	#newsbin src/bench john-bench

	# config files
	insinto /etc/john
	doins run/john.conf
	doins run/*.chr run/password.lst

	# documentation
	dodoc doc/*
}



-- 
gentoo-commits@gentoo.org mailing list



             reply	other threads:[~2007-12-14 19:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-14 19:33 Alon Bar-Lev (alonbl) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-12-29 12:57 [gentoo-commits] gentoo-x86 commit in app-crypt/johntheripper: ChangeLog johntheripper-1.7.2-r3.ebuild Gysbert Wassenaar (nixnut)
2007-12-29 17:03 Brent Baude (ranger)
2007-12-30 16:28 Markus Meier (maekke)
2007-12-31 12:21 Raul Porcel (armin76)
2008-01-02  6:35 Jeroen Roovers (jer)
2008-01-04 15:09 Richard Freeman (rich0)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1J3GHw-0006lK-WF@stork.gentoo.org \
    --to=alonbl@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox