summary refs log tree commit diff
diff options
context:
space:
mode:
author宋文武 <iyzsong@gmail.com>2015-12-15 11:39:25 +0800
committer宋文武 <iyzsong@gmail.com>2015-12-18 10:30:16 +0800
commitc2fb20761a000b9be743ffe378b38409d5a4a556 (patch)
tree92a21e7430039de922fad0ce6a6aae216f8b1556
parent72029c8bf1b5730c01bd2d3d6d84eec038a3e8fe (diff)
downloadguix-c2fb20761a000b9be743ffe378b38409d5a4a556.tar.gz
gnu: Add libpwquality.
* gnu/packages/password-utils.scm (libpwquality): New variable.
-rw-r--r--gnu/packages/password-utils.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 0cb3750d6a..7c390e908d 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -156,3 +156,31 @@ and vice versa.")
 passwd like program.  The idea is simple: try to prevent users from choosing
 passwords that could be guessed by crack by filtering them out, at source.")
     (license license:lgpl2.1)))
+
+(define-public libpwquality
+  (package
+    (name "libpwquality")
+    (version "1.3.0")
+    (source (origin
+              (method url-fetch)
+              (uri (list
+                    (string-append "https://fedorahosted.org/releases/l/i/"
+                                   name "/" name "-" version ".tar.bz2")
+                    (string-append "https://launchpad.net/libpwquality/trunk/"
+                                   version "/+download/"
+                                   name "-" version ".tar.bz2")))
+              (sha256
+               (base32
+                "0aidriag6h0syfm33nzdfdsqgrnsgihwjv3a5lgkqch3w68fmlkl"))))
+    (build-system gnu-build-system)
+    (arguments
+     ;; XXX: have RUNPATH issue.
+     '(#:configure-flags '("--disable-python-bindings")))
+    (inputs
+     `(("cracklib" ,cracklib)))
+    (synopsis "Password quality checker")
+    (home-page "https://fedorahosted.org/libpwquality/")
+    (description
+     "Libpwquality is a library for password quality checking and generation of
+random passwords that pass the checks.")
+    (license license:gpl2+)))