unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Felix Lechner via Guix-patches via <guix-patches@gnu.org>
To: 58768@debbugs.gnu.org
Cc: "\(" <paren@disroot.org>, Felix Lechner <felix.lechner@lease-up.com>
Subject: [bug#58768] [PATCH 9/9] gnu: Add gocryptfs.
Date: Tue, 25 Oct 2022 12:27:27 -0700	[thread overview]
Message-ID: <20221025192727.2175-9-felix.lechner@lease-up.com> (raw)
In-Reply-To: <20221025192727.2175-1-felix.lechner@lease-up.com>

* gnu/packages/file-systems.scm (gocryptfs): New variable.
---
 gnu/packages/file-systems.scm | 74 +++++++++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)

diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm
index 4b1c1cebe8..3fe68ca313 100644
--- a/gnu/packages/file-systems.scm
+++ b/gnu/packages/file-systems.scm
@@ -422,6 +422,80 @@ (define-public fstransform
     (license (list license:gpl2         ; fsattr/src/e4attr.* → sbin/fsattr
                    license:gpl3+))))    ; the rest
 
+(define-public gocryptfs
+  (package
+    (name "gocryptfs")
+    (version "2.3.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/rfjakob/gocryptfs")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1lkcx61r93xq21scg98hrvclwwxbli93pqnnck0d08isvhgjd590"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/rfjakob/gocryptfs"
+      #:build-flags
+      #~(list
+         "-ldflags" (string-append
+                     "-X main.GitVersion=" #$version
+                     " -X main.GitVersionFuse=" #$(package-version
+                                                   go-github-com-hanwen-go-fuse-v2)
+                     " -X main.BuildDate=" "[reproducible]"))
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; after 'check phase, should maybe unmount leftover mounts as in
+          ;; https://github.com/rfjakob/gocryptfs/blob/a55b3cc15a6d9bce116a90f33df4bc99d9dd6a10/test.bash#L28
+          (replace 'build
+            (lambda arguments
+              (for-each
+               (lambda (directory)
+                 (apply (assoc-ref %standard-phases 'build)
+                        (append arguments (list #:import-path directory))))
+               (list
+                "github.com/rfjakob/gocryptfs"
+                "github.com/rfjakob/gocryptfs/gocryptfs-xray"
+                "github.com/rfjakob/gocryptfs/contrib/statfs"
+                "github.com/rfjakob/gocryptfs/contrib/findholes"
+                "github.com/rfjakob/gocryptfs/contrib/atomicrename")))))))
+    (native-inputs (list
+                    go-github-com-hanwen-go-fuse-v2
+                    go-github-com-jacobsa-crypto
+                    go-github-com-jacobsa-oglematchers
+                    go-github-com-jacobsa-oglemock
+                    go-github-com-jacobsa-ogletest
+                    go-github-com-jacobsa-reqtrace
+                    go-github-com-pkg-xattr
+                    go-github-com-rfjakob-eme
+                    go-github-com-sabhiram-go-gitignore
+                    go-github-com-spf13-pflag
+                    go-golang-org-x-crypto
+                    go-golang-org-x-net
+                    go-golang-org-x-sys
+                    go-golang-org-x-term
+                    openssl
+                    pkg-config))
+    (home-page "https://github.com/rfjakob/gocryptfs")
+    (synopsis "Encrypted overlay filesystem")
+    (description
+     "Gocryptfs is an encrypted overlay filesystem written in Go.  It
+features a file-based encryption that is implemented as a mountable
+FUSE filesystem.
+
+Gocryptfs was inspired by EncFS and strives to fix its security issues
+while providing good performance.  Gocryptfs is as fast as EncFS in the
+default mode and significantly faster than paranoia mode in EncFS,
+which provides a security level comparable to Gocryptfs.
+
+On CPUs without AES-NI, gocryptfs uses OpenSSL through a thin wrapper
+called stupidgcm.  This provides a 4x speedup compared to Go's builtin
+AES-GCM implementation.")
+    (license license:expat)))
+
 (define-public gphotofs
   (package
     (name "gphotofs")
-- 
2.38.0





      parent reply	other threads:[~2022-10-25 19:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-25  0:23 [bug#58768] [PATCH] gnu: Add gocryptfs Felix Lechner via Guix-patches via
2022-10-25  0:25 ` [bug#58768] Patch attached Felix Lechner via Guix-patches via
2022-10-25  6:30   ` ( via Guix-patches via
2022-10-25 13:39     ` Felix Lechner via Guix-patches via
2022-10-25 16:07       ` ( via Guix-patches via
2022-10-27 16:48         ` Felix Lechner via Guix-patches via
2022-10-25 19:27 ` [bug#58768] [PATCH 1/9] gnu: Add go-github-com-hanwen-go-fuse-v2 Felix Lechner via Guix-patches via
2022-10-25 19:27   ` [bug#58768] [PATCH 2/9] gnu: Add go-github-com-jacobsa-crypto Felix Lechner via Guix-patches via
2022-10-25 19:27   ` [bug#58768] [PATCH 3/9] gnu: Add go-github-com-jacobsa-oglematchers Felix Lechner via Guix-patches via
2022-10-25 19:27   ` [bug#58768] [PATCH 4/9] gnu: Add go-github-com-jacobsa-oglemock Felix Lechner via Guix-patches via
2022-10-25 19:27   ` [bug#58768] [PATCH 5/9] gnu: Add go-github-com-jacobsa-ogletest Felix Lechner via Guix-patches via
2022-10-25 19:27   ` [bug#58768] [PATCH 6/9] gnu: Add go-github-com-jacobsa-reqtrace Felix Lechner via Guix-patches via
2022-10-25 19:27   ` [bug#58768] [PATCH 7/9] gnu: Add go-github-com-pkg-xattr Felix Lechner via Guix-patches via
2022-10-25 19:27   ` [bug#58768] [PATCH 8/9] gnu: Add go-github-com-rfjakob-eme Felix Lechner via Guix-patches via
2022-10-25 19:27   ` Felix Lechner via Guix-patches via [this message]

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=20221025192727.2175-9-felix.lechner@lease-up.com \
    --to=guix-patches@gnu.org \
    --cc=58768@debbugs.gnu.org \
    --cc=felix.lechner@lease-up.com \
    --cc=paren@disroot.org \
    /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).