public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in app-crypt/hashcat-bin: hashcat-bin-0.49.ebuild ChangeLog
@ 2015-02-28 21:59 Alon Bar-Lev (alonbl)
  0 siblings, 0 replies; only message in thread
From: Alon Bar-Lev (alonbl) @ 2015-02-28 21:59 UTC (permalink / raw
  To: gentoo-commits

alonbl      15/02/28 21:59:15

  Modified:             ChangeLog
  Added:                hashcat-bin-0.49.ebuild
  Log:
  Version bump, bug#540406
  
  (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)

Revision  Changes    Path
1.12                 app-crypt/hashcat-bin/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/hashcat-bin/ChangeLog?rev=1.12&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/hashcat-bin/ChangeLog?rev=1.12&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/hashcat-bin/ChangeLog?r1=1.11&r2=1.12

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-crypt/hashcat-bin/ChangeLog,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- ChangeLog	5 May 2014 15:42:54 -0000	1.11
+++ ChangeLog	28 Feb 2015 21:59:15 -0000	1.12
@@ -1,6 +1,11 @@
 # ChangeLog for app-crypt/hashcat-bin
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/hashcat-bin/ChangeLog,v 1.11 2014/05/05 15:42:54 alonbl Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/hashcat-bin/ChangeLog,v 1.12 2015/02/28 21:59:15 alonbl Exp $
+
+*hashcat-bin-0.49 (28 Feb 2015)
+
+  28 Feb 2015; Alon Bar-Lev <alonbl@gentoo.org> +hashcat-bin-0.49.ebuild:
+  Version bump, bug#540406
 
 *hashcat-bin-0.47 (05 May 2014)
 



1.1                  app-crypt/hashcat-bin/hashcat-bin-0.49.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/hashcat-bin/hashcat-bin-0.49.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/hashcat-bin/hashcat-bin-0.49.ebuild?rev=1.1&content-type=text/plain

Index: hashcat-bin-0.49.ebuild
===================================================================
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/hashcat-bin/hashcat-bin-0.49.ebuild,v 1.1 2015/02/28 21:59:15 alonbl Exp $

EAPI=5

MY_P="hashcat-${PV}"

inherit eutils pax-utils
DESCRIPTION="An multi-threaded multihash cracker"
HOMEPAGE="http://hashcat.net/hashcat/"

SRC_URI="http://hashcat.net/files/${MY_P}.7z"

#license applies to this version per http://hashcat.net/forum/thread-1348.html
LICENSE="hashcat"
SLOT="0"
KEYWORDS="-* ~amd64 ~amd64-linux ~x64-macos ~x86 ~x86-linux"

IUSE=""

RDEPEND=""
DEPEND="${RDEPEND}
	app-arch/p7zip"

S="${WORKDIR}/${MY_P}"

RESTRICT="strip"
QA_PREBUILT="opt/${PN}/hashcat-cli*.bin
		opt/${PN}/hashcat-cli64.app"

has_xop() {
	echo | $(tc-getCC) ${CFLAGS} -E -dM - | grep -q "#define __XOP__ 1"
}

has_avx() {
	echo | $(tc-getCC) ${CFLAGS} -E -dM - | grep -q "#define __AVX__ 1"
}

src_install() {
	dodoc docs/*
	rm -r *.exe docs || die
	use x86 || { rm hashcat-cli32.bin || die; }
	use amd64 || { rm hashcat-cli64.bin || die; }
	use x64-macos || { rm hashcat-cli64.app || die; }
	has_avx || { rm hashcat-cliAVX.bin || die; }
	has_xop || { rm hashcat-cliXOP.bin || die; }

	#I assume this is needed but I didn't check
	pax-mark m hashcat-cli*.bin

	insinto /opt/${PN}
	doins -r "${S}"/*

	dodir /opt/bin
	if [ -f "${ED}"/opt/${PN}/hashcat-cli32.bin ]
	then
		fperms +x /opt/${PN}/hashcat-cli32.bin
		cat <<-EOF > "${ED}"/opt/bin/hashcat-cli32.bin
			#! /bin/sh
			cd "${EPREFIX}"/opt/${PN}
			echo "Warning: hashcat-cli32.bin is running from ${EPREFIX}/opt/${PN} so be careful of relative paths."
			exec ./hashcat-cli32.bin \$@
		EOF
		fperms +x /opt/bin/hashcat-cli32.bin
	fi
	if [ -f "${ED}"/opt/${PN}/hashcat-cli64.bin ]
	then
		fperms +x /opt/${PN}/hashcat-cli64.bin
		cat <<-EOF > "${ED}"/opt/bin/hashcat-cli64.bin
			#! /bin/sh
			cd "${EPREFIX}"/opt/${PN}
			echo "Warning: hashcat-cli64.bin is running from ${EPREFIX}/opt/${PN} so be careful of relative paths."
			exec ./hashcat-cli64.bin \$@
		EOF
		fperms +x /opt/bin/hashcat-cli64.bin
	fi
	if [ -f "${ED}"/opt/${PN}/hashcat-cliAVX.bin ]
	then
		fperms +x /opt/${PN}/hashcat-cliAVX.bin
		cat <<-EOF > "${ED}"/opt/bin/hashcat-cliAVX.bin
			#! /bin/sh
			cd "${EPREFIX}"/opt/${PN}
			echo "Warning: hashcat-cliAVX.bin is running from ${EPREFIX}/opt/${PN} so be careful of relative paths."
			exec ./hashcat-cliAVX.bin \$@
		EOF
		fperms +x /opt/bin/hashcat-cliAVX.bin
	fi
	if [ -f "${ED}"/opt/${PN}/hashcat-cliXOP.bin ]
	then
		fperms +x /opt/${PN}/hashcat-cliXOP.bin
		cat <<-EOF > "${ED}"/opt/bin/hashcat-cliXOP.bin
			#! /bin/sh
			cd "${EPREFIX}"/opt/${PN}
			echo "Warning: hashcat-cliXOP.bin is running from ${EPREFIX}/opt/${PN} so be careful of relative paths."
			exec ./hashcat-cliXOP.bin \$@
		EOF
		fperms +x /opt/bin/hashcat-cliXOP.bin
	fi
	if [ -f "${ED}"/opt/${PN}/hashcat-cli64.app ]
	then
		fperms +x /opt/${PN}/hashcat-cli64.app
		cat <<-EOF > "${ED}"/opt/bin/hashcat-cli64.app
			#! /bin/sh
			cd "${EPREFIX}"/opt/${PN}
			echo "Warning: hashcat-cli64.app is running from ${EPREFIX}/opt/${PN} so be careful of relative paths."
			exec ./hashcat-cli64.app \$@
		EOF
		fperms +x /opt/bin/hashcat-cli64.app
	fi
}





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-02-28 21:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-28 21:59 [gentoo-commits] gentoo-x86 commit in app-crypt/hashcat-bin: hashcat-bin-0.49.ebuild ChangeLog Alon Bar-Lev (alonbl)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox