[arch-commits] Commit in hashcat/trunk (PKGBUILD hashcat-fix-version.patch)

Levente Polyak anthraxx at archlinux.org
Sun Nov 5 21:13:21 UTC 2017


    Date: Sunday, November 5, 2017 @ 21:13:20
  Author: anthraxx
Revision: 265453

upgpkg: hashcat 1:4.0.0-1

Added:
  hashcat/trunk/hashcat-fix-version.patch
Modified:
  hashcat/trunk/PKGBUILD

---------------------------+
 PKGBUILD                  |   17 ++++++++++++-----
 hashcat-fix-version.patch |   22 ++++++++++++++++++++++
 2 files changed, 34 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-05 20:56:05 UTC (rev 265452)
+++ PKGBUILD	2017-11-05 21:13:20 UTC (rev 265453)
@@ -2,8 +2,8 @@
 # Contributor: Sam Stuewe <halosghost at archlinux dot info>
 
 pkgname=hashcat
-pkgver=3.6.0
-pkgrel=3
+pkgver=4.0.0
+pkgrel=1
 epoch=1
 pkgdesc='Multithreaded advanced password recovery utility'
 url='https://hashcat.net/hashcat'
@@ -12,11 +12,18 @@
 optdepends=('libxnvctrl: NVIDIA X driver configuration support')
 makedepends=('opencl-headers')
 license=('MIT')
-source=(https://hashcat.net/files/${pkgname}-${pkgver}.tar.gz{,.asc})
-sha512sums=('7842b6d742cd1c83f136b0ae13cdd4c6991618654360b5f67376c6d08e93888f4d958360aac8b0c8bbe96a6cbe032971fbc2ec7fa6d58794aa50381e0191a636'
-            'SKIP')
+source=(https://hashcat.net/files/${pkgname}-${pkgver}.tar.gz{,.asc}
+        hashcat-fix-version.patch)
+sha512sums=('ef5117ec34a0fb06a8be1058caeb88016421bff9de5acced7f738b0dca82b52fc2495758242389315c29a66d46360211528d79ce8207af6f6a451eef6e0d8806'
+            'SKIP'
+            'c11e4af083f7212fcd04f12c9e75e19e535962def8f9553395b571d82b1e049c4d8763709494ffda6a23d9aa0f7ac9fd7cf844c948f153771c6da79106570c2d')
 validpgpkeys=('A70833229D040B4199CC00523C17DA8B8A16544F') # Hashcat signing key <signing at hashcat.net>
 
+prepare() {
+  cd ${pkgname}-${pkgver}
+  patch -p1 < "${srcdir}/hashcat-fix-version.patch"
+}
+
 build() {
   cd ${pkgname}-${pkgver}
   make PREFIX=/usr SHARED=1

Added: hashcat-fix-version.patch
===================================================================
--- hashcat-fix-version.patch	                        (rev 0)
+++ hashcat-fix-version.patch	2017-11-05 21:13:20 UTC (rev 265453)
@@ -0,0 +1,22 @@
+From c06c5ddd4857b0a5d7862451da431c42287918ce Mon Sep 17 00:00:00 2001
+From: philsmd <philsmd at hashcat.net>
+Date: Sat, 28 Oct 2017 13:28:07 +0200
+Subject: [PATCH] fixes #1412: sed for VERSION_EXPORT fixed compilation problem
+
+---
+ src/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 3541f7dfc..75e7757d9 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -127,7 +127,7 @@ COMPTIME                := $(shell date +%s)
+ # the value will be something like this: "tag: vX.Y.Z, refs/pull/Y/head"
+ 
+ VERSION_EXPORT          := HEAD -> master, tag: v4.0.0
+-VERSION_TAG             := $(shell test -d .git && git describe --tags --dirty=+ || echo "$(VERSION_EXPORT)" | $(SED) 's/.*: v\([\.0-9]*\),.*/v\1/')
++VERSION_TAG             := $(shell test -d .git && git describe --tags --dirty=+ || echo "$(VERSION_EXPORT)" | $(SED) 's/.*: v\([\.0-9]*\).*/v\1/')
+ 
+ ##
+ ## General compiler and linker options



More information about the arch-commits mailing list