summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-07-26 15:46:04 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-07 09:01:24 +0100
commit3c140aab9b6920cd2e4bc3e42d491748aa6e8288 (patch)
tree3753ca2c1e5a4462cf7cfa08f9f74a39948b51ee /gnu/packages
parentd6f0e67141fbe7cc572d77bce07955582f308063 (diff)
gnu: Add pam-wrapper.
* gnu/packages/samba.scm (pam-wrapper): New variable. Change-Id: Ifca36b05c4effbe6822bcbd96138472c48545855 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/samba.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/samba.scm b/gnu/packages/samba.scm
index 7b2dbc0dd3f..3cc6139479e 100644
--- a/gnu/packages/samba.scm
+++ b/gnu/packages/samba.scm
@@ -217,6 +217,42 @@ you use with @code{socket_wrapper}. It provides the following features:
@end itemize")
(license license:bsd-3)))
+(define-public pam-wrapper
+ (package
+ (name "pam-wrapper")
+ (version "1.1.8")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.samba.org/pam_wrapper.git/")
+ (commit (string-append "pam_wrapper-" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1h1n6bgzcvc6zhpi79g76zrl3fypd7q25bc2kdx18x014p9wdr4r"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:configure-flags
+ #~(list "-DUNIT_TESTING=ON"
+ (string-append "-DPYTHON_INSTALL_SITEARCH="
+ #$output "/lib/python"
+ #$(version-major+minor
+ (package-version
+ (this-package-native-input "python")))
+ "/site-packages/pypamtest/"))))
+ (native-inputs (list cmocka python))
+ (inputs (list linux-pam))
+ (home-page "https://cwrap.org/pam_wrapper.html")
+ (synopsis "Tool to test PAM applications and PAM modules")
+ (description
+ "This package provides tools to test your PAM application or module. For
+testing PAM applications, a simple PAM module called @code{pam_matrix} is
+provided. For testing PAM modules, see the @code{pamtest} library. One can
+combine it with the CMocka unit testing framework or use the provided Python
+bindings to write tests for modules in Python.")
+ (license license:bsd-3)))
+
(define-public resolv-wrapper
(package
(name "resolv-wrapper")