guix-commits
[Top][All Lists]
Advanced

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

04/10: gnu: Add pam-apparmor.


From: guix-commits
Subject: 04/10: gnu: Add pam-apparmor.
Date: Sun, 4 Dec 2022 17:13:00 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit cbab7c1b3c0aa691bf407a7daf168ea790163dde
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Fri Nov 18 12:30:50 2022 +0800

    gnu: Add pam-apparmor.
    
    * gnu/packages/apparmor.scm (pam-apparmor): New variable.
    
    Co-authored-by: Ludovic Court├Ęs <ludo@gnu.org>
---
 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))))



reply via email to

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