diff options
author | Alexey Abramov <levenson@mmer.org> | 2024-11-21 12:25:56 +0000 |
---|---|---|
committer | Rodion Goritskov <rodion.goritskov@gmail.com> | 2025-01-16 23:52:35 +0100 |
commit | ac31915c5c4a679cbc43590942e0e3212d504ed8 (patch) | |
tree | 99ad090b4ac55e7b877adea20d5c94a2bb9746ad | |
parent | a42d57a935009e4dd9b9e9464458540def2cb576 (diff) |
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.
-rw-r--r-- | gnu/packages/mail.scm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 3744288fa3..f8d714be63 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -2142,7 +2142,8 @@ facilities for checking incoming mail.") `(#:configure-flags '("--sysconfdir=/etc" "--localstatedir=/var" "--with-sqlite" ; not auto-detected - "--with-lucene") ; not auto-detected + "--with-lucene" + "--with-moduledir=/usr/lib/dovecot") ; not auto-detected ;; The -rdynamic linker flag is needed for the backtrace() function to ;; have symbol names rather than just addresses. Dovecot's tests rely ;; on this, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962630. @@ -2162,9 +2163,12 @@ facilities for checking incoming mail.") "src/lib-smtp/test-bin/sendmail-success.sh") (("cat") (which "cat"))))) (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") |