all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#74873] gnu: Add pam-hooks.
@ 2024-12-14 17:00 ngraves--- via Guix-patches via
  2024-12-23 18:06 ` bug#74873: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: ngraves--- via Guix-patches via @ 2024-12-14 17:00 UTC (permalink / raw)
  To: 74873

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-gnu-Add-pam-hooks.patch --]
[-- Type: text/x-diff; name=0001-gnu-Add-pam-hooks.patch, Size: 1968 bytes --]

From 93fd0cfaab9a0da1c414cc58d19d050c555556bd Mon Sep 17 00:00:00 2001
From: Nicolas Graves <ngraves@ngraves.fr>
Date: Sat, 14 Dec 2024 17:56:44 +0100
Subject: [PATCH] gnu: Add pam-hooks.

* gnu/packages/admin.scm (pam-hooks): Add variable.
---
 gnu/packages/admin.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index b1889ceea0..e187e54e5f 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -3776,6 +3776,35 @@ (define-public interrobang
       (home-page "https://github.com/TrilbyWhite/interrobang")
       (license license:gpl3+))))
 
+(define-public pam-hooks
+  (package
+    (name "pam-hooks")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://upsilon.cc/~zack/hacking/software/"
+                           name "/" name "_" version ".tar.gz"))
+       (sha256
+        (base32 "102azxhvs53akkhgg2dkqg8m0jd6804fx8v7gq7pp03qm3m7bhqi"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:make-flags #~`("CC=gcc"
+                            ,(string-append "DESTDIR=" #$output))
+           #:phases #~(modify-phases %standard-phases
+                        (delete 'configure))
+           ;; There is a test directory, but it's unclear how to run them.
+           #:tests? #f))
+    (inputs (list linux-pam))
+    (home-page "https://upsilon.cc/~zack/hacking/software/pam-hooks/")
+    (synopsis "Linux-PAM module for login/logout hooks")
+    (description "@code{pam-hooks} is a tiny PAM module enabling the
+execution of hook scripts when a PAM session is opened or closed.  The
+typical use case is the need of doing some per-user set-up when a user
+logs via a PAM-aware login mechanism and/or the need of doing some
+per-user clean-up when the user logs out.")
+    (license license:gpl3+)))
+
 (define-public pam-krb5
   (package
     (name "pam-krb5")
-- 
2.46.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#74873: gnu: Add pam-hooks.
  2024-12-14 17:00 [bug#74873] gnu: Add pam-hooks ngraves--- via Guix-patches via
@ 2024-12-23 18:06 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2024-12-23 18:06 UTC (permalink / raw)
  To: ngraves; +Cc: 74873-done

ngraves@ngraves.fr skribis:

> From 93fd0cfaab9a0da1c414cc58d19d050c555556bd Mon Sep 17 00:00:00 2001
> From: Nicolas Graves <ngraves@ngraves.fr>
> Date: Sat, 14 Dec 2024 17:56:44 +0100
> Subject: [PATCH] gnu: Add pam-hooks.
>
> * gnu/packages/admin.scm (pam-hooks): Add variable.

Applied, thanks!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-23 18:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-14 17:00 [bug#74873] gnu: Add pam-hooks ngraves--- via Guix-patches via
2024-12-23 18:06 ` bug#74873: " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.