From 5cde98176edca195f99365ec9da1a130fc5b559f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 10 Jan 2019 20:52:09 +0100 Subject: fix config --- guix/custom-packages/postfix.scm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'guix') diff --git a/guix/custom-packages/postfix.scm b/guix/custom-packages/postfix.scm index bb91dc3..3e442be 100644 --- a/guix/custom-packages/postfix.scm +++ b/guix/custom-packages/postfix.scm @@ -48,7 +48,7 @@ (string-append "SHELL=" (which "sh")) (dir-setting "daemon_directory" "/libexec/postfix") (dir-setting "shlib_directory" "/lib/postfix") - (dir-setting "command_directory" "/lib/sbin") + (dir-setting "command_directory" "/sbin") (dir-setting "manpage_directory" "/share/man") (dir-setting "newaliases_path" "/bin/newaliases") (dir-setting "mailq_path" "/bin/mailq") @@ -105,7 +105,14 @@ "sendmail_path=/sbin/sendmail" "shlib_directory=/lib/postfix" "-non-interactive" - "-package")))))) + "-package"))) + (add-after 'install 'patch-master-cf + (lambda* (#:key outputs inputs configure-flags #:allow-other-keys) + (define comment + "# Guix: This value should usually not be changed, as the +# compiled-in default value correctly points to the Guix store already.") + (substitute* "postfix-install" + (("^daemon_directory=" m) (string-append comment "\n#" m)))))))) (synopsis "High-performance mail transport agent") (description "Postfix is Wietse Venema's mail transport agent that started -- cgit v1.2.3