summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-01-10 20:52:09 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-01-10 20:52:09 +0100
commit5cde98176edca195f99365ec9da1a130fc5b559f (patch)
tree061a3c53f75a09b778c369fb64a6322b545f2f50
parent1da7a6960f250097801b0c82bcf080e56faf2c75 (diff)
downloaddeployment-5cde98176edca195f99365ec9da1a130fc5b559f.tar.gz
deployment-5cde98176edca195f99365ec9da1a130fc5b559f.tar.bz2
deployment-5cde98176edca195f99365ec9da1a130fc5b559f.zip
fix config
-rw-r--r--guix/custom-packages/postfix.scm11
1 files changed, 9 insertions, 2 deletions
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