guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#63966] [PATCH] gnu: Add passwdqc.


From: flabbergasted
Subject: [bug#63966] [PATCH] gnu: Add passwdqc.
Date: Thu, 8 Jun 2023 22:11:03 +0100

---
 gnu/packages/password-utils.scm | 38 +++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 74e465d..f52c106 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -476,6 +476,44 @@ (define-public libpwquality
 random passwords that pass the checks.")
     (license license:gpl2+)))
 
+(define-public passwdqc
+  (package
+    (name "passwdqc")
+    (version "2.0.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://www.openwall.com/passwdqc/"; name
+                                  "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1aq40v5094bhnj86v4i2nmqkybmzzp20q7jb92jgc860cibm07zz"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:make-flags #~(list (string-append "CC="
+                                               #$(cc-for-target))
+                                (string-append "DESTDIR="
+                                               #$output)
+                                "BINDIR=/bin"
+                                "DEVEL_LIBDIR=/lib"
+                                "SHARED_LIBDIR_REL=."
+                                "INCLUDEDIR=/include"
+                                "MANDIR=/share/man"
+                                (string-append "LDFLAGS=-Wl,-rpath="
+                                               #$output "/lib"))
+           #:phases #~(modify-phases %standard-phases
+                        (delete 'configure)) ;no configure script
+           #:tests? #f)) ;no tests provided
+    (inputs (list linux-pam))
+    (home-page "https://www.openwall.com/passwdqc/";)
+    (synopsis
+     "Password/passphrase strength checking and policy enforcement toolset")
+    (description
+     "Passwdqc is a password/passphrase strength checking and policy 
enforcement
+     toolset, including an optional PAM module (pam_passwdqc), command-line 
programs
+     (pwqcheck, pwqfilter, and pwqgen), and a library (libpasswdqc).")
+    (license (list license:bsd-3 ;manual pages
+                   license:bsd-1)))) ; code
+
 (define-public assword
   (package
     (name "assword")

base-commit: 872b2487451c39020a78ed3227992fb02a7ed5e5
-- 
2.40.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]