gnu: nmap: Update to 7.92.

* gnu/packages/admin.scm (nmap): Update to 7.92.
[source, arguments]: Don't explicitly return #t from snippet & phases.
This commit is contained in:
Tobias Geerinckx-Rice 2021-10-04 16:51:22 +02:00
parent ecc7de528f
commit a91ad29d17
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -3025,14 +3025,14 @@ (define-public audit
(define-public nmap
(package
(name "nmap")
(version "7.91")
(version "7.92")
(source (origin
(method url-fetch)
(uri (string-append "https://nmap.org/dist/nmap-" version
".tar.bz2"))
(sha256
(base32
"001kb5xadqswyw966k2lqi6jr6zz605jpp9w4kmm272if184pk0q"))
"18bifn67kz2wxkbnfwcrin2xrhc6qf4p2bvxfqb2a2vbi8pryix5"))
(modules '((guix build utils)))
(snippet
'(begin
@ -3043,8 +3043,7 @@ (define-public nmap
"libpcap"
"libpcre"
;; Remove pre-compiled binares.
"mswin32"))
#t))))
"mswin32"))))))
(build-system gnu-build-system)
(inputs
`(("openssl" ,openssl)
@ -3066,8 +3065,7 @@ (define-public nmap
(lambda _
(substitute* "Makefile"
;; Do not attempt to build lua.
(("build-dnet build-lua") "build-dnet"))
#t))
(("build-dnet build-lua") "build-dnet"))))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(define (make out . args)
@ -3090,8 +3088,7 @@ (define (python-path dir)
(make ndiff "install-ndiff")
(wrap-program (string-append ndiff "/bin/ndiff")
`("PYTHONPATH" prefix
(,(python-path ndiff)))))
#t))
(,(python-path ndiff)))))))
;; These are the tests that do not require network access.
(replace 'check
(lambda _ (invoke "make"
@ -3108,7 +3105,7 @@ (define (python-path dir)
upgrade schedules, and monitoring host or service uptime. It also provides an
advanced netcat implementation (ncat), a utility for comparing scan
results (ndiff), and a packet generation and response analysis tool (nping).")
;; See <https://github.com/nmap/nmap/issues/2199#issuecomment-792048244>.
;; See <https://github.com/nmap/nmap/issues/2199#issuecomment-894812634>.
;; This package uses nmap's bundled versions of libdnet and liblinear, which
;; both use a 3-clause BSD license.
(license (list license:nmap license:bsd-3))))