From cbab7c1b3c0aa691bf407a7daf168ea790163dde Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Fri, 18 Nov 2022 12:30:50 +0800 Subject: gnu: Add pam-apparmor. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/apparmor.scm (pam-apparmor): New variable. Co-authored-by: Ludovic Courtès --- gnu/packages/apparmor.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/apparmor.scm b/gnu/packages/apparmor.scm index 82c00ebb0e..9b2019d296 100644 --- a/gnu/packages/apparmor.scm +++ b/gnu/packages/apparmor.scm @@ -176,3 +176,24 @@ supported by Canonical since 2009.") (native-inputs (list bison flex gettext-minimal perl python which)) (license license:gpl2)))) + +(define-public pam-apparmor + (let ((base apparmor)) + (package + (inherit base) + (name "pam-apparmor") + (arguments + (append + (list #:tests? #f) ;no tests + (substitute-keyword-arguments (package-arguments base) + ((#:phases phases) + #~(modify-phases #$phases + (delete 'chdir-parser) + (delete 'chdir-utils) + (delete 'chdir-profiles) + (replace 'change-directory + (lambda _ + (chdir "changehat/pam_apparmor")))))))) + (native-inputs (list pkg-config perl which)) + (inputs (list libapparmor linux-pam)) + (license license:bsd-3)))) -- cgit v1.2.3