summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2019-10-04 12:31:30 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2019-10-05 11:59:50 +0200
commitc11caf2060d82c1dc56969ce3668ec9e6561fe79 (patch)
treec88f5139a483e3e46f38d2ce8c115c237108b793 /gnu
parentb5c84b8a37aa268c370ad9c1cf335e5b6c1b3420 (diff)
gnu: cryptsetup: Update to 2.2.1.
* gnu/packages/cryptsetup.scm (cryptsetup): Update to 2.2.1. [arguments]: Add #:configure-flags. [native-inputs]: Remove python & add pkg-config. [inputs]: Add argon2 & json-c. (cryptsetup-static): Disable new binaries. Keep using libgcrypt. Disable blkid support. [inputs]: Add json-c.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/cryptsetup.scm42
1 files changed, 31 insertions, 11 deletions
diff --git a/gnu/packages/cryptsetup.scm b/gnu/packages/cryptsetup.scm
index 84251352451..3bb1388910d 100644
--- a/gnu/packages/cryptsetup.scm
+++ b/gnu/packages/cryptsetup.scm
@@ -26,14 +26,16 @@
26 #:use-module (guix utils) 26 #:use-module (guix utils)
27 #:use-module (gnu packages) 27 #:use-module (gnu packages)
28 #:use-module (gnu packages gnupg) 28 #:use-module (gnu packages gnupg)
29 #:use-module (gnu packages password-utils)
30 #:use-module (gnu packages pkg-config)
29 #:use-module (gnu packages popt) 31 #:use-module (gnu packages popt)
30 #:use-module (gnu packages python) 32 #:use-module (gnu packages linux)
31 #:use-module (gnu packages linux)) 33 #:use-module (gnu packages web))
32 34
33(define-public cryptsetup 35(define-public cryptsetup
34 (package 36 (package
35 (name "cryptsetup") 37 (name "cryptsetup")
36 (version "1.7.5") 38 (version "2.2.1")
37 (source (origin 39 (source (origin
38 (method url-fetch) 40 (method url-fetch)
39 (uri (string-append "mirror://kernel.org/linux/utils/cryptsetup/v" 41 (uri (string-append "mirror://kernel.org/linux/utils/cryptsetup/v"
@@ -41,15 +43,26 @@
41 "/cryptsetup-" version ".tar.xz")) 43 "/cryptsetup-" version ".tar.xz"))
42 (sha256 44 (sha256
43 (base32 45 (base32
44 "1gail831j826lmpdx2gsc83lp3br6wfnwh3vqwxaa1nn1lfwsc1b")))) 46 "0q8w3khiwsw708169vahm0nccajsc2hwqz5gv6nb1g9qxlqrmrwl"))))
45 (build-system gnu-build-system) 47 (build-system gnu-build-system)
46 (inputs 48 (arguments
47 `(("libgcrypt" ,libgcrypt) 49 `(#:configure-flags
48 ("lvm2" ,lvm2) 50 (list
49 ("util-linux" ,util-linux) 51 ;; Argon2 is always enabled, this just selects the (faster) full version.
50 ("popt" ,popt))) 52 "--enable-libargon2"
53 ;; The default is OpenSSL which provides better PBKDF performance.
54 "--with-crypto_backend=gcrypt"
55 ;; GRUB as of 2.04 still can't read LUKS2 containers.
56 "--with-default-luks-format=LUKS1")))
51 (native-inputs 57 (native-inputs
52 `(("python" ,python-wrapper))) 58 `(("pkg-config" ,pkg-config)))
59 (inputs
60 `(("argon2" ,argon2)
61 ("json-c" ,json-c)
62 ("libgcrypt" ,libgcrypt)
63 ("lvm2" ,lvm2) ; device-mapper
64 ("popt" ,popt)
65 ("util-linux" ,util-linux))) ; libuuid
53 (synopsis "Hard disk encryption tool") 66 (synopsis "Hard disk encryption tool")
54 (description 67 (description
55 "LUKS (Linux Unified Key Setup)/Cryptsetup provides a standard on-disk 68 "LUKS (Linux Unified Key Setup)/Cryptsetup provides a standard on-disk
@@ -83,7 +96,13 @@ files). This assumes LIBRARY uses Libtool."
83 "--enable-static-cryptsetup" 96 "--enable-static-cryptsetup"
84 97
85 "--disable-veritysetup" 98 "--disable-veritysetup"
99 "--disable-cryptsetup-reencrypt"
100 "--disable-integritysetup"
101
102 ;; The default is OpenSSL which provides better PBKDF performance.
103 "--with-crypto_backend=gcrypt"
86 104
105 "--disable-blkid"
87 ;; 'libdevmapper.a' pulls in libpthread, libudev and libm. 106 ;; 'libdevmapper.a' pulls in libpthread, libudev and libm.
88 "LIBS=-ludev -pthread -lm") 107 "LIBS=-ludev -pthread -lm")
89 108
@@ -119,7 +138,8 @@ files). This assumes LIBRARY uses Libtool."
119 (inherit (static-library libgcrypt)) 138 (inherit (static-library libgcrypt))
120 (propagated-inputs 139 (propagated-inputs
121 `(("libgpg-error-host" ,(static-library libgpg-error))))))) 140 `(("libgpg-error-host" ,(static-library libgpg-error)))))))
122 `(("libgcrypt" ,libgcrypt-static) 141 `(("json-c" ,json-c)
142 ("libgcrypt" ,libgcrypt-static)
123 ("lvm2" ,lvm2-static) 143 ("lvm2" ,lvm2-static)
124 ("util-linux" ,util-linux "static") 144 ("util-linux" ,util-linux "static")
125 ("util-linux" ,util-linux) 145 ("util-linux" ,util-linux)