diff options
author | Wojtek Kosior <koszko@koszko.org> | 2023-12-19 19:56:59 +0100 |
---|---|---|
committer | W. Kosior <koszko@koszko.org> | 2024-12-24 09:35:56 +0100 |
commit | 2f4287460512272ad806305ca5e4995dc65335c7 (patch) | |
tree | fdd1650bdfe7b1e7736c2820ee2a15f6ba66d3ae /gnu/packages/mail.scm | |
parent | 72fb35018dcf379219b74d10981c1481ef18a33d (diff) | |
download | guix-2f4287460512272ad806305ca5e4995dc65335c7.tar.gz guix-2f4287460512272ad806305ca5e4995dc65335c7.zip |
gnu: exim: Set `exim` as the default user.
* gnu/packages/mail.scm (exim)[arguments]<#:phases>['configure]: Configure
Exim to resolve uid/gid of `exim` in runtime and prevent install script from
failing.
Change-Id: I2571d6e5a4d4aca534ed6bdfaa3832b1ec69c1d5
Diffstat (limited to 'gnu/packages/mail.scm')
-rw-r--r-- | gnu/packages/mail.scm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 9d752c74bc..daebe7283a 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -2028,7 +2028,7 @@ delivery.") (("(CONFIGURE_FILE=).*" all var) (string-append var out "/etc/exim.conf\n")) (("(EXIM_USER=).*" all var) - (string-append var "nobody\n")) + (string-append var "ref:exim\n")) (("(FIXED_NEVER_USERS=).*" all var) (string-append var "\n")) ; no root in build environment (("(COMPRESS_COMMAND=).*" all var) @@ -2045,6 +2045,13 @@ delivery.") (("# (AUTH_PLAINTEXT=yes)" all line) line) (("# (AUTH_SPA=yes)" all line) line) (("# (AUTH_TLS=yes)" all line) line)) + ;; The installation script calls Exim once to get its + ;; version number. Exim then fails to find the `exim` + ;; user and exits with non-zero status. + (substitute* "scripts/exim_install" + (("(\\$exim 2>/dev/null)" all var) + (string-append + "printf 'Exim version " #$version " #1'"))) ;; This file has hard-coded relative file names for tools ;; despite the zcat configuration above. (substitute* "src/exigrep.src" |