all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#31230] [PATCH] gnu: Add ocproxy.
@ 2018-04-21  9:42 Pierre Langlois
  2018-04-22 21:49 ` bug#31230: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Pierre Langlois @ 2018-04-21  9:42 UTC (permalink / raw)
  To: 31230

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

Hi Guix!

Here's a patch to add ocproxy, a SOCKS proxy for OpenConnect
(https://github.com/cernekee/ocproxy).

Thanks!
Pierre


[-- Attachment #2: 0001-gnu-Add-ocproxy.patch --]
[-- Type: text/x-patch, Size: 2765 bytes --]

From 695844d61261c699852a9cf311cb807e358f792a Mon Sep 17 00:00:00 2001
From: Pierre Langlois <pierre.langlois@gmx.com>
Date: Sat, 21 Apr 2018 10:37:20 +0100
Subject: [PATCH] gnu: Add ocproxy.

* gnu/packages/vpn.scm (ocproxy): New variable.
---
 gnu/packages/vpn.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm
index 070b69565..6ba3677a9 100644
--- a/gnu/packages/vpn.scm
+++ b/gnu/packages/vpn.scm
@@ -6,6 +6,7 @@
 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu>
+;;; Copyright © 2018 Pierre Langlois <pierre.langlois@gmx.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -32,9 +33,11 @@
   #:use-module (gnu packages)
   #:use-module (gnu packages base)
   #:use-module (gnu packages check)
+  #:use-module (gnu packages autotools)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages gettext)
   #:use-module (gnu packages gnupg)
+  #:use-module (gnu packages libevent)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
@@ -206,6 +209,39 @@ example for writing your own.  For example, @command{vpnc-script-sshd} contains
 the entire VPN in a network namespace accessible only through SSH.")
       (license license:gpl2+))))
 
+(define-public ocproxy
+  (package
+    (name "ocproxy")
+    (version "1.60")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/cernekee/ocproxy/archive/v"
+                    version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1b4rg3xq5jnrp2l14sw0msan8kqhdxmsd7gpw9lkiwvxy13pcdm7"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)))
+    (inputs
+     `(("libevent" ,libevent)))
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'autogen
+           (lambda _ (invoke "sh" "autogen.sh"))))))
+    (home-page "https://github.com/cernekee/ocproxy")
+    (synopsis "OpenConnect proxy")
+    (description
+     "User-level @dfn{SOCKS} and port forwarding proxy for OpenConnect based
+on LwIP.  When using ocproxy, OpenConnect only handles network activity that
+the user specifically asks to proxy, so the @dfn{VPN} interface no longer
+\"hijacks\" all network traffic on the host.")
+    (license license:bsd-3)))
+
 (define-public openconnect
   (package
    (name "openconnect")
-- 
2.17.0


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

* bug#31230: [PATCH] gnu: Add ocproxy.
  2018-04-21  9:42 [bug#31230] [PATCH] gnu: Add ocproxy Pierre Langlois
@ 2018-04-22 21:49 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2018-04-22 21:49 UTC (permalink / raw)
  To: Pierre Langlois; +Cc: 31230-done

Hello Pierre,

Pierre Langlois <pierre.langlois@gmx.com> skribis:

>>From 695844d61261c699852a9cf311cb807e358f792a Mon Sep 17 00:00:00 2001
> From: Pierre Langlois <pierre.langlois@gmx.com>
> Date: Sat, 21 Apr 2018 10:37:20 +0100
> Subject: [PATCH] gnu: Add ocproxy.
>
> * gnu/packages/vpn.scm (ocproxy): New variable.

Applied, thanks!

Ludo’.

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

end of thread, other threads:[~2018-04-22 21:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-21  9:42 [bug#31230] [PATCH] gnu: Add ocproxy Pierre Langlois
2018-04-22 21:49 ` bug#31230: " Ludovic Courtès

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.