all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Add EncFS package to GNU Guix
@ 2016-07-14 15:07 Tobias Geerinckx-Rice
  2016-07-14 15:07 ` [PATCH 1/3] Update e-mail address for Tobias Geerinckx-Rice Tobias Geerinckx-Rice
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Tobias Geerinckx-Rice @ 2016-07-14 15:07 UTC (permalink / raw)
  To: guix-devel

Hullo Guix,

Good news! My hard drive made a loud grinding noise this weekend. Now I
find myself installing GuixSD on bare metal, probably for good this time.

Also, testing my back-ups, which I am told is a good thing.

Some of these were still[1] encrypted using EncFS, which was missing from
Guix. Here are some patches to fix that.

Kind regards,

T G-R

[1]: It was unmaintained for a while and ha{d,s} some properties that
     make it a poor choice in some cases. I consider it fine for home
     use. Ask your doctor if EncFS is right for you.

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

* [PATCH 1/3] Update e-mail address for Tobias Geerinckx-Rice.
  2016-07-14 15:07 Add EncFS package to GNU Guix Tobias Geerinckx-Rice
@ 2016-07-14 15:07 ` Tobias Geerinckx-Rice
  2016-07-15 12:33   ` Andreas Enge
  2016-07-14 15:07 ` [PATCH 2/3] gnu: Import (guix licenses) with #:prefix Tobias Geerinckx-Rice
  2016-07-14 15:07 ` [PATCH 3/3] gnu: Add encfs Tobias Geerinckx-Rice
  2 siblings, 1 reply; 5+ messages in thread
From: Tobias Geerinckx-Rice @ 2016-07-14 15:07 UTC (permalink / raw)
  To: guix-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=true, Size: 2844 bytes --]

* .mailmap: Add Tobias Geerinckx-Rice.
* gnu/packages/disk.scm: Replace "tobias.geerinckx.rice@gmail.com" with
"me@tobias.gr".
* gnu/packages/linux.scm: Likewise.
* gnu/packages/networking.scm: Likewise.
---

Add myself to the cool-kids list. This address should be very stable...

 .mailmap                    | 1 +
 gnu/packages/disk.scm       | 2 +-
 gnu/packages/linux.scm      | 2 +-
 gnu/packages/networking.scm | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.mailmap b/.mailmap
index 50b6e68..2af7760 100644
--- a/.mailmap
+++ b/.mailmap
@@ -42,3 +42,4 @@ Ricardo Wurmus <rekado@elephly.net> <ricardo.wurmus@mdc-berlin.de>
 Sou Bunnbu (宋文武) <iyzsong@gmail.com>
 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
 Tomáš Čech <sleep_walker@gnu.org> <sleep_walker@suse.cz>
+Tobias Geerinckx-Rice <me@tobias.gr> <tobias.geerinckx.rice@gmail.com>
\ No newline at end of file
diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index 83ba4e4..54f23db 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -2,7 +2,7 @@
 ;;; Copyright © 2012, 2013 Nikita Karetnikov <nikita@karetnikov.org>
 ;;; Copyright © 2015 Mathieu Lirzin <mthl@gnu.org>
 ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
-;;; Copyright © 2016 Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>
+;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
 ;;;
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 9c33830..601d4ac 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -7,7 +7,7 @@
 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
 ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
-;;; Copyright © 2016 Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>
+;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
 ;;; Copyright © 2016 Raymond Nicholson <rain1@openmailbox.org>
 ;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 72c6011..9e4f7bb 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -4,7 +4,7 @@
 ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
 ;;; Copyright © 2015 Stefan Reichör <stefan@xsteve.at>
 ;;; Copyright © 2016 Raimon Grau <raimonster@gmail.com>
-;;; Copyright © 2016 Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>
+;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright   2016 John Darrington <jmd@gnu.org>
 ;;; Copyright © 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr>
 ;;;
-- 
2.9.0

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

* [PATCH 2/3] gnu: Import (guix licenses) with #:prefix.
  2016-07-14 15:07 Add EncFS package to GNU Guix Tobias Geerinckx-Rice
  2016-07-14 15:07 ` [PATCH 1/3] Update e-mail address for Tobias Geerinckx-Rice Tobias Geerinckx-Rice
@ 2016-07-14 15:07 ` Tobias Geerinckx-Rice
  2016-07-14 15:07 ` [PATCH 3/3] gnu: Add encfs Tobias Geerinckx-Rice
  2 siblings, 0 replies; 5+ messages in thread
From: Tobias Geerinckx-Rice @ 2016-07-14 15:07 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/crypto.scm: Add 'license:' #:prefix for (guix licenses).
---
 gnu/packages/crypto.scm | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index f167f33..041dc20 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -29,7 +29,7 @@
   #:use-module (gnu packages readline)
   #:use-module (gnu packages serialization)
   #:use-module (gnu packages tls)
-  #:use-module (guix licenses)
+  #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
   #:use-module (guix build-system gnu))
@@ -54,7 +54,7 @@
     (description
      "Sodium is a new easy-to-use high-speed software library for network
 communication, encryption, decryption, signatures, etc.")
-    (license isc)
+    (license license:isc)
     (home-page "http://libsodium.org")))
 
 (define-public signify
@@ -91,10 +91,11 @@ OpenBSD tool of the same name.")
     (home-page "https://github.com/aperezdc/signify")
     ;; This package includes third-party code that was originally released under
     ;; various non-copyleft licenses. See the source files for clarification.
-    (license (list bsd-3 bsd-4 expat isc public-domain
-                   (non-copyleft "file://base64.c"
-                                 "See base64.c in the distribution for
-                                 the license from IBM.")))))
+    (license (list license:bsd-3 license:bsd-4 license:expat license:isc
+                   license:public-domain (license:non-copyleft
+                                          "file://base64.c"
+                                          "See base64.c in the distribution for
+                                           the license from IBM.")))))
 
 
 (define-public opendht
@@ -146,4 +147,4 @@ OpenBSD tool of the same name.")
     (description "OpenDHT is a Distributed Hash Table (DHT) library.  It may
 be used to manage peer-to-peer network connections as needed for real time
 communication.")
-    (license gpl3)))
+    (license license:gpl3)))
-- 
2.9.0

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

* [PATCH 3/3] gnu: Add encfs.
  2016-07-14 15:07 Add EncFS package to GNU Guix Tobias Geerinckx-Rice
  2016-07-14 15:07 ` [PATCH 1/3] Update e-mail address for Tobias Geerinckx-Rice Tobias Geerinckx-Rice
  2016-07-14 15:07 ` [PATCH 2/3] gnu: Import (guix licenses) with #:prefix Tobias Geerinckx-Rice
@ 2016-07-14 15:07 ` Tobias Geerinckx-Rice
  2 siblings, 0 replies; 5+ messages in thread
From: Tobias Geerinckx-Rice @ 2016-07-14 15:07 UTC (permalink / raw)
  To: guix-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=true, Size: 5128 bytes --]

* gnu/packages/crypto.scm (encfs): New variable.
* gnu/packages/logging.scm (rlog): New variable.
---

rlog started off as a non-public variable in crypto.scm, but that
annoyed me and I moved it to logging.scm. It's very encfs-specific
(and will be removed again in EncFS 1.9), though.

Does it warrant its own commit? Or not even a public variable? Thoughts?

 gnu/packages/crypto.scm  | 50 ++++++++++++++++++++++++++++++++++++++++++++++++
 gnu/packages/logging.scm | 29 ++++++++++++++++++++++++++++
 2 files changed, 79 insertions(+)

diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 041dc20..ad566ad 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox>
+;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -22,10 +23,15 @@
 (define-module (gnu packages crypto)
   #:use-module (gnu packages)
   #:use-module (gnu packages autotools)
+  #:use-module (gnu packages boost)
+  #:use-module (gnu packages gettext)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages libbsd)
+  #:use-module (gnu packages linux)
+  #:use-module (gnu packages logging)
   #:use-module (gnu packages nettle)
   #:use-module (gnu packages password-utils)
+  #:use-module (gnu packages perl)
   #:use-module (gnu packages readline)
   #:use-module (gnu packages serialization)
   #:use-module (gnu packages tls)
@@ -148,3 +154,47 @@ OpenBSD tool of the same name.")
 be used to manage peer-to-peer network connections as needed for real time
 communication.")
     (license license:gpl3)))
+
+(define-public encfs
+  (package
+    (name "encfs")
+    (version "1.8.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append "https://github.com/vgough/encfs/releases/download/v"
+                       version "/encfs-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1lfmcsk187qr6ahy8c8959p7jrk9d5rd9kcsx572850ca3zmf0la"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:configure-flags '("--with-boost-serialization=boost_wserialization"
+                           "--with-boost-filesystem=boost_filesystem")
+       #:phases (modify-phases %standard-phases
+                  (add-before 'configure 'autoconf
+                    (lambda _
+                      (zero? (system* "autoreconf" "-vfi")))))))
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("gettext" ,gnu-gettext)
+       ("libtool" ,libtool)
+       ("perl" ,perl)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("boost" ,boost)
+       ("fuse" ,fuse)
+       ("openssl" ,openssl)
+       ("rlog" ,rlog)))
+    (home-page "https://vgough.github.io/encfs")
+    (synopsis "Encrypted virtual file system")
+    (description
+     "EncFS creates a virtual encrypted file system in user-space.  Each file
+created under an EncFS mount point is stored as a separate encrypted file on
+the underlying file system.  Like most encrypted file systems, EncFS is meant
+to provide security against off-line attacks, such as a drive falling into
+the wrong hands.")
+    (license (list license:lgpl2.1+     ; encfs library
+                   license:gpl3+))))    ; command-line tools
diff --git a/gnu/packages/logging.scm b/gnu/packages/logging.scm
index c40d6eb..b021d58 100644
--- a/gnu/packages/logging.scm
+++ b/gnu/packages/logging.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -88,3 +89,31 @@ helper macros.  You can log a message by simply streaming things to log at a
 particular severity level.  It allows logging to be controlled from the
 command line.")
     (license license:bsd-3)))
+
+(define-public rlog
+  (package
+    (name "rlog")
+    (version "1.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append "http://rlog.googlecode.com/files/rlog-"
+                       version ".tar.gz"))
+       (sha256
+        (base32
+         "0y9zg0pd7vmnskwac1qdyzl282z7kb01nmn57lsg2mjdxgnywf59"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (add-before 'configure 'patch-/bin/sh
+                    (lambda _
+                      (substitute* "docs/Makefile.in"
+                        (("/bin/sh") "sh")))))))
+    (home-page "http://www.arg0.net/rlog")
+    (synopsis "Flexible message logging library for encfs")
+    (description
+     "RLog provides a flexible message logging facility for C++ programs
+and libraries.  It was originally the internal logging mechanism of EncFS
+but was subsequently broken out into a separate package.")
+    (license license:lgpl2.1+)))
-- 
2.9.0

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

* Re: [PATCH 1/3] Update e-mail address for Tobias Geerinckx-Rice.
  2016-07-14 15:07 ` [PATCH 1/3] Update e-mail address for Tobias Geerinckx-Rice Tobias Geerinckx-Rice
@ 2016-07-15 12:33   ` Andreas Enge
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas Enge @ 2016-07-15 12:33 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: guix-devel

Hello Tobias,

I tried to apply your first two patches, but the first one failed
for "git am" with
error: cannot convert from true to UTF-8
fatal: could not parse patch
So I just applied it as a patch and committed it under my name.

The second patch applied without problem.

Concerning the last one, it is fine to add a package for rlog if it has
use outside of encfs. Otherwise, I would just keep it local for the time
being and delete it when updating encfs to a newer version. If you would
like to keep two packages, you should send two patches, however.

Thanks!

Andreas

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

end of thread, other threads:[~2016-07-15 12:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-14 15:07 Add EncFS package to GNU Guix Tobias Geerinckx-Rice
2016-07-14 15:07 ` [PATCH 1/3] Update e-mail address for Tobias Geerinckx-Rice Tobias Geerinckx-Rice
2016-07-15 12:33   ` Andreas Enge
2016-07-14 15:07 ` [PATCH 2/3] gnu: Import (guix licenses) with #:prefix Tobias Geerinckx-Rice
2016-07-14 15:07 ` [PATCH 3/3] gnu: Add encfs Tobias Geerinckx-Rice

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.