From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gCA/IEMFBWRPlwAAbAwnHQ (envelope-from ) for ; Sun, 05 Mar 2023 22:10:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iEkxIEMFBWRvKQEA9RJhRA (envelope-from ) for ; Sun, 05 Mar 2023 22:10:27 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4A9ED1A00E for ; Sun, 5 Mar 2023 22:10:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYvcM-0006fI-55; Sun, 05 Mar 2023 16:10:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYvcJ-0006f7-D7 for guix-patches@gnu.org; Sun, 05 Mar 2023 16:10:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYvcJ-0001hq-3p for guix-patches@gnu.org; Sun, 05 Mar 2023 16:10:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pYvcI-0004Nf-Fw for guix-patches@gnu.org; Sun, 05 Mar 2023 16:10:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61989] [PATCH 11/11] gnu: Add gocryptfs. Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 05 Mar 2023 21:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61989 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61989@debbugs.gnu.org Cc: Felix Lechner Received: via spool by 61989-submit@debbugs.gnu.org id=B61989.167805058816815 (code B ref 61989); Sun, 05 Mar 2023 21:10:02 +0000 Received: (at 61989) by debbugs.gnu.org; 5 Mar 2023 21:09:48 +0000 Received: from localhost ([127.0.0.1]:40864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYvc4-0004N9-BJ for submit@debbugs.gnu.org; Sun, 05 Mar 2023 16:09:48 -0500 Received: from sail-ipv4.us-core.com ([208.82.101.137]:55918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYvO1-0003we-Bp for 61989@debbugs.gnu.org; Sun, 05 Mar 2023 15:55:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=LpqEo09py0oaBJN TnvyFHkXPewborqpPQnClWuXKBAM=; h=references:in-reply-to:date:subject: cc:to:from; d=lease-up.com; b=qfHieZmczRLHHhug34u6bTrJ6LpZs0/CUvmAOgqb NWqTlRS17qKrL9VSpTR34iUaEO9HqwiUiyI6NGMf9R9D+RPss8elLALqSLLOoCVXUqnB2E Cx9ZG49C2PrXkL/JKsKpDjQO/5bZ72oS9XY0zhBhl8ajIVWv7UFWlqkbRzlOE= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 0ef4498b (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for <61989@debbugs.gnu.org>; Sun, 5 Mar 2023 20:55:16 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id c39f48ae; Sun, 5 Mar 2023 20:55:16 +0000 (UTC) Date: Sun, 5 Mar 2023 12:54:55 -0800 Message-Id: <14aa6e06492ead7763c61be3b7267b1fbc571cc1.1678049134.git.felix.lechner@lease-up.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Felix Lechner X-ACL-Warn: , Felix Lechner via Guix-patches From: Felix Lechner via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678050627; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+t00Karip2Yap6PO3lAvOPNdJAwcm1NTGqQ0zNhO1vE=; b=beTJomO2WJOELfkwGvdkLcMsZ3Omcb6pme4HQMuvGNRr4ZUyzpWGpeSwS5pix4ZHpSaeHq ALAa0crfG2Jtb4jOgnKx+p6i3YAcTs52J3wjDv8l6L0L2GUxAZI1M8FU0m0s4YcmstCnss /DhiJrmLiJglS32Kh97iGN0KCgv0qRdx5OUbus0B1Z+6+lPHwS0sv9etm4g8PAhhFBU+00 kW2tcxnQQnmPr1bFmtSxGRLE9Xem4NC2tM2QmtvHocxjAOdZ+P+XVXV047I7jiZV0JBUpW isb0Q49FacHfPuuuHL39yWAKryknNS1gWDH5MZVBJMmRlIPaxjzrqewEz4cvdg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=qfHieZmc; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678050627; a=rsa-sha256; cv=none; b=Xch4tlKmEmUmHHCC4ovs+sS4tEtFqWpKsrzHqxxBZkkQjXJnlt78ho/rqc2LyCKu7FbNkf HFr8xHI25sXge+AT3pKCe243bHAcgcKAAj7Dv5JvpivYDWqaqII2rIg4MWRrZ0jLDAx9Bk D72JgLNj3FnZHpN1+nIvItRrSG+49jB5bdKlqUM4oCwqmoNMQG0X9KSbOenW9TOO3owl9u HNq2bctjsMt8i/lPsz21bXA2ur+BlBFmqEwkWgtFz6Py44JW43UCYaZ2vgPhuxEnDAuo4+ rttlpWtFrYF45soQKExr30/IfdKL+xGc0LMaGcPZVzDZAy6ZPyscVZ+5pOfwnQ== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.71 X-Spam-Score: -3.71 X-Migadu-Queue-Id: 4A9ED1A00E Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=qfHieZmc; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-TUID: mwHXFkzMJP43 * 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