Archived
1
0
Fork 0

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