[arch-commits] Commit in dovecot-fts-elastic/repos/community-x86_64 (6 files)
Justin Kromlinger
hashworks at gemini.archlinux.org
Tue Feb 8 08:28:53 UTC 2022
Date: Tuesday, February 8, 2022 @ 08:28:53
Author: hashworks
Revision: 1129008
archrelease: copy trunk to community-x86_64
Added:
dovecot-fts-elastic/repos/community-x86_64/90-fts.conf
(from rev 1129007, dovecot-fts-elastic/trunk/90-fts.conf)
dovecot-fts-elastic/repos/community-x86_64/PKGBUILD
(from rev 1129007, dovecot-fts-elastic/trunk/PKGBUILD)
dovecot-fts-elastic/repos/community-x86_64/dovecot-fts-elastic.install
(from rev 1129007, dovecot-fts-elastic/trunk/dovecot-fts-elastic.install)
Deleted:
dovecot-fts-elastic/repos/community-x86_64/90-fts.conf
dovecot-fts-elastic/repos/community-x86_64/PKGBUILD
dovecot-fts-elastic/repos/community-x86_64/dovecot-fts-elastic.install
-----------------------------+
90-fts.conf | 24 ++++-----
PKGBUILD | 107 ++++++++++++++++++++++--------------------
dovecot-fts-elastic.install | 24 ++++-----
3 files changed, 81 insertions(+), 74 deletions(-)
Deleted: 90-fts.conf
===================================================================
--- 90-fts.conf 2022-02-08 08:28:49 UTC (rev 1129007)
+++ 90-fts.conf 2022-02-08 08:28:53 UTC (rev 1129008)
@@ -1,12 +0,0 @@
-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-x86_64/90-fts.conf (from rev 1129007, dovecot-fts-elastic/trunk/90-fts.conf)
===================================================================
--- 90-fts.conf (rev 0)
+++ 90-fts.conf 2022-02-08 08:28:53 UTC (rev 1129008)
@@ -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
+}
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-08 08:28:49 UTC (rev 1129007)
+++ PKGBUILD 2022-02-08 08:28:53 UTC (rev 1129008)
@@ -1,50 +0,0 @@
-# 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.1
-# Make sure to bump pkgrel if changing this.
-
-pkgname=dovecot-fts-elastic
-_reponame=fts-elastic
-pkgver=1.0.0
-pkgrel=8
-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-x86_64/PKGBUILD (from rev 1129007, dovecot-fts-elastic/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-02-08 08:28:53 UTC (rev 1129008)
@@ -0,0 +1,57 @@
+# 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.18
+# Make sure to bump pkgrel if changing this.
+
+pkgname=dovecot-fts-elastic
+_reponame=fts-elastic
+pkgver=1.0.0
+pkgrel=9
+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
+
+prepare() {
+ cd "${_reponame}-${pkgver}"
+
+ # https://github.com/filiphanes/fts-elastic/pull/23
+ sed -i 's/DOVECOT_PREREQ(2,3)/DOVECOT_PREREQ(2,3,0)/g' src/elastic-connection.c src/fts-backend-elastic.c src/fts-backend-elastic.c src/fts-elastic-plugin.h
+}
+
+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
Deleted: dovecot-fts-elastic.install
===================================================================
--- dovecot-fts-elastic.install 2022-02-08 08:28:49 UTC (rev 1129007)
+++ dovecot-fts-elastic.install 2022-02-08 08:28:53 UTC (rev 1129008)
@@ -1,12 +0,0 @@
-#!/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
-}
Copied: dovecot-fts-elastic/repos/community-x86_64/dovecot-fts-elastic.install (from rev 1129007, dovecot-fts-elastic/trunk/dovecot-fts-elastic.install)
===================================================================
--- dovecot-fts-elastic.install (rev 0)
+++ dovecot-fts-elastic.install 2022-02-08 08:28:53 UTC (rev 1129008)
@@ -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