summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorFlorian Pelz <pelzflorian@pelzflorian.de>2019-06-03 07:19:20 +0200
committerLudovic Courtès <ludo@gnu.org>2019-06-03 23:18:46 +0200
commit27faad22a8714c2bf83fb6e78b931545586dd46c (patch)
tree160aaf8e5007b572a2a39b12d93ae3fadf64bba9 /gnu
parent18919cf9289764de69035bfcd0f0456864f91c02 (diff)
downloadguix-27faad22a8714c2bf83fb6e78b931545586dd46c.tar.gz
gnu: cracklib: Install password dictionary.
* gnu/packages/password-utils.scm (cracklib): Use `make dict`.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/password-utils.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 19595a2a62..ed890f73c3 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -310,6 +310,15 @@ and vice versa.")
        (sha256
         (base32 "1rimpjsdnmw8f5b7k558cic41p2qy2n2yrlqp5vh7mp4162hk0py"))))
     (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'install-dict
+           (lambda* (#:key make-flags #:allow-other-keys)
+             (begin
+               (chmod (string-append "util/cracklib-format") #o755)
+               (apply invoke "make" "dict" make-flags)
+               #t))))))
     (synopsis "Password checking library")
     (home-page "https://github.com/cracklib/cracklib")
     (description