mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: dovecot: Set moduledir to global directory.
* gnu/packages/mail.scm (dovecot)[arguments]: Add configure-flag to set moduledir. Adjust custom 'install phase to override moduledir so it successfully installs. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
This commit is contained in:
parent
042d7eb114
commit
db0109be42
1 changed files with 6 additions and 1 deletions
|
@ -1453,6 +1453,7 @@ (define-public dovecot
|
|||
(arguments
|
||||
`(#:configure-flags '("--sysconfdir=/etc"
|
||||
"--localstatedir=/var"
|
||||
"--with-moduledir=/etc/dovecot/modules"
|
||||
"--with-sqlite" ; not auto-detected
|
||||
"--with-lucene") ; not auto-detected
|
||||
#:phases
|
||||
|
@ -1471,9 +1472,13 @@ (define-public dovecot
|
|||
(("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")
|
||||
|
|
Loading…
Reference in a new issue