emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62212: closed ([PATCH] gnu: thc-ipv6: Update to 3.8.)


From: GNU bug Tracking System
Subject: bug#62212: closed ([PATCH] gnu: thc-ipv6: Update to 3.8.)
Date: Thu, 16 Mar 2023 01:20:02 +0000

Your message dated Wed, 15 Mar 2023 21:19:17 -0400
with message-id <ZBJulZpLwLFaWcje@jasmine.lan>
and subject line Re: [bug#62212] [PATCH] gnu: thc-ipv6: Update to 3.8.
has caused the debbugs.gnu.org bug report #62212,
regarding [PATCH] gnu: thc-ipv6: Update to 3.8.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
62212: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62212
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: thc-ipv6: Update to 3.8. Date: Wed, 15 Mar 2023 22:43:59 +0000
* gnu/packages/networking.scm (thc-ipv6): Update to 3.8.
  Use latest version tag in stead of commit, simplify package.
  [arguments]: Use Gexp.
  [arguments]{make-flags}: Use cc-for-target as it's commented out in Makefile.
  [arguments]{phases}: Merge use-source-date-epoch-in-manpages with
  patch-paths phases into patch-makefile. Simplify install-more-docs phase.
  [inputs]: Add libnetfilter-queue, libnfnetlink.
---
 gnu/packages/networking.scm | 95 ++++++++++++++++++-------------------
 1 file changed, 47 insertions(+), 48 deletions(-)

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




--- End Message ---
--- Begin Message --- Subject: Re: [bug#62212] [PATCH] gnu: thc-ipv6: Update to 3.8. Date: Wed, 15 Mar 2023 21:19:17 -0400
On Wed, Mar 15, 2023 at 10:43:59PM +0000, Sharlatan Hellseher wrote:
> * gnu/packages/networking.scm (thc-ipv6): Update to 3.8.
>   Use latest version tag in stead of commit, simplify package.
>   [arguments]: Use Gexp.
>   [arguments]{make-flags}: Use cc-for-target as it's commented out in 
> Makefile.
>   [arguments]{phases}: Merge use-source-date-epoch-in-manpages with
>   patch-paths phases into patch-makefile. Simplify install-more-docs phase.
>   [inputs]: Add libnetfilter-queue, libnfnetlink.

Thanks! I tweaked the commit message and pushed as
9f3a929828930c3e5dfc6f6e7a3516da6bb7cd00


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]