From patchwork Sun Feb 9 23:40:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vincent Legoll X-Patchwork-Id: 20206 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 67DDC17AF9; Sun, 9 Feb 2020 23:41:16 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 9672217AE5 for ; Sun, 9 Feb 2020 23:41:12 +0000 (GMT) Received: from localhost ([::1]:55240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0wCO-0006JI-5o for patchwork@mira.cbaines.net; Sun, 09 Feb 2020 18:41:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54559) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0wCH-0006J1-Bp for guix-patches@gnu.org; Sun, 09 Feb 2020 18:41:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0wCG-0002cJ-2Y for guix-patches@gnu.org; Sun, 09 Feb 2020 18:41:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47438) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j0wCF-0002c8-UN for guix-patches@gnu.org; Sun, 09 Feb 2020 18:41:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j0wCD-0002Zs-RC for guix-patches@gnu.org; Sun, 09 Feb 2020 18:41:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39528] [PATCH v4] Add tunctl References: In-Reply-To: Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 09 Feb 2020 23:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39528 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39528@debbugs.gnu.org, mail@nicolasgoaziou.fr Received: via spool by 39528-submit@debbugs.gnu.org id=B39528.15812916359868 (code B ref 39528); Sun, 09 Feb 2020 23:41:01 +0000 Received: (at 39528) by debbugs.gnu.org; 9 Feb 2020 23:40:35 +0000 Received: from localhost ([127.0.0.1]:53411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0wBk-0002Z3-2U for submit@debbugs.gnu.org; Sun, 09 Feb 2020 18:40:35 -0500 Received: from mail-io1-f54.google.com ([209.85.166.54]:38823) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0wBh-0002Yn-9N for 39528@debbugs.gnu.org; Sun, 09 Feb 2020 18:40:31 -0500 Received: by mail-io1-f54.google.com with SMTP id s24so5587569iog.5 for <39528@debbugs.gnu.org>; Sun, 09 Feb 2020 15:40:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=QZebyfRZH8IbLWUGSySbJ66Hk/5mOc9Gst6KOP41ERw=; b=CAvAcNQZBmHcT1j7sI+twjYZzoF82WBhgI94xUJ2bqqb2kVPP9VJOq8wucUsKwx3EY jNGuAedqObWB8KTMVGhk33DR94LviVaDeA+oe7Igmovq0Wtf6rr42pcoQ2qytm1HW6b1 ZzZYSgkR4C+jfpgaym0Cm6A+Dylvxuh5j2uQXvQmM5MQl8SJ2EYpmkG3P73edoLRR26s RcYwNav7QTmR5dTUYh7hOB8eQQ5EjlxoAS/MmIeCEWA9bjEv95d1se+6BX/nZIGY8aPG 515blsXuwo4zF++wP7HjMCU6ELWw2vzuT3kv80Ggf801WFO4MsJ7uMXFvd2qhhlsU3Kc I/QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=QZebyfRZH8IbLWUGSySbJ66Hk/5mOc9Gst6KOP41ERw=; b=lppbr9h+r8651OKSON30MQpy67iF0VwFWJ0Mjz2+0VCGHJvlvH8Lev3YrhMGHSP07Q BP7iXXP5O3vunh9cyBT8eM6SM93oT/xMwj5btMz5uPCDRw+0qaKXGPwSawwsJ4hGcDTZ VhKZDekXaNZKS9Gx9APmbjJ0+t+Dmad3ENBqbivmB6DHWb9ZS227BBTcvKexvSbkfRCV JrKhMqxxjx0npb9wmcnDF25zE66F+ByuRB01yggCGMyhNBQIQ6GoStcD+myhG2KaxIXW qNzmhHF7oyXtiIE2FaHnQiYKF7JI1VW3Gsr7zqlmLZazLL2SErhE3+K+McvZISZ0En9M HLlw== X-Gm-Message-State: APjAAAV1AVL8Bh5lkljpje5+bi7Av47PZUc7y7jrgn2TKxiCklLcjX32 sKmqVP8Jdloa+38NoTdtWZV6DR/8xtk3BfTqEW1ZTQ== X-Google-Smtp-Source: APXvYqzz5O5PPJxn5TIXr2iU5PmTCS5ebPN5FYtSzL48DvDW4/ymmuK10igg4oN2S8G7xWtKyJWG0YG+AgPSwZtcuL4= X-Received: by 2002:a02:8184:: with SMTP id n4mr7875678jag.31.1581291623359; Sun, 09 Feb 2020 15:40:23 -0800 (PST) MIME-Version: 1.0 From: Vincent Legoll Date: Mon, 10 Feb 2020 00:40:12 +0100 Message-ID: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello Nicolas, thanks for your input, this version incorporates your feedback, with a s/is/are/ and a capitalized first word of description. WDYT? From 6ca58829af9ef6b2e4c5c90203229280bd8f2678 Mon Sep 17 00:00:00 2001 From: Vincent Legoll Date: Sun, 9 Feb 2020 16:34:23 +0100 Subject: [PATCH] gnu: networking: Add tunctl * gnu/packages/networking.scm (tunctl): New variable. --- gnu/packages/networking.scm | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index ed339524c0..654506ffb8 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -36,6 +36,7 @@ ;;; Copyright © 2019 Jan Wielkiewicz ;;; Copyright © 2019 Daniel Schaefer ;;; Copyright © 2019 Diego N. Barbato +;;; Copyright © 2020 Vincent Legoll ;;; ;;; This file is part of GNU Guix. ;;; @@ -2824,6 +2825,44 @@ easy-to-understand binary values.") (home-page "http://jodies.de/ipcalc") (license license:gpl2+))) +(define-public tunctl + (package + (name "tunctl") + (version "1.5") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/tunctl/tunctl-" + version ".tar.gz")) + (sha256 + (base32 + "1zsgn7w6l2zh2q0j6qaw8wsx981qcr536qlz1lgb3b5zqr66qama")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'bootstrap) ; there is no configure.ac file + (delete 'configure) ; there is no configure script + (delete 'check) ; there are no tests + (replace 'build + (lambda _ + (setenv "CC" "gcc") + (invoke "make" "tunctl"))) + ;; TODO: Requires docbook2x to generate man page from SGML + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin"))) + (mkdir-p bin) + (install-file "tunctl" bin)) + #t))))) + (home-page "http://tunctl.sourceforge.net") + (synopsis "Utility to set up and maintain TUN/TAP network interfaces") + (description "Tunctl is used to set up and maintain persistent TUN/TAP network + interfaces, enabling user applications to simulate network traffic. + Such interfaces are useful for VPN software, virtualization, emulation, + simulation, and a number of other applications.") + (license license:gpl2))) + (define-public vde2 (package (name "vde2") -- 2.25.0