taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit b8713c9c7b79ecd2af6d273fe182a8d0de798a6a
parent 2883e1786a55096c5fe95e4c1a9843419f03f249
Author: Florian Dold <florian.dold@gmail.com>
Date:   Thu, 10 Jan 2019 21:06:52 +0100

comments

Diffstat:
Mguix/custom-packages/postfix.scm | 12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/guix/custom-packages/postfix.scm b/guix/custom-packages/postfix.scm @@ -35,10 +35,11 @@ ("lmdb" ,lmdb))) (build-system gnu-build-system) (arguments - `(#:tests? #f + `(#:tests? #f ; Postfix does not come with any tests. #:phases (modify-phases %standard-phases (replace 'configure + ;; Postfix does not have a standard "./configure". (lambda* (#:key outputs inputs configure-flags #:allow-other-keys) (define (dir-setting name dir) (string-append name "=" (assoc-ref outputs "out") dir)) @@ -87,6 +88,8 @@ "AUXLIBS_PGSQL=-lpq" "AUXLIBS_SQLITE=-lsqlite3 -lpthread"))) (replace 'install + ;; Postfix's "make install" is interactive, we work around this + ;; by directly calling postfix-install with the right arguments. (lambda* (#:key outputs inputs configure-flags #:allow-other-keys) (substitute* "postfix-install" (("^SHELL=/bin/sh$") "SHELL=sh") @@ -107,10 +110,13 @@ "-non-interactive" "-package"))) (add-after 'install 'patch-master-cf + ;; Make sure that the default main.cf does not contain wrong/confusing + ;; paths. (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.") + "# Note for Guix: This parameter should usually not be +# changed, as the compiled-in default in the postfix +# binaries already points to the Guix store.") (substitute* (string-append (assoc-ref outputs "out") "/etc/postfix/main.cf")