gnu: thc-ipv6: Update to 3.4-0.4bb7257.

* gnu/packages/networking.scm (thc-ipv6): Update to 3.4-0.4bb7257.
[source]: Use git-fetch.
This commit is contained in:
Leo Famulari 2018-01-17 18:15:50 -08:00
parent 3ef273377e
commit 491f7fc023
No known key found for this signature in database
GPG Key ID: 2646FA30BACA7F08
1 changed files with 45 additions and 41 deletions

View File

@ -38,6 +38,7 @@
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system cmake) #:use-module (guix build-system cmake)
#:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
@ -1422,49 +1423,52 @@ updates to the zebra daemon.")
(license license:gpl2+))) (license license:gpl2+)))
(define-public thc-ipv6 (define-public thc-ipv6
(package (let ((revision "0")
(name "thc-ipv6") (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
(version "3.2") (package
(source (origin (name "thc-ipv6")
(method url-fetch) (version (git-version "3.4" revision commit))
(uri (string-append "https://github.com/vanhauser-thc/thc-ipv6/" (source (origin
"archive/" version ".tar.gz")) (method git-fetch)
(file-name (string-append name "-" version ".tar.gz")) (uri (git-reference
(sha256 (url "https://github.com/vanhauser-thc/thc-ipv6.git")
(base32 (commit commit)))
"0yh2lpsazmm0pgbmh0dx023w6fss1kdfyr4cq7yw0fac8vkw32d3")))) (file-name (git-file-name name version))
(build-system gnu-build-system) (sha256
(arguments (base32
`(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
#:tests? #f ; No test suite. (build-system gnu-build-system)
#:phases (arguments
(modify-phases %standard-phases `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
(delete 'configure) ; No ./configure script. #:tests? #f ; No test suite.
(add-before 'build 'patch-paths #:phases
(lambda _ (modify-phases %standard-phases
(substitute* "Makefile" (delete 'configure) ; No ./configure script.
(("/bin/echo") "echo")) (add-before 'build 'patch-paths
#t)) (lambda _
(add-after 'install 'install-more-docs (substitute* "Makefile"
(lambda* (#:key outputs #:allow-other-keys) (("/bin/echo") "echo"))
(let* ((out (assoc-ref outputs "out")) #t))
(doc (string-append out "/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"))
#t)))))) (doc (string-append out "/share/thc-ipv6/doc")))
;; TODO Add libnetfilter-queue once packaged. (install-file "README" doc)
(inputs (install-file "HOWTO-INJECT" doc)
`(("libpcap" ,libpcap) #t))))))
("openssl" ,openssl) ;; TODO Add libnetfilter-queue once packaged.
("perl" ,perl))) (inputs
(home-page "https://github.com/vanhauser-thc/thc-ipv6") `(("libpcap" ,libpcap)
(synopsis "IPv6 security research toolkit") ("openssl" ,openssl)
(description "The THC IPv6 Toolkit provides command-line tools and a library ("perl" ,perl)))
(home-page "https://github.com/vanhauser-thc/thc-ipv6")
(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