summaryrefslogtreecommitdiff
path: root/guix/custom-packages
diff options
context:
space:
mode:
Diffstat (limited to 'guix/custom-packages')
-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