me
/
guix
Archived
1
0
Fork 0

gnu: thc-ipv6: Update to 3.8.

* gnu/packages/networking.scm (thc-ipv6): Update to 3.8.
[source]: Use version tag instead of commit.
[arguments]: Use Gexps.
<make-flags>: Use cc-for-target as it's commented out in Makefile.
<phases>: Combine the phases 'use-source-date-epoch-in-manpages' and
'patch-paths' into a new 'patch-makefile' phase. Simplify 'install-more-docs'
phase.
[inputs]: Add libnetfilter-queue and libnfnetlink.

Signed-off-by: Leo Famulari <leo@famulari.name>
master
Sharlatan Hellseher 2023-03-15 22:43:59 +00:00 committed by Leo Famulari
parent fe445aa9f4
commit 9f3a929828
No known key found for this signature in database
GPG Key ID: 2646FA30BACA7F08
1 changed files with 47 additions and 48 deletions

View File

@ -56,6 +56,7 @@
;;; Copyright © 2022 Reza Alizadeh Majd <r.majd@pantherx.org> ;;; Copyright © 2022 Reza Alizadeh Majd <r.majd@pantherx.org>
;;; Copyright © 2022 Nicolas Graves <ngraves@ngraves.fr> ;;; Copyright © 2022 Nicolas Graves <ngraves@ngraves.fr>
;;; Copyright © 2023 Andreas Enge <andreas@enge.fr> ;;; Copyright © 2023 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2023 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -3057,56 +3058,54 @@ The filters can be aggregated and exported in the most common formats.")
license:bsd-2)))) ; everything else, but missing headers license:bsd-2)))) ; everything else, but missing headers
(define-public thc-ipv6 (define-public thc-ipv6
(let ((revision "0") (package
(commit "4bb72573e0950ce6f8ca2800a10748477020029e")) (name "thc-ipv6")
(package (version "3.8")
(name "thc-ipv6") (source
(version (git-version "3.4" revision commit)) (origin
(source (origin (method git-fetch)
(method git-fetch) (uri (git-reference
(uri (git-reference (url "https://github.com/vanhauser-thc/thc-ipv6")
(url "https://github.com/vanhauser-thc/thc-ipv6") (commit (string-append "v" version))))
(commit commit))) (file-name (git-file-name name version))
(file-name (git-file-name name version)) (sha256
(sha256 (base32 "07kwika1zdq62s5p5z94xznm77dxjxdg8k0hrg7wygz50151nzmx"))))
(base32 (build-system gnu-build-system)
"1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir")))) (arguments
(build-system gnu-build-system) (list
(arguments #:tests? #f ; No test suite.
`(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) #:make-flags
#:tests? #f ; No test suite. #~(list (string-append "CC=" #$(cc-for-target))
#:phases (string-append "PREFIX=" #$output))
(modify-phases %standard-phases #:phases
(add-after 'unpack 'use-source-date-epoch-in-manpages #~(modify-phases %standard-phases
;; For reproducible builds (add-after 'unpack 'patch-makefile
(lambda _ (lambda _
(substitute* "Makefile" (substitute* "Makefile"
(("date --iso-8601") ;; For reproducible builds
"date --iso-8601 --utc --date=@$(SOURCE_DATE_EPOCH)")))) (("date --iso-8601")
(delete 'configure) ; No ./configure script. "date --iso-8601 --utc --date=@$(SOURCE_DATE_EPOCH)")
(add-before 'build 'patch-paths (("/bin/echo") "echo"))))
(lambda _ (delete 'configure) ; No ./configure script.
(substitute* "Makefile" (add-after 'install 'install-more-docs
(("/bin/echo") "echo")) (lambda _
#t)) (let ((doc (string-append #$output "/share/thc-ipv6/doc")))
(add-after 'install 'install-more-docs (install-file "README" doc)
(lambda* (#:key outputs #:allow-other-keys) (install-file "HOWTO-INJECT" doc)))))))
(let* ((out (assoc-ref outputs "out")) (inputs
(doc (string-append out "/share/thc-ipv6/doc"))) (list libnetfilter-queue
(install-file "README" doc) libnfnetlink
(install-file "HOWTO-INJECT" doc) libpcap
#t)))))) openssl
;; TODO Add libnetfilter-queue once packaged. perl))
(inputs (home-page "https://github.com/vanhauser-thc/thc-ipv6")
(list libpcap openssl perl)) (synopsis "IPv6 security research toolkit")
(home-page "https://github.com/vanhauser-thc/thc-ipv6") (description "The THC IPv6 Toolkit provides command-line tools and a library
(synopsis "IPv6 security research toolkit")
(description "The THC IPv6 Toolkit provides command-line tools and a library
for researching IPv6 implementations and deployments. It requires Linux 2.6 or for researching IPv6 implementations and deployments. It requires Linux 2.6 or
newer and only works on Ethernet network interfaces.") newer and only works on Ethernet network interfaces.")
;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
;; the source distribution for more information. ;; the source distribution for more information.
(license license:agpl3)))) (license license:agpl3)))
(define-public bmon (define-public bmon
(package (package