From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gbzcC-0007gK-Mu for guix-patches@gnu.org; Tue, 25 Dec 2018 22:12:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gbzc4-0006cB-4f for guix-patches@gnu.org; Tue, 25 Dec 2018 22:12:10 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:45863) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gbzc2-0006bC-K3 for guix-patches@gnu.org; Tue, 25 Dec 2018 22:12:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gbzc2-0004B6-C4 for guix-patches@gnu.org; Tue, 25 Dec 2018 22:12:02 -0500 Subject: [bug#33874] [PATCH] gnu: Add badvpn. Resent-Message-ID: Received: from eggs.gnu.org ([208.118.235.92]:58924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gbzb1-0007dg-MQ for guix-patches@gnu.org; Tue, 25 Dec 2018 22:11:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gbzaw-0005tH-Pj for guix-patches@gnu.org; Tue, 25 Dec 2018 22:10:59 -0500 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:34708) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gbzaw-0005t4-J3 for guix-patches@gnu.org; Tue, 25 Dec 2018 22:10:54 -0500 Received: by mail-pf1-x42b.google.com with SMTP id h3so7326394pfg.1 for ; Tue, 25 Dec 2018 19:10:54 -0800 (PST) Received: from dinosaur (144.34.217.65.16clouds.com. [144.34.217.65]) by smtp.gmail.com with ESMTPSA id k129sm43346574pgk.29.2018.12.25.19.10.51 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Dec 2018 19:10:52 -0800 (PST) From: Meiyo Peng Date: Wed, 26 Dec 2018 11:10:39 +0800 Message-ID: <87pntpgez4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 33874@debbugs.gnu.org --=-=-= Content-Type: text/plain Hi, This patch adds BadVPN. BadVPN contains a bundled lwIP. I tried to unbundle the lwIP, but it seems lwIP is designed to be bundled in other projects. lwIP does not officially have a working CMakeLists or Makefile. So I gave up. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-badvpn.patch Content-Transfer-Encoding: quoted-printable >From 011c6c86a2b89ea636499687ed7b316e26df384f Mon Sep 17 00:00:00 2001 From: Meiyo Peng Date: Mon, 24 Dec 2018 22:35:26 +0800 Subject: [PATCH] gnu: Add badvpn. * gnu/packages/vpn.scm (badvpn): New variable. --- gnu/packages/vpn.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm index 1edd1ac56..e5389fa37 100644 --- a/gnu/packages/vpn.scm +++ b/gnu/packages/vpn.scm @@ -28,6 +28,7 @@ #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system python) #:use-module (gnu packages) @@ -37,6 +38,7 @@ #:use-module (gnu packages compression) #:use-module (gnu packages gettext) #:use-module (gnu packages gnupg) + #:use-module (gnu packages gnuzilla) #:use-module (gnu packages libevent) #:use-module (gnu packages linux) #:use-module (gnu packages perl) @@ -400,3 +402,47 @@ DNS domain name queries.") @command{sshuttle} virtual private networks. It supports flexible profiles with configuration options for most of @command{sshuttle}=E2=80=99s featur= es.") (license license:gpl3+))) + +(define-public badvpn + (package + (name "badvpn") + (version "1.999.130") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ambrop72/badvpn.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0rm67xhi7bh3yph1vh07imv5y1pwyldvw3wa5bz471g8mnkc7d3c")))) + (build-system cmake-build-system) + (arguments + '(#:tests? #f)) ; no tests + (inputs + `(("nspr" ,nspr) + ("nss" ,nss) + ("openssl" ,openssl))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (home-page "https://github.com/ambrop72/badvpn") + (synopsis "NCD scripting language, tun2socks proxifier, P2P VPN") + (description "@code{BadVPN} is a collection of VPN-related tools. It +includes: + +@enumerate +@item NCD programming language.\n +NCD (Network Configuration Daemon) is a daemon and programming/scripting +language for configuration of network interfaces and other aspects of the +operating system. +@item Tun2socks network-layer proxifier.\n +The tun2socks program socksifes TCP connections at the network layer. It +implements a TUN device which accepts all incoming TCP connections (regard= less +of destination IP), and forwards the connections through a SOCKS server. +@item Peer-to-peer VPN.\n +The Peer-to-peer VPN implements a Layer 2 (Ethernet) network between the p= eers +(VPN nodes). +@end enumerate") + ;; This project contains a bundled lwIP. lwIP is also released under t= he + ;; 3-clause BSD license. + (license license:bsd-3))) --=20 2.20.0 --=-=-= Content-Type: text/plain -- Meiyo Peng https://www.pengmeiyu.com/ --=-=-=--