[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#42899] [PATCH v5 1/6] gnu: dovecot: Set moduledir to global directo
From: |
Alexey Abramov |
Subject: |
[bug#42899] [PATCH v5 1/6] gnu: dovecot: Set moduledir to global directory. |
Date: |
Tue, 20 Oct 2020 17:06:50 +0200 |
From: Efraim Flashner <efraim@flashner.co.il>
* gnu/packages/mail.scm (dovecot)[arguments]: Add configure-flag to set
moduledir. Adjust custom 'install phase to override moduledir so it
successfully installs.
---
gnu/packages/mail.scm | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 5056098806..ea53787ce0 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -1579,7 +1579,8 @@ facilities for checking incoming mail.")
`(#:configure-flags '("--sysconfdir=/etc"
"--localstatedir=/var"
"--with-sqlite" ; not auto-detected
- "--with-lucene") ; not auto-detected
+ "--with-lucene" ; not auto-detected
+ "--with-moduledir=/usr/lib/dovecot")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-file-names
@@ -1596,9 +1597,13 @@ facilities for checking incoming mail.")
(("cat") (which "cat")))
#t))
(replace 'install
- (lambda* (#:key make-flags #:allow-other-keys)
+ (lambda* (#:key outputs make-flags #:allow-other-keys)
+ ;; The .la files don't like having the moduledir moved.
+ (for-each delete-file (find-files "." "\\.la"))
;; Simple hack to avoid installing a trivial README in /etc.
(apply invoke "make" "install" "sysconfdir=/tmp/bogus"
+ (string-append "moduledir=" (assoc-ref outputs "out")
+ "/lib/dovecot")
make-flags))))))
(home-page "https://www.dovecot.org")
(synopsis "Secure POP3/IMAP server")
--
2.28.0
- [bug#42899] [PATCH v5 0/6] Dovecot improvements, Alexey Abramov, 2020/10/20
- [bug#42899] [PATCH v5 2/6] services: dovecot: Provide plugins through a /gnu/store directory., Alexey Abramov, 2020/10/20
- [bug#42899] [PATCH v5 6/6] services: dovecot: Add 'managesieve-sieve-capability' option., Alexey Abramov, 2020/10/20
- [bug#42899] [PATCH v5 4/6] services: dovecot: Add 'imap-metadata?' protocol configuration option., Alexey Abramov, 2020/10/20
- [bug#42899] [PATCH v5 3/6] services: dovecot: Add 'mail-attribute-dict' configuration option., Alexey Abramov, 2020/10/20
- [bug#42899] [PATCH v5 5/6] services: dovecot: Add 'managesieve-notify-capability' option., Alexey Abramov, 2020/10/20
- [bug#42899] [PATCH v5 1/6] gnu: dovecot: Set moduledir to global directory.,
Alexey Abramov <=