summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2012-07-03 22:27:31 +0000
committerRick Farina <zerochaos@gentoo.org>2012-07-03 22:27:31 +0000
commit7500c01274be7f8dece43fb0f653dd8148ca1c01 (patch)
treebc30a9789caba86d18893fcbbdaa426e1ea732e4 /app-crypt/hashcat-bin
parentVersion bump. keyword amd64-linux and x86-linux (diff)
downloadgentoo-2-7500c01274be7f8dece43fb0f653dd8148ca1c01.tar.gz
gentoo-2-7500c01274be7f8dece43fb0f653dd8148ca1c01.tar.bz2
gentoo-2-7500c01274be7f8dece43fb0f653dd8148ca1c01.zip
fix loader location and minor ebuild style improvements
(Portage version: 2.1.11.3/cvs/Linux x86_64)
Diffstat (limited to 'app-crypt/hashcat-bin')
-rw-r--r--app-crypt/hashcat-bin/ChangeLog5
-rw-r--r--app-crypt/hashcat-bin/hashcat-bin-0.39.ebuild30
2 files changed, 21 insertions, 14 deletions
diff --git a/app-crypt/hashcat-bin/ChangeLog b/app-crypt/hashcat-bin/ChangeLog
index eb8c91953e18..cd96b6de0b66 100644
--- a/app-crypt/hashcat-bin/ChangeLog
+++ b/app-crypt/hashcat-bin/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-crypt/hashcat-bin
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/hashcat-bin/ChangeLog,v 1.2 2012/07/02 01:19:04 zerochaos Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/hashcat-bin/ChangeLog,v 1.3 2012/07/03 22:27:31 zerochaos Exp $
+
+ 03 Jul 2012; Rick Farina <zerochaos@gentoo.org> hashcat-bin-0.39.ebuild:
+ fix loader location and minor ebuild style improvements
02 Jul 2012; Rick Farina <zerochaos@gentoo.org> hashcat-bin-0.39.ebuild:
trade RESTRICT=binchecks for QA_PREBUILT
diff --git a/app-crypt/hashcat-bin/hashcat-bin-0.39.ebuild b/app-crypt/hashcat-bin/hashcat-bin-0.39.ebuild
index d61fb35bb452..6469ef472987 100644
--- a/app-crypt/hashcat-bin/hashcat-bin-0.39.ebuild
+++ b/app-crypt/hashcat-bin/hashcat-bin-0.39.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 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.39.ebuild,v 1.2 2012/07/02 01:19:04 zerochaos Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/hashcat-bin/hashcat-bin-0.39.ebuild,v 1.3 2012/07/03 22:27:31 zerochaos Exp $
EAPI=4
@@ -30,7 +30,7 @@ QA_PREBUILT="hashcat-cli*.bin"
src_install() {
dodoc docs/*
- rm -rf *.exe docs
+ rm -rf *.exe docs || die
use x86 && rm hashcat-cli64.bin
use amd64 && rm hashcat-cli32.bin
@@ -40,23 +40,27 @@ src_install() {
insinto /opt/${PN}
doins -r "${S}"/*
- dodir /usr/bin
+ dodir /opt/bin
if [ -f "${ED}"/opt/${PN}/hashcat-cli32.bin ]
then
fperms +x /opt/${PN}/hashcat-cli32.bin
- echo '#! /bin/sh' > "${ED}"/usr/bin/hashcat-cli32.bin
- echo 'cd /opt/hashcat-bin' >> "${ED}"/usr/bin/hashcat-cli32.bin
- echo 'echo "Warning: hashcat-cli32.bin is running from $(pwd) so be careful of relative paths."' >> "${ED}"/usr/bin/hashcat-cli32.bin
- echo './hashcat-cli32.bin $@' >> "${ED}"/usr/bin/hashcat-cli32.bin
- fperms +x /usr/bin/hashcat-cli32.bin
+ cat <<-EOF > "${ED}"/opt/bin/hashcat-cli32.bin
+ #! /bin/sh
+ cd /opt/${PN}
+ echo "Warning: hashcat-cli32.bin is running from /opt/${PN} so be careful of relative paths."
+ ./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
- echo '#! /bin/sh' > "${ED}"/usr/bin/hashcat-cli64.bin
- echo 'cd /opt/hashcat-bin' >> "${ED}"/usr/bin/hashcat-cli64.bin
- echo 'echo "Warning: hashcat-cli64.bin is running from $(pwd) so be careful of relative paths."' >> "${ED}"/usr/bin/hashcat-cli64.bin
- echo './hashcat-cli64.bin $@' >> "${ED}"/usr/bin/hashcat-cli64.bin
- fperms +x /usr/bin/hashcat-cli64.bin
+ cat <<-EOF > "${ED}"/opt/bin/hashcat-cli64.bin
+ #! /bin/sh
+ cd /opt/${PN}
+ echo "Warning: hashcat-cli64.bin is running from /opt/${PN} so be careful of relative paths."
+ ./hashcat-cli64.bin $@
+ EOF
+ fperms +x /opt/bin/hashcat-cli64.bin
fi
}