diff options
author | Wojtek Kosior <koszko@koszko.org> | 2024-01-11 17:30:20 +0100 |
---|---|---|
committer | W. Kosior <koszko@koszko.org> | 2025-02-06 16:38:33 +0100 |
commit | f8411078170884662572cfb71d72a7876e3568aa (patch) | |
tree | 4c54883b36f05793705817c9e13c14ede85b8f4b | |
parent | 3c3a12e1ef6b76a324fd56cd3286af1246bdd675 (diff) | |
download | guix-f8411078170884662572cfb71d72a7876e3568aa.tar.gz guix-f8411078170884662572cfb71d72a7876e3568aa.zip |
gnu: exim: Use /etc/exim.conf as the default config file.
* gnu/packages/mail.scm (exim)[arguments]<#:phases>['symlink-config-file]: New
phase.
Change-Id: I1be49e4a042b42e38ebff8aeff0e9cfc8724456b
-rw-r--r-- | gnu/packages/mail.scm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 8f403f54f1..2b7a7f1488 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -2082,7 +2082,13 @@ delivery.") ;; same source tree and varies across different (parallel?) ;; builds. Make it a ‘constant number’ instead. (substitute* "src/version.c" - (("#include \"cnumber.h\"") "1"))))) + (("#include \"cnumber.h\"") "1")))) + (add-after 'install 'symlink-config-file + (lambda _ + (let ((config-path (string-append #$output + "/etc/exim.conf"))) + (delete-file config-path) + (symlink "/etc/exim.conf" config-path))))) #:make-flags #~(list (string-append "CC=" #$(cc-for-target)) "INSTALL_ARG=-no_chown") |