unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#41964] [PATCH 0/2] Add pass-tomb.
@ 2020-06-20 15:09 Brice Waegeneire
  2020-06-20 15:11 ` [bug#41964] [PATCH 1/2] gnu: tomb: Add 'getent' to PATH Brice Waegeneire
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Brice Waegeneire @ 2020-06-20 15:09 UTC (permalink / raw)
  To: 41964

Brice Waegeneire (2):
  gnu: tomb: Add 'getent' to PATH.
  gnu: Add 'pass-tomb'.

 gnu/packages/crypto.scm         |  3 ++-
 gnu/packages/password-utils.scm | 41 +++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 1 deletion(-)

-- 
2.26.2





^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#41964] [PATCH 1/2] gnu: tomb: Add 'getent' to PATH.
  2020-06-20 15:09 [bug#41964] [PATCH 0/2] Add pass-tomb Brice Waegeneire
@ 2020-06-20 15:11 ` Brice Waegeneire
  2020-07-17 18:53   ` Danny Milosavljevic
  2020-06-20 15:11 ` [bug#41964] [PATCH 2/2] gnu: Add 'pass-tomb' Brice Waegeneire
  2020-07-11 21:51 ` bug#41964: [PATCH 0/2] Add pass-tomb Julien Lepiller
  2 siblings, 1 reply; 6+ messages in thread
From: Brice Waegeneire @ 2020-06-20 15:11 UTC (permalink / raw)
  To: 41964

* gnu/packages/crypto.scm (tomb)[arguments]: In 'wrap' phase add
'getent' to the PATH.
---
 gnu/packages/crypto.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index be8f8b9f05..5cee32b0bb 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -16,6 +16,7 @@
 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
 ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
+;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -389,7 +390,7 @@ no man page, refer to the home page for usage details.")
                                  (error "program not found:" program)))
                            '("seq" "mkfs.ext4" "pinentry"
                              "gpg" "cryptsetup" "gettext" "lsof"
-                             "qrencode" "steghide" "findmnt")))))
+                             "qrencode" "steghide" "findmnt" "getent")))))
                #t)))
          (delete 'check)
          (add-after 'wrap 'check
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#41964] [PATCH 2/2] gnu: Add 'pass-tomb'.
  2020-06-20 15:09 [bug#41964] [PATCH 0/2] Add pass-tomb Brice Waegeneire
  2020-06-20 15:11 ` [bug#41964] [PATCH 1/2] gnu: tomb: Add 'getent' to PATH Brice Waegeneire
@ 2020-06-20 15:11 ` Brice Waegeneire
  2020-07-17 18:52   ` Danny Milosavljevic
  2020-07-11 21:51 ` bug#41964: [PATCH 0/2] Add pass-tomb Julien Lepiller
  2 siblings, 1 reply; 6+ messages in thread
From: Brice Waegeneire @ 2020-06-20 15:11 UTC (permalink / raw)
  To: 41964

* gnu/packages/password-utils.scm (pass-tomb): New variable.
---
 gnu/packages/password-utils.scm | 41 +++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 6bd1e94c91..c356dba309 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -1210,3 +1210,44 @@ desired length.  It can also generate their corresponding hashes for a given
 encryption algorithm if so desired.")
       (home-page "https://github.com/khorben/makepasswd")
       (license license:gpl3))))
+
+(define-public pass-tomb
+  (package
+    (name "pass-tomb")
+    (version "1.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/roddhjav/pass-tomb")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1qj7vx7svk1ljwihj3kv310k17mafnf919n30n4qn1yxmmsvj924"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:make-flags
+       (let ((out (assoc-ref %outputs "out")))
+         (list (string-append "PREFIX=" out)
+               (string-append "BASHCOMPDIR=" out "/etc/bash_completion.d")))
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'set-tomb-path
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((tomb (assoc-ref inputs "tomb")))
+               (substitute* "tomb.bash"
+                 ((":-tomb")
+                  (string-append ":-" tomb "/bin/tomb"))))))
+         (delete 'configure)
+         ;; No test suite
+         (delete 'check))))
+    (inputs
+     `(("tomb" ,tomb)))
+    (home-page "https://github.com/roddhjav/pass-tomb")
+    (synopsis "Pass extension keeping the tree of passwords encrypted")
+    (description "Pass-tomb provides a convenient solution to put your
+password store in a Tomb and then keep your password tree encrypted when you
+are not using it.  It uses the same GPG key to encrypt passwords and tomb,
+therefore you don't need to manage more key or secret.  Moreover, you can ask
+pass-tomb to automatically close your store after a given time.")
+    (license license:gpl3+)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* bug#41964: [PATCH 0/2] Add pass-tomb.
  2020-06-20 15:09 [bug#41964] [PATCH 0/2] Add pass-tomb Brice Waegeneire
  2020-06-20 15:11 ` [bug#41964] [PATCH 1/2] gnu: tomb: Add 'getent' to PATH Brice Waegeneire
  2020-06-20 15:11 ` [bug#41964] [PATCH 2/2] gnu: Add 'pass-tomb' Brice Waegeneire
@ 2020-07-11 21:51 ` Julien Lepiller
  2 siblings, 0 replies; 6+ messages in thread
From: Julien Lepiller @ 2020-07-11 21:51 UTC (permalink / raw)
  To: Brice Waegeneire; +Cc: 41964-done

Le Sat, 20 Jun 2020 17:09:12 +0200,
Brice Waegeneire <brice@waegenei.re> a écrit :

> Brice Waegeneire (2):
>   gnu: tomb: Add 'getent' to PATH.
>   gnu: Add 'pass-tomb'.
> 
>  gnu/packages/crypto.scm         |  3 ++-
>  gnu/packages/password-utils.scm | 41
> +++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+),
> 1 deletion(-)
> 

Pushed as 12d69fc5745759b11d6e19cdcdad64d34ecd9dd4 and
36a1925f21ee6787d8b80025f1b96238309f4b96.

I tried to enable tests in pass-tomb (because there were actually
tests) but it didn't work because it checks there is no swap partition,
and tries to use /tmp/zsh which is not accessible in the build
container.  One of the test dependencies was kcov, which I added in a
separate patch, but ended up not using, as it's only required for tests
and we disable them.

Note that the usual way to disable tests is by using the argument

#:tests? #f

instead of deleting the check phase. I've fixed that before pushing.

Thanks for working on this!




^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#41964] [PATCH 2/2] gnu: Add 'pass-tomb'.
  2020-06-20 15:11 ` [bug#41964] [PATCH 2/2] gnu: Add 'pass-tomb' Brice Waegeneire
@ 2020-07-17 18:52   ` Danny Milosavljevic
  0 siblings, 0 replies; 6+ messages in thread
From: Danny Milosavljevic @ 2020-07-17 18:52 UTC (permalink / raw)
  To: Brice Waegeneire; +Cc: 41964

[-- Attachment #1: Type: text/plain, Size: 477 bytes --]

On Sat, 20 Jun 2020 17:11:11 +0200
Brice Waegeneire <brice@waegenei.re> wrote:

> +       #:phases
> +       (modify-phases %standard-phases
> +         (add-after 'unpack 'set-tomb-path
> +           (lambda* (#:key inputs #:allow-other-keys)
> +             (let ((tomb (assoc-ref inputs "tomb")))
> +               (substitute* "tomb.bash"
> +                 ((":-tomb")
> +                  (string-append ":-" tomb "/bin/tomb"))))))

Phase should end in #t.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#41964] [PATCH 1/2] gnu: tomb: Add 'getent' to PATH.
  2020-06-20 15:11 ` [bug#41964] [PATCH 1/2] gnu: tomb: Add 'getent' to PATH Brice Waegeneire
@ 2020-07-17 18:53   ` Danny Milosavljevic
  0 siblings, 0 replies; 6+ messages in thread
From: Danny Milosavljevic @ 2020-07-17 18:53 UTC (permalink / raw)
  To: Brice Waegeneire; +Cc: 41964

[-- Attachment #1: Type: text/plain, Size: 7 bytes --]

LGTM!

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-07-17 18:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-20 15:09 [bug#41964] [PATCH 0/2] Add pass-tomb Brice Waegeneire
2020-06-20 15:11 ` [bug#41964] [PATCH 1/2] gnu: tomb: Add 'getent' to PATH Brice Waegeneire
2020-07-17 18:53   ` Danny Milosavljevic
2020-06-20 15:11 ` [bug#41964] [PATCH 2/2] gnu: Add 'pass-tomb' Brice Waegeneire
2020-07-17 18:52   ` Danny Milosavljevic
2020-07-11 21:51 ` bug#41964: [PATCH 0/2] Add pass-tomb Julien Lepiller

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).