Subject: [bug#59336] [PATCH 6/6] gnu: Add pam-apparmor.

From: Hilton Chain <[email-masked]>
Date: Fri, 18 Nov 2022 00:33:10 +0800

* gnu/packages/apparmor.scm (pam-apparmor): New variable.
---
 gnu/packages/apparmor.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/apparmor.scm b/gnu/packages/apparmor.scm
index 573666c27f..85f3e9c6ae 100644
--- a/gnu/packages/apparmor.scm
+++ b/gnu/packages/apparmor.scm
@@ -199,3 +199,21 @@ (define-public apparmor-profiles
                    (chdir "profiles"))))))))
       (native-inputs (list which))
       (inputs '()))))
+
+(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
+               (replace 'change-directory
+                 (lambda _
+                   (chdir "changehat/pam_apparmor"))))))))
+      (native-inputs (list pkg-config which))
+      (inputs (list libapparmor linux-pam))
+      (license license:bsd-3))))
-- 
2.38.1