summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHilton Chain <hako@ultrarare.space>2022-11-18 12:30:50 +0800
committerLudovic Courtès <ludo@gnu.org>2022-12-04 23:08:20 +0100
commitcbab7c1b3c0aa691bf407a7daf168ea790163dde (patch)
treebbd70e58d047ba001381aee9290e8a33dae799ca
parentcb01e0a272cdeb5e4cf27c1f336ebae0550b02d3 (diff)
gnu: Add pam-apparmor.
* gnu/packages/apparmor.scm (pam-apparmor): New variable. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--gnu/packages/apparmor.scm21
1 files changed, 21 insertions, 0 deletions
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))))