unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#27495] [PATCH] gnu: Add thc-ipv6.
@ 2017-06-26  2:42 Leo Famulari
  2017-06-26  3:05 ` [bug#27495] [v2 0/1] Revised patch for thc-ipv6 Leo Famulari
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Famulari @ 2017-06-26  2:42 UTC (permalink / raw)
  To: 27495

* gnu/packages/networking.scm (thc-ipv6): New variable.
---
 gnu/packages/networking.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 06a2c8be6..454b42825 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -1308,3 +1308,32 @@ transparently have a connection established to another address (e.g., a UNIX
 socket on a different system).  This is similar to 'ssh -L' functionality, but
 does not use SSH and requires a pre-shared symmetric key.")
     (license license:bsd-2)))
+
+(define-public thc-ipv6
+  (package
+    (name "thc-ipv6")
+    (version "3.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/vanhauser-thc/thc-ipv6/"
+                                  "archive/" version ".tar.gz"))
+              (sha256
+               (base32
+                "0yh2lpsazmm0pgbmh0dx023w6fss1kdfyr4cq7yw0fac8vkw32d3"))))
+    (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
+         (delete 'configure)))) ; No ./configure script.
+    ;; TODO Add libnetfilter-queue once packaged.
+    (inputs
+     `(("libpcap" ,libpcap)
+       ("openssl" ,openssl)))
+    (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.")
+    (license license:agpl3))) ; TODO
-- 
2.13.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#27495] [v2 0/1] Revised patch for thc-ipv6
  2017-06-26  2:42 [bug#27495] [PATCH] gnu: Add thc-ipv6 Leo Famulari
@ 2017-06-26  3:05 ` Leo Famulari
  2017-06-26  3:05   ` [bug#27495] [v2 1/1] gnu: Add thc-ipv6 Leo Famulari
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Famulari @ 2017-06-26  3:05 UTC (permalink / raw)
  To: 27495

I looked more closely and found some things missing from the first
patch. Here is a revised patch.

Leo Famulari (1):
  gnu: Add thc-ipv6.

 gnu/packages/networking.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

-- 
2.13.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#27495] [v2 1/1] gnu: Add thc-ipv6.
  2017-06-26  3:05 ` [bug#27495] [v2 0/1] Revised patch for thc-ipv6 Leo Famulari
@ 2017-06-26  3:05   ` Leo Famulari
  2017-06-26 18:30     ` Marius Bakke
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Famulari @ 2017-06-26  3:05 UTC (permalink / raw)
  To: 27495

* gnu/packages/networking.scm (thc-ipv6): New variable.
---
 gnu/packages/networking.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 06a2c8be6..faf94f994 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -1308,3 +1308,46 @@ transparently have a connection established to another address (e.g., a UNIX
 socket on a different system).  This is similar to 'ssh -L' functionality, but
 does not use SSH and requires a pre-shared symmetric key.")
     (license license:bsd-2)))
+
+(define-public thc-ipv6
+  (package
+    (name "thc-ipv6")
+    (version "3.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/vanhauser-thc/thc-ipv6/"
+                                  "archive/" version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0yh2lpsazmm0pgbmh0dx023w6fss1kdfyr4cq7yw0fac8vkw32d3"))))
+    (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
+         (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
+     `(("libpcap" ,libpcap)
+       ("openssl" ,openssl)
+       ("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
+newer and only works on Ethernet network interfaces.")
+    (license license:agpl3))) ; TODO
-- 
2.13.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#27495] [v2 1/1] gnu: Add thc-ipv6.
  2017-06-26  3:05   ` [bug#27495] [v2 1/1] gnu: Add thc-ipv6 Leo Famulari
@ 2017-06-26 18:30     ` Marius Bakke
  2017-06-26 18:34       ` Leo Famulari
  0 siblings, 1 reply; 5+ messages in thread
From: Marius Bakke @ 2017-06-26 18:30 UTC (permalink / raw)
  To: Leo Famulari, 27495

[-- Attachment #1: Type: text/plain, Size: 218 bytes --]

Leo Famulari <leo@famulari.name> writes:

> * gnu/packages/networking.scm (thc-ipv6): New variable.

The patch LGTM...

> +    (license license:agpl3))) ; TODO

...however this should be resolved before committing :-)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#27495] [v2 1/1] gnu: Add thc-ipv6.
  2017-06-26 18:30     ` Marius Bakke
@ 2017-06-26 18:34       ` Leo Famulari
  0 siblings, 0 replies; 5+ messages in thread
From: Leo Famulari @ 2017-06-26 18:34 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 27495

[-- Attachment #1: Type: text/plain, Size: 357 bytes --]

On Mon, Jun 26, 2017 at 08:30:11PM +0200, Marius Bakke wrote:
> Leo Famulari <leo@famulari.name> writes:
> 
> > * gnu/packages/networking.scm (thc-ipv6): New variable.
> 
> The patch LGTM...
> 
> > +    (license license:agpl3))) ; TODO
> 
> ...however this should be resolved before committing :-)

Oops :) As always, thank you for your review!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-06-26 18:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-26  2:42 [bug#27495] [PATCH] gnu: Add thc-ipv6 Leo Famulari
2017-06-26  3:05 ` [bug#27495] [v2 0/1] Revised patch for thc-ipv6 Leo Famulari
2017-06-26  3:05   ` [bug#27495] [v2 1/1] gnu: Add thc-ipv6 Leo Famulari
2017-06-26 18:30     ` Marius Bakke
2017-06-26 18:34       ` Leo Famulari

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).