[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#42899] [PATCH v3 1/9] gnu: dovecot: Set moduledir to global directo
From: |
Alexey Abramov |
Subject: |
[bug#42899] [PATCH v3 1/9] gnu: dovecot: Set moduledir to global directory. |
Date: |
Thu, 27 Aug 2020 17:17:35 +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 81dc5b8eec..c22dd27547 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -1444,7 +1444,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=/etc/dovecot/modules")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-file-names
@@ -1461,9 +1462,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 v2 08/10] services: dovecot: Add 'imap-metadata?' protocol configuration option., (continued)
[bug#42899] [PATCH v2 01/10] gnu: dovecot: Add lucene library to support fts indexing., Efraim Flashner, 2020/08/23
[bug#42899] [PATCH 00/10] Dovecot improvements. Add support for pigeonhole., Efraim Flashner, 2020/08/23
[bug#42899] [PATCH v3 1/9] gnu: dovecot: Set moduledir to global directory.,
Alexey Abramov <=
- [bug#42899] [PATCH v3 3/9] gnu: dovecot-pigeonhole: Add new variable., Alexey Abramov, 2020/08/27
- [bug#42899] [PATCH v3 7/9] services: dovecot: Add 'imap-metadata?' protocol configuration option., Alexey Abramov, 2020/08/27
- [bug#42899] [PATCH v3 2/9] services: dovecot: Use modules via symlink to system profile., Alexey Abramov, 2020/08/27
- [bug#42899] [PATCH v3 9/9] services: dovecot: Add 'managesieve-sieve-capability' option., Alexey Abramov, 2020/08/27
- [bug#42899] [PATCH v3 5/9] services: dovecot: Only serialize settings with non-empty values., Alexey Abramov, 2020/08/27
- [bug#42899] [PATCH v3 6/9] services: dovecot: Add 'mail-attribute-dict' configuration option., Alexey Abramov, 2020/08/27
- [bug#42899] [PATCH v3 4/9] services: dovecot: Serialize global settings first., Alexey Abramov, 2020/08/27
- [bug#42899] [PATCH v3 8/9] services: dovecot: Add 'managesieve-notify-capability' option., Alexey Abramov, 2020/08/27