[arch-commits] Commit in dovecot-fts-elastic/repos (4 files)

Thore Bödecker foxxx0 at gemini.archlinux.org
Sat Nov 27 15:02:20 UTC 2021


    Date: Saturday, November 27, 2021 @ 15:02:20
  Author: foxxx0
Revision: 1054966

archrelease: copy trunk to community-testing-x86_64

Added:
  dovecot-fts-elastic/repos/community-testing-x86_64/
  dovecot-fts-elastic/repos/community-testing-x86_64/90-fts.conf
    (from rev 1054965, dovecot-fts-elastic/trunk/90-fts.conf)
  dovecot-fts-elastic/repos/community-testing-x86_64/PKGBUILD
    (from rev 1054965, dovecot-fts-elastic/trunk/PKGBUILD)
  dovecot-fts-elastic/repos/community-testing-x86_64/dovecot-fts-elastic.install
    (from rev 1054965, dovecot-fts-elastic/trunk/dovecot-fts-elastic.install)

-----------------------------+
 90-fts.conf                 |   12 ++++++++++
 PKGBUILD                    |   50 ++++++++++++++++++++++++++++++++++++++++++
 dovecot-fts-elastic.install |   12 ++++++++++
 3 files changed, 74 insertions(+)

Copied: dovecot-fts-elastic/repos/community-testing-x86_64/90-fts.conf (from rev 1054965, dovecot-fts-elastic/trunk/90-fts.conf)
===================================================================
--- community-testing-x86_64/90-fts.conf	                        (rev 0)
+++ community-testing-x86_64/90-fts.conf	2021-11-27 15:02:20 UTC (rev 1054966)
@@ -0,0 +1,12 @@
+mail_plugins = $mail_plugins fts fts_elastic
+
+plugin {
+  fts = elastic
+  fts_elastic = debug url=http://localhost:9200/m/ bulk_size=5000000 refresh=fts rawlog_dir=/var/log/fts-elastic/
+
+# no indexes new emails when user make search
+# yes indexes every email when delivered
+  fts_autoindex = no
+fts_autoindex_exclude = \Junk
+fts_autoindex_exclude2 = \Trash
+}

Copied: dovecot-fts-elastic/repos/community-testing-x86_64/PKGBUILD (from rev 1054965, dovecot-fts-elastic/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-11-27 15:02:20 UTC (rev 1054966)
@@ -0,0 +1,50 @@
+# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
+# Contributor: Marcus Hoffmann <bubu at bubu1.eu>
+
+# This must be built against the version of dovecot being used,
+# else mail delivery will fail.
+# Specify the version of dovecot to be used here:
+_dcpkgver=2.3.17
+# Make sure to bump pkgrel if changing this.
+
+pkgname=dovecot-fts-elastic
+_reponame=fts-elastic
+pkgver=1.0.0
+pkgrel=7
+pkgdesc="Dovecot FTS plugin for elasticsearch"
+arch=(x86_64)
+url="https://github.com/filiphanes/fts-elastic"
+license=(MIT)
+depends=("dovecot=${_dcpkgver}" json-c)
+backup=('etc/dovecot/conf.d/90-fts.conf')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
+        "90-fts.conf")
+sha256sums=('00b1f214791a3d8e01eb9916138dc3d9a8978dd1fa6494c5ae5cf5b7902a0fd5'
+            '3442fa7350055c7328bcdf2f666727b9a5d8c942a0bfe93044db344c80ad7e69')
+install=dovecot-fts-elastic.install
+
+build() {
+  cd "${_reponame}-${pkgver}"
+
+  ./autogen.sh
+  ./configure \
+    --prefix=/usr \
+    --with-dovecot=/usr/lib/dovecot
+
+  make
+  make DESTDIR="$(pwd)/build" install
+  sed -i -e 's/LLL/MMM/g' elastic7-schema.json
+}
+
+package() {
+  install -Dm644 90-fts.conf "${pkgdir}/etc/dovecot/conf.d/90-fts.conf"
+
+  cd "${_reponame}-${pkgver}"
+
+  install -Dm644 build/usr/lib/dovecot/lib21_fts_elastic_plugin.so "${pkgdir}/usr/lib/dovecot/modules/lib21_fts_elastic_plugin.so"
+  install -Dm644 elastic7-schema.json "${pkgdir}/usr/share/doc/${pkgname}/elastic7-schema.json"
+  install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+  install -Dm644 COPYING.MIT "${pkgdir}/usr/share/licenses/${pkgname}/COPYING.MIT"
+}
+
+# vim: set tabstop=4:softtabstop=4:shiftwidth=4:noexpandtab

Copied: dovecot-fts-elastic/repos/community-testing-x86_64/dovecot-fts-elastic.install (from rev 1054965, dovecot-fts-elastic/trunk/dovecot-fts-elastic.install)
===================================================================
--- community-testing-x86_64/dovecot-fts-elastic.install	                        (rev 0)
+++ community-testing-x86_64/dovecot-fts-elastic.install	2021-11-27 15:02:20 UTC (rev 1054966)
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+post_install() {
+	cat <<-EOF
+	Make sure elasticsearch is started, then create the index mapping with:
+	
+	curl -X PUT "http://localhost:9200/m?pretty" -H 'Content-Type: application/json' -d "@/usr/share/doc/dovecot-fts-elastic/elastic7-schema.json"
+	
+	Make sure the /etc/dovecot/conf.d/90-fts.conf file is included in you dovecot configuration, then restart dovecot.
+	For more info see: https://github.com/filiphanes/fts-elastic#configuration.
+	EOF
+}



More information about the arch-commits mailing list