diff mbox

[1/2] gnu: Add keyutils.

Message ID 1472001406-13953-1-git-send-email-me@tobias.gr
State New
Headers show

Commit Message

Tobias Geerinckx-Rice Aug. 24, 2016, 1:16 a.m. UTC
* gnu/packages/crypto.scm (keyutils): New variable.
---
 gnu/packages/crypto.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Comments

Ludovic Courtès Aug. 28, 2016, 4:35 p.m. UTC | #1
Tobias Geerinckx-Rice <me@tobias.gr> skribis:

> * gnu/packages/crypto.scm (keyutils): New variable.

[...]

> +    (description
> +     "Keyutils is a set of utilities for managing the key retention facility in
> +the Linux kernel, which can be used by filesystems, block devices, and more to

s/filesystems/file systems/  :-)

> +    (license (list license:lgpl2+       ; the files keyutils.*
> +                   license:gpl+))))     ; the rest

Did you mean ‘license:gpl2+’ for the second one?

Otherwise LGTM, thanks!

Ludo’.
Tobias Geerinckx-Rice Aug. 28, 2016, 6:22 p.m. UTC | #2
Ludo',

On 28/08/16 18:35, Ludovic Courtès wrote:
> s/filesystems/file systems/  :-)

Thank you for making my day. I thought the correct spelling was dead.

I dread the first time I catch myself double-spacing sentences, though.

> Did you mean ‘license:gpl2+’ for the second one?

Indeed; already fixed (lgpl2.1+ & gpl2+). These were placeholders
supposed to be changed before sending — lgpl2+ doesn't exist either.

Pushed as e385e95. Thanks!

Kind regards,

T G-R
diff mbox

Patch

diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 7d61164..d9dd8e2 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -223,3 +223,43 @@  to provide security against off-line attacks, such as a drive falling into
 the wrong hands.")
     (license (list license:lgpl3+                 ;encfs library
                    license:gpl3+))))              ;command-line tools
+
+(define-public keyutils
+  (package
+    (name "keyutils")
+    (version "1.5.9")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append "https://people.redhat.com/dhowells/keyutils/keyutils-"
+                       version ".tar.bz2"))
+       (sha256
+        (base32
+         "1bl3w03ygxhc0hz69klfdlwqn33jvzxl1zfl2jmnb2v85iawb8jd"))
+       (modules '((guix build utils)))
+       ;; Create relative symbolic links instead of absolute ones to /lib/*
+       (snippet '(substitute* "Makefile" (("\\$\\(LNS\\) \\$\\(LIBDIR\\)/")
+                                          "$(LNS) ")))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (delete 'configure))  ; no ./configure script
+       #:make-flags (list "CC=gcc"
+                          "RPATH=-Wl,-rpath,$(DESTDIR)$(LIBDIR)"
+                          (string-append "DESTDIR="
+                                         (assoc-ref %outputs "out"))
+                          "INCLUDEDIR=/include"
+                          "LIBDIR=/lib"
+                          "MANDIR=/share/man"
+                          "SHAREDIR=/share/keyutils")
+       #:test-target "test"))
+    (home-page "https://people.redhat.com/dhowells/keyutils/")
+    (synopsis "Linux key managament utilities")
+    (description
+     "Keyutils is a set of utilities for managing the key retention facility in
+the Linux kernel, which can be used by filesystems, block devices, and more to
+gain and retain the authorization and encryption keys required to perform
+secure operations. ")
+    (license (list license:lgpl2+       ; the files keyutils.*
+                   license:gpl+))))     ; the rest