[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49969] [PATCH v3 04/10] gnu: admin: Add greetd-pam-mount
From: |
muradm |
Subject: |
[bug#49969] [PATCH v3 04/10] gnu: admin: Add greetd-pam-mount |
Date: |
Fri, 13 Aug 2021 01:04:14 +0300 |
* gnu/packages/admin.scm (greetd-pam-mount): Add greetd-pam-mount
---
gnu/packages/admin.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index eda269f148..e5ed1785d8 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -42,6 +42,7 @@
;;; Copyright © 2021 David Larsson <david.larsson@selfhosted.xyz>
;;; Copyright © 2021 WinterHound <winterhound@yandex.com>
;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
+;;; Copyright © 2021 muradm <mail@muradm.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -4247,6 +4248,38 @@ supports. It can also mount encrypted LUKS volumes
using the password
supplied by the user when logging in.")
(license (list license:gpl2+ license:lgpl2.1+))))
+(define-public greetd-pam-mount
+ (package
+ (inherit pam-mount)
+ (name "greetd-pam-mount")
+ (arguments
+ (substitute-keyword-arguments (package-arguments pam-mount)
+ ((#:configure-flags flags ''())
+ `(cons* "--with-rundir=/run/greetd" ,flags))
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'patch-config-file-name
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "src/pam_mount.c"
+ ((".*define CONFIGFILE .*$")
+ "#define CONFIGFILE
\"/etc/security/greetd_pam_mount.conf.xml\"\n")
+ (("pam_mount_config") "greetd_pam_mount_config")
+ (("pam_mount_system_authtok")
"greetd_pam_mount_system_authtok"))))))))
+ (synopsis "pam-mount specifically compiled for use with greetd")
+ (description
+ "Pam-mount is a PAM module that can mount volumes when a user logs in.
+It supports mounting local filesystems of any kind the normal mount utility
+supports. It can also mount encrypted LUKS volumes using the password
+supplied by the user when logging in.
+
+This package inherits pam-mount in the way that it is compiled specifically
+for use with greetd daemon. It uses different configuration location and
+name space for storing data in PAM.
+
+greetd-pam-mount is used in configuration of greetd to provide
+auto-(mounting/unmounting) of XDG_RUNTIME_DIR in the way that it will not
+interfere with default pam-mount configuration.")))
+
(define-public jc
(package
(name "jc")
--
2.32.0
- [bug#49969] [PATCH v5 02/10] gnu: crates-io: Add rust-pam-sys 0.5.6, (continued)
- [bug#49969] [PATCH v5 02/10] gnu: crates-io: Add rust-pam-sys 0.5.6, muradm, 2021/08/22
- [bug#49969] [PATCH v5 04/10] gnu: admin: Add greetd-pam-mount, muradm, 2021/08/22
- [bug#49969] [PATCH v5 05/10] gnu: desktop: Add seatd-service-type, muradm, 2021/08/22
- [bug#49969] [PATCH v5 01/10] gnu: crates-io: Add rust-enquote 1.0.3, muradm, 2021/08/22
- [bug#49969] [PATCH v5 03/10] gnu: freedesktop: Add greetd 0.7.0, muradm, 2021/08/22
- [bug#49969] [PATCH v5 06/10] gnu: desktop: Add greetd-service-type, muradm, 2021/08/22
- [bug#49969] [PATCH v5 08/10] gnu: pam-mount: Add greetd to applied PAM services, muradm, 2021/08/22
- [bug#49969] [PATCH v5 09/10] gnu: tests: Add seatd/greetd based minimal desktop system tests, muradm, 2021/08/22
- [bug#49969] [PATCH v5 07/10] gnu: base: Add greetd to applied PAM services, muradm, 2021/08/22
- [bug#49969] [PATCH v5 10/10] doc: Add desktop seatd-service-type and greetd-service-type, muradm, 2021/08/22
- [bug#49969] [PATCH v3 04/10] gnu: admin: Add greetd-pam-mount,
muradm <=
- [bug#49969] [PATCH v3 07/10] gnu: base: Add greetd to applied PAM services, muradm, 2021/08/12
- [bug#49969] [PATCH v3 06/10] gnu: desktop: Add greetd-service-type, muradm, 2021/08/12
- [bug#49969] [PATCH v3 10/10] doc: Add desktop seatd-service-type and greetd-service-type, muradm, 2021/08/12
- [bug#49969] [PATCH 03/10] gnu: freedesktop: Add greetd 0.7.0, muradm, 2021/08/12
- [bug#49969] [PATCH v3 05/10] gnu: desktop: Add seatd-service-type, muradm, 2021/08/12
- [bug#49969] [PATCH v3 09/10] gnu: tests: Add seatd/greetd based minimal desktop system tests, muradm, 2021/08/12
- [bug#49969] [PATCH v3 03/10] gnu: freedesktop: Add greetd 0.7.0, muradm, 2021/08/13