unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Timmy Douglas via Guix-patches via <guix-patches@gnu.org>
To: 52174@debbugs.gnu.org
Cc: ludo@gnu.org, mail@timmydouglas.com
Subject: [bug#52174] [PATCH v3 4/6] gnu: add slirp4netns
Date: Tue, 21 Dec 2021 23:33:52 -0800	[thread overview]
Message-ID: <1061553b8c9ab0ece4fa3f53d534dd052c9d1a71.1640158278.git.mail@timmydouglas.com> (raw)
In-Reply-To: <87sfunjtfi.fsf@gnu.org>

* gnu/packages/containers.scm (slirp4netns): New variable.
---
 gnu/packages/containers.scm | 40 +++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm
index 7ba39b5c69..5e540bcfe4 100644
--- a/gnu/packages/containers.scm
+++ b/gnu/packages/containers.scm
@@ -173,3 +173,43 @@ (define-public libslirp
      "libslirp is a user-mode networking library used by virtual machines,
 containers or various tools.")
     (license license:bsd-3)))
+
+(define-public slirp4netns
+  (package
+    (name "slirp4netns")
+    (version "1.1.12")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/rootless-containers/slirp4netns")
+             (commit (string-append "v" version))))
+       (sha256
+        (base32 "03llv4dlf7qqxwz4zdyk926g4bigfj2gb50glm70ciflpvzs8081"))
+       (file-name (git-file-name name version))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:tests? #f ; XXX: open("/dev/net/tun"): No such file or directory
+       #:phases (modify-phases %standard-phases
+                  (add-after 'unpack 'fix-hardcoded-paths
+                    (lambda _
+                      (substitute* (find-files "tests" "\\.sh")
+                        (("ping") "/run/setuid-programs/ping")))))))
+    (inputs
+     (list glib
+           libcap
+           libseccomp
+           libslirp))
+    (native-inputs
+     (list automake
+           autoconf
+           iproute ; iproute, jq, nmap (ncat) and util-linux are for tests
+           jq
+           nmap
+           pkg-config
+           util-linux))
+    (home-page "https://github.com/rootless-containers/slirp4netns")
+    (synopsis "User-mode networking for unprivileged network namespaces")
+    (description
+     "slirp4netns provides user-mode networking (\"slirp\") for unprivileged network namespaces.")
+    (license license:gpl2+)))
-- 
2.34.0





  parent reply	other threads:[~2021-12-22  7:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87sfunjtfi.fsf@gnu.org>
2021-12-22  7:33 ` [bug#52174] [PATCH v3 1/6] gnu: add crun Timmy Douglas via Guix-patches via
2021-12-22  7:33 ` [bug#52174] [PATCH v3 2/6] gnu: add conmon Timmy Douglas via Guix-patches via
2021-12-22  7:33 ` [bug#52174] [PATCH v3 3/6] gnu: add libslirp Timmy Douglas via Guix-patches via
2021-12-22  7:33 ` Timmy Douglas via Guix-patches via [this message]
2021-12-22  7:33 ` [bug#52174] [PATCH v3 5/6] gnu: add cni-plugins Timmy Douglas via Guix-patches via
2021-12-22  7:33 ` [bug#52174] [PATCH v3 6/6] gnu: add podman Timmy Douglas via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1061553b8c9ab0ece4fa3f53d534dd052c9d1a71.1640158278.git.mail@timmydouglas.com \
    --to=guix-patches@gnu.org \
    --cc=52174@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    --cc=mail@timmydouglas.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).