From b8713c9c7b79ecd2af6d273fe182a8d0de798a6a Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 10 Jan 2019 21:06:52 +0100 Subject: comments --- guix/custom-packages/postfix.scm | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'guix/custom-packages') diff --git a/guix/custom-packages/postfix.scm b/guix/custom-packages/postfix.scm index 3451b22..9927145 100644 --- 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") -- cgit v1.2.3