From 8efc7e5cdfd011fcc3d3a3496fc2a7babad5de94 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Thu, 11 Jan 2024 17:30:20 +0100 Subject: 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 --- gnu/packages/mail.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 9797f24f1a..fd2fcd31c2 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -2029,7 +2029,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") -- cgit v1.2.3