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: 61989@debbugs.gnu.org
Cc: Felix Lechner <felix.lechner@lease-up.com>
Subject: [bug#61989] [PATCH 11/11] gnu: Add gocryptfs.
Date: Sun,  5 Mar 2023 12:54:55 -0800	[thread overview]
Message-ID: <14aa6e06492ead7763c61be3b7267b1fbc571cc1.1678049134.git.felix.lechner@lease-up.com> (raw)
In-Reply-To: <cover.1678049134.git.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 bc5bb41fb3..a62433c01c 100644
--- a/gnu/packages/file-systems.scm
+++ b/gnu/packages/file-systems.scm
@@ -435,6 +435,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.1")
+    (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
+                "1m0xk5imkx81i1l4wv1j1xh9ckp0gqssq4v46pkkcq2xlv2dvxlr"))))
+    (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-aperturerobotics-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.39.1





  parent reply	other threads:[~2023-03-05 21:10 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-05 20:52 [bug#61989] [PATCH 00/11] Adding Gocryptfs (feature branch) Felix Lechner via Guix-patches via
2023-03-05 20:54 ` [bug#61989] [PATCH 01/11] gnu: go-golang-org-x-sys: Update to 0.4.0 Felix Lechner via Guix-patches via
2023-03-05 20:54 ` [bug#61989] [PATCH 02/11] gnu: go-golang-org-x-net: Update to 0.5.0 Felix Lechner via Guix-patches via
2023-03-05 20:54 ` [bug#61989] [PATCH 03/11] gnu: Add go-github-com-hanwen-go-fuse-v2 Felix Lechner via Guix-patches via
2023-03-05 20:54 ` [bug#61989] [PATCH 04/11] gnu: Add go-github-com-aperturerobotics-jacobsa-crypto Felix Lechner via Guix-patches via
2023-03-05 20:54 ` [bug#61989] [PATCH 05/11] gnu: Add go-github-com-jacobsa-oglematchers Felix Lechner via Guix-patches via
2023-03-05 20:54 ` [bug#61989] [PATCH 06/11] gnu: Add go-github-com-jacobsa-oglemock Felix Lechner via Guix-patches via
2023-03-05 20:54 ` [bug#61989] [PATCH 07/11] gnu: Add go-github-com-jacobsa-ogletest Felix Lechner via Guix-patches via
2023-03-05 20:54 ` [bug#61989] [PATCH 08/11] gnu: Add go-github-com-jacobsa-reqtrace Felix Lechner via Guix-patches via
2023-03-05 20:54 ` [bug#61989] [PATCH 09/11] gnu: Add go-github-com-pkg-xattr Felix Lechner via Guix-patches via
2023-03-05 20:54 ` [bug#61989] [PATCH 10/11] gnu: Add go-github-com-rfjakob-eme Felix Lechner via Guix-patches via
2023-03-05 20:54 ` Felix Lechner via Guix-patches via [this message]
2023-03-06 16:42 ` [bug#61989] [PATCH 00/11] Adding Gocryptfs (feature branch) Leo Famulari
2023-03-07 23:06   ` Leo Famulari
2023-03-08  0:02     ` Felix Lechner via Guix-patches via
2023-03-08 15:10       ` Leo Famulari
2023-03-10  0:21         ` Felix Lechner via Guix-patches via
2023-03-10  1:54           ` Leo Famulari
2023-03-11 16:17             ` Leo Famulari
2023-03-12  5:27               ` Felix Lechner via Guix-patches via
2023-03-14  2:05               ` Felix Lechner via Guix-patches via
2023-03-16  1:21                 ` Leo Famulari
2023-03-16 19:44                   ` Felix Lechner via Guix-patches via
2023-03-16 23:59                     ` Leo Famulari
2023-03-17 19:02                       ` Felix Lechner via Guix-patches via
2023-03-19  8:51                         ` Efraim Flashner
2023-03-19 17:17                           ` Leo Famulari
2023-03-19 17:22                             ` Leo Famulari
2023-03-19 17:25                               ` Felix Lechner via Guix-patches via
2023-03-19 20:38                                 ` Leo Famulari
2023-03-19 20:46                                   ` Leo Famulari
2023-03-19 20:48                                     ` Felix Lechner via Guix-patches via
2023-03-19 20:51                                       ` Leo Famulari
2023-03-19 20:54                                         ` Felix Lechner via Guix-patches via
2023-03-19 21:04                                           ` Leo Famulari
2023-03-19 21:31                                     ` Felix Lechner via Guix-patches via
2023-03-28 20:37                                       ` bug#61989: " Leo Famulari
2023-03-28 20:54                                         ` [bug#61989] " Felix Lechner via Guix-patches via
2023-03-13 17:53             ` Leo Famulari
2023-03-13 20:37               ` Felix Lechner 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=14aa6e06492ead7763c61be3b7267b1fbc571cc1.1678049134.git.felix.lechner@lease-up.com \
    --to=guix-patches@gnu.org \
    --cc=61989@debbugs.gnu.org \
    --cc=felix.lechner@lease-up.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).