gnu: aircrack-ng: Update to 1.3.
* gnu/packages/networking.scm (aircrack-ng): Update to 1.3. [native-inputs]: Add autoconf, automake, libtool, and which. [inputs]: Add libpcap. [arguments]: Use conventional --options in #:configure-flags. Restore ‘configure’ phase. Add ‘patch-evalrev’ and customise ‘bootstrap’ phases. Simplify ‘absolutize-tools’ phase.
This commit is contained in:
parent
6930ea33c9
commit
b9114ccbad
|
@ -762,7 +762,7 @@ live network and disk I/O bandwidth monitor.")
|
||||||
(define-public aircrack-ng
|
(define-public aircrack-ng
|
||||||
(package
|
(package
|
||||||
(name "aircrack-ng")
|
(name "aircrack-ng")
|
||||||
(version "1.2-rc4")
|
(version "1.3")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -770,42 +770,48 @@ live network and disk I/O bandwidth monitor.")
|
||||||
version ".tar.gz"))
|
version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0dpzx9kddxpgzmgvdpl3rxn0jdaqhm5wxxndp1xd7d75mmmc2fnr"))))
|
"1jl30d0kibc82447fr3lgw75arik0l9729k94z76l7vl51y8mq4a"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)))
|
`(("autoconf" ,autoconf)
|
||||||
|
("automake" ,automake)
|
||||||
|
("libtool" ,libtool)
|
||||||
|
("pkg-config" ,pkg-config)
|
||||||
|
("which" ,which)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("libgcrypt" ,libgcrypt)
|
`(("libgcrypt" ,libgcrypt)
|
||||||
("libnl" ,libnl)
|
("libnl" ,libnl)
|
||||||
|
("libpcap" ,libpcap)
|
||||||
("ethtool" ,ethtool)
|
("ethtool" ,ethtool)
|
||||||
("pcre" ,pcre)
|
("pcre" ,pcre)
|
||||||
("sqlite" ,sqlite)
|
("sqlite" ,sqlite)
|
||||||
("zlib" ,zlib)))
|
("zlib" ,zlib)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:make-flags `("sqlite=true"
|
`(#:configure-flags
|
||||||
"gcrypt=true"
|
(list "--with-experimental=yes" ; build wesside-ng, etc.
|
||||||
"libnl=true"
|
"--with-gcrypt") ; openssl's the default
|
||||||
"pcre=true"
|
|
||||||
"experimental=true" ;build wesside-ng, etc.
|
|
||||||
"AVX2FLAG=N" "AVX1FLAG=N"
|
|
||||||
,,@(match (%current-system)
|
|
||||||
((or "x86_64-linux" "i686-linux")
|
|
||||||
`("SSEFLAG=Y"))
|
|
||||||
(_
|
|
||||||
`("NEWSSE=false")))
|
|
||||||
,(string-append "prefix=" %output))
|
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases (modify-phases %standard-phases
|
||||||
(delete 'configure) ;no configure phase
|
(add-before 'bootstrap 'patch-evalrev
|
||||||
|
(lambda _
|
||||||
|
;; Called by ./autogen.sh below, before the default
|
||||||
|
;; ‘patch-shebangs’ phase has had a chance to run.
|
||||||
|
(substitute* "evalrev"
|
||||||
|
(("/bin/sh")
|
||||||
|
(which "sh")))
|
||||||
|
#t))
|
||||||
|
(replace 'bootstrap
|
||||||
|
(lambda _
|
||||||
|
;; Patch shebangs in generated files before running
|
||||||
|
;; ./configure.
|
||||||
|
(setenv "NOCONFIGURE" "please")
|
||||||
|
(invoke "bash" "./autogen.sh")))
|
||||||
(add-after 'build 'absolutize-tools
|
(add-after 'build 'absolutize-tools
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(let ((ethtool (string-append (assoc-ref inputs "ethtool")
|
(let ((ethtool (string-append (assoc-ref inputs "ethtool")
|
||||||
"/sbin/ethtool")))
|
"/sbin/ethtool")))
|
||||||
(substitute* "scripts/airmon-ng"
|
(substitute* "scripts/airmon-ng"
|
||||||
(("\\[ ! -x \"\\$\\(command -v ethtool 2>&1)\" \\]")
|
(("ethtool ")
|
||||||
(string-append "! " ethtool " --version "
|
(string-append ethtool " ")))
|
||||||
">/dev/null 2>&1"))
|
|
||||||
(("\\$\\(ethtool")
|
|
||||||
(string-append "$(" ethtool)))
|
|
||||||
#t))))))
|
#t))))))
|
||||||
(home-page "https://www.aircrack-ng.org")
|
(home-page "https://www.aircrack-ng.org")
|
||||||
(synopsis "Assess WiFi network security")
|
(synopsis "Assess WiFi network security")
|
||||||
|
|
Loading…
Reference in New Issue