[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
74/184: gnu: john-the-ripper-jumbo: Update to 1.9.0.
From: |
guix-commits |
Subject: |
74/184: gnu: john-the-ripper-jumbo: Update to 1.9.0. |
Date: |
Wed, 27 Nov 2019 14:37:03 -0500 (EST) |
kkebreau pushed a commit to branch wip-gnome-updates
in repository guix.
commit 20a563aa5f8e72f46f0b358d7eedaaeec3023280
Author: Eric Bavier <address@hidden>
Date: Sun Oct 27 22:19:07 2019 -0500
gnu: john-the-ripper-jumbo: Update to 1.9.0.
* gnu/packages/password-utils.scm (john-the-ripper-jumbo): Update to 1.9.0.
[source]: Remove patches.
[native-inputs]: New field.
[inputs]: Add python and ruby for script shebangs. Remove unused mit-krb5.
[arguments]: In #:configure-flags use new "--with-systemwide" flag, fix typo
in "--disable-native-macro", and pass "--enable-simd=..." based on system.
Rename local "homedir" variable to "datadir" for clarity. Return #t from
'chdir-src phase. Create extension-less symlinks for many scripts in
'install
phase.
---
gnu/packages/password-utils.scm | 94 +++++++++++++++++++++--------------------
1 file changed, 49 insertions(+), 45 deletions(-)
diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 9bea0e6..955a1a4 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -11,7 +11,7 @@
;;; Copyright © 2017, 2018 Clément Lassieur <address@hidden>
;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <address@hidden>
;;; Copyright © 2017 Jelle Licht <address@hidden>
-;;; Copyright © 2017 Eric Bavier <address@hidden>
+;;; Copyright © 2017, 2019 Eric Bavier <address@hidden>
;;; Copyright © 2017 Nicolas Goaziou <address@hidden>
;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <address@hidden>
;;; Copyright © 2017 Rutger Helling <address@hidden>
@@ -76,6 +76,7 @@
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages readline)
+ #:use-module (gnu packages ruby)
#:use-module (gnu packages security-token)
#:use-module (gnu packages suckless)
#:use-module (gnu packages tcl)
@@ -734,7 +735,7 @@ between hosts and entries in the password store.")
(license license:lgpl3+)))
(define-public john-the-ripper-jumbo
- (let ((official-version "1.8.0")
+ (let ((official-version "1.9.0")
(jumbo-version "1"))
(package
(name "john-the-ripper-jumbo")
@@ -746,76 +747,79 @@ between hosts and entries in the password store.")
official-version "-jumbo-" jumbo-version
".tar.xz"))
(sha256
(base32
- "08q92sfdvkz47rx6qjn7qv57cmlpy7i7rgddapq5384mb413vjds"))
- (patches
- (list (origin
- (method url-fetch)
- (uri (string-append "https://github.com/magnumripper/"
- "JohnTheRipper/commit/"
-
"e2e868db3e153b3f959e119a51703d4afb99c624.patch"))
- (file-name "john-the-ripper-jumbo-gcc5-inline.patch")
- (sha256
- (base32
- "1shvcf1y2097115mxhzdkm64dr106a8zr6pqjqyh171q5ng5vfra")))
- (origin
- (method url-fetch)
- (uri (string-append "https://github.com/magnumripper/"
- "JohnTheRipper/commit/"
-
"480e95b0e449863be3e1a5b0bc634a67df28b618.patch"))
- (file-name "john-the-ripper-jumbo-non-x86.patch")
- (sha256
- (base32
-
"1ffd9dvhk0sb6ss8dv5yalh01lz30i7rilqilf2xv68gax2hyjqx")))))))
+ "0fvz3v41hnaiv1ggpxanfykyfjq79cwp9qcqqn63vic357w27lgm"))))
(build-system gnu-build-system)
+ (native-inputs
+ `(("perl" ,perl)))
(inputs
`(("gmp" ,gmp)
- ("krb5" ,mit-krb5)
("libpcap" ,libpcap)
("nss" ,nss)
("openssl" ,openssl-1.0)
+ ("python" ,python-2) ; For "python" and "python2" shebangs
+ ("ruby" ,ruby) ; For genincstats.rb
("zlib" ,zlib)))
(arguments
`(#:configure-flags
- (list (string-append
- "CFLAGS=-O2 -g "
- "-DJOHN_SYSTEMWIDE=1 "
- "-DJOHN_SYSTEMWIDE_EXEC='\"" %output "/libexec/john\"' "
- "-DJOHN_SYSTEMWIDE_HOME='\"" %output "/share/john\"'")
- ;; For now, do not test for instruction set in configure, and
- ;; do not pass '-march=native' to gcc:
+ (list "--with-systemwide"
+ ;; Do not test for instruction set in configure, and do not
+ ;; pass '-march=native' to gcc:
"--disable-native-tests"
- "--disable-native-macro")
+ "--disable-native-march"
+ ,(string-append
+ "--enable-simd="
+ (let ((system (or (%current-target-system)
+ (%current-system))))
+ (cond
+ ((or (string-prefix? "x86_64" system)
+ (string-prefix? "i686" system)) "sse2")
+ ((string-prefix? "aarch" system) "neon")
+ (else "no")))))
#:tests? #f ;tests try to create '.john' in the build user's $HOME
#:phases
(modify-phases %standard-phases
(add-before 'configure 'chdir-src
- (lambda _ (chdir "src")))
+ (lambda _ (chdir "src") #t))
(replace 'install
(lambda _
(let ((bindir (string-append %output "/bin"))
(docdir (string-append %output "/share/doc/john"))
(execdir (string-append %output "/libexec/john"))
- (homedir (string-append %output "/share/john"))
+ (datadir (string-append %output "/share/john"))
(install-file-to (lambda (dir)
(lambda (f) (install-file f dir))))
(symlink? (lambda (_ s) (eq? (stat:type s) 'symlink))))
(with-directory-excursion "../run"
+ (for-each (install-file-to bindir)
+ (cons*
+ "john" "makechr" "cprepair" "SIPdump" "tgtsnarf"
+ "genmkvpwd" "mkvcalcproba" "calc_stat" "raw2dyna"
+ (find-files "." "(to|2)?john(-[^.]*)?$")))
+ (for-each (lambda (f) ; Install symlinked aliases
+ (let ((tgt (string-append bindir "/" (basename
f))))
+ ;; The use of install-file above dereferences
+ ;; symlinks. We'd rather have the symlinks
+ ;; for clarity, so remove tgt before linking.
+ (when (file-exists? tgt) (delete-file tgt))
+ (symlink "john" tgt)))
+ (find-files "." symlink?))
(for-each (install-file-to execdir)
- (cons* "mailer" "benchmark-unify"
- (find-files "." ".*\\.(py|rb|pl)")))
- (for-each (install-file-to homedir)
+ (cons* "mailer" "benchmark-unify" "relbench"
+ (find-files "." ".*\\.js")))
+ (for-each (lambda (f)
+ (let* ((base (basename f))
+ (name (substring base 0 (string-index
base #\.)))
+ (link (string-append bindir "/" name)))
+ (install-file f execdir)
+ (when (and (executable-file? f)
+ (not (file-exists? link)))
+ (symlink (string-append execdir "/" base)
link))))
+ (find-files "." ".*\\.(pl|py|rb|lua)"))
+ (for-each (install-file-to datadir)
(append (find-files "." "(stats|dictionary.*)")
(find-files "." "(.*\\.chr|.*\\.lst)")
(find-files "." ".*\\.conf")))
- (for-each (install-file-to bindir)
- '("tgtsnarf" "genmkvpwd" "mkvcalcproba"
- "raw2dyna" "luks2john" "vncpcap2john"
- "uaf2john" "calc_stat" "wpapcap2john"
- "cprepair" "relbench" "SIPdump" "john"))
- (for-each (lambda (f) ;install symlinked aliases
- (symlink "john"
- (string-append bindir "/" (basename
f))))
- (find-files "." symlink?)))
+ (copy-recursively "rules" (string-append datadir "/rules")))
(copy-recursively "../doc" docdir)
#t))))))
(home-page "http://www.openwall.com/john/")
- 53/184: gnu: gnome-session: Update to 3.32.0., (continued)
- 53/184: gnu: gnome-session: Update to 3.32.0., guix-commits, 2019/11/27
- 55/184: gnu: file-roller: Update to 3.32.2., guix-commits, 2019/11/27
- 57/184: gnu: python-dbusmock: Update to 0.18.3., guix-commits, 2019/11/27
- 59/184: gnu: pipewire: Update to 0.2.7., guix-commits, 2019/11/27
- 64/184: gnu: linux-libre@4.4: Update to 4.4.199., guix-commits, 2019/11/27
- 65/184: gnu: linux-libre@4.9: Update to 4.9.199., guix-commits, 2019/11/27
- 72/184: gnu: eolie: Don't create icon cache., guix-commits, 2019/11/27
- 75/184: gnu: john-the-ripper-jumbo: Enable tests., guix-commits, 2019/11/27
- 76/184: gnu: git-annex: Update to 7.20191106., guix-commits, 2019/11/27
- 77/184: derivations: Use a regular hash table for the module cache., guix-commits, 2019/11/27
- 74/184: gnu: john-the-ripper-jumbo: Update to 1.9.0.,
guix-commits <=
- 81/184: news: Add entry for package transformation options in "guix graph"., guix-commits, 2019/11/27
- 80/184: graph: Support package transformation options., guix-commits, 2019/11/27
- 84/184: doc: Add clarification on the '--source' build option., guix-commits, 2019/11/27
- 89/184: gnu: python-dbus: Update to 1.2.10., guix-commits, 2019/11/27
- 82/184: gnu: Add nginx Accept Language module., guix-commits, 2019/11/27
- 91/184: gnu: libssh: Update to 0.9.2., guix-commits, 2019/11/27
- 93/184: gnu: polybar: Update to 3.4.1., guix-commits, 2019/11/27
- 97/184: gnu: r-abcrf: Update to 1.8.1., guix-commits, 2019/11/27
- 101/184: gnu: r-hmisc: Update to 4.3-0., guix-commits, 2019/11/27
- 99/184: gnu: r-nlme: Update to 3.1-142., guix-commits, 2019/11/27