[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49969] [PATCH 4/7] gnu: seatd-pam-mount: Add seatd-pam-mount
From: |
muradm |
Subject: |
[bug#49969] [PATCH 4/7] gnu: seatd-pam-mount: Add seatd-pam-mount |
Date: |
Mon, 9 Aug 2021 22:18:00 +0300 |
This package inherits pam-mount in the way that it is compiled
specifically for use with seatd daemon. It uses different
configuration location and name space for storing data in PAM.
seatd-pam-mount is used in configuration of seatd to provide
auto-(mounting/unmounting) of XDG_RUNTIME_DIR in the way that
it will not interfere with default pam-mount configuration.
* gnu/packages/admin.scm (seatd-pam-mount): Add seatd-pam-mount
---
gnu/packages/admin.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index eda269f148..adc5f4d8fd 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,25 @@ 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 seatd-pam-mount
+ (package
+ (inherit pam-mount)
+ (name "seatd-pam-mount")
+ (arguments
+ (substitute-keyword-arguments (package-arguments pam-mount)
+ ((#:configure-flags flags ''())
+ `(cons* "--with-rundir=/run/seatd" ,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/seatd_pam_mount.conf.xml\"\n")
+ (("pam_mount_config") "seatd_pam_mount_config")
+ (("pam_mount_system_authtok")
"seatd_pam_mount_system_authtok"))))))))
+ (synopsis "pam-mount specifically compiled for use with seatd/greetd")))
+
(define-public jc
(package
(name "jc")
--
2.32.0
- [bug#49969] [PATCH 0/7] gnu: desktop: Add seatd-service-type and greetd-service-type, muradm, 2021/08/09
- [bug#49969] [PATCH 3/7] gnu: greetd: Add greetd 0.7.0, muradm, 2021/08/09
- [bug#49969] [PATCH 4/7] gnu: seatd-pam-mount: Add seatd-pam-mount,
muradm <=
- [bug#49969] [PATCH 6/7] gnu: desktop: Add greetd-service-type, muradm, 2021/08/09
- [bug#49969] [PATCH 7/7] doc: Add desktop seatd-service-type and greetd-service-type., muradm, 2021/08/09
- [bug#49969] [PATCH 2/7] gnu: rust-pam-sys: Add rust-pam-sys 0.5.6, muradm, 2021/08/09
- [bug#49969] [PATCH 1/7] gnu: rust-enquote: Add rust-enquote 1.0.3, muradm, 2021/08/09
- [bug#49969] [PATCH 5/7] gnu: desktop: Add seatd-service-type, muradm, 2021/08/09
- [bug#49969] [PATCH v2 0/7] gnu: desktop: Add seatd-service-type and greetd-service-type, muradm, 2021/08/10
- [bug#49969] [PATCH v2 1/7] gnu: crates-io: Add rust-enquote 1.0.3, muradm, 2021/08/10