Date: Wednesday, January 13, 2021 @ 19:08:22 Author: hashworks Revision: 820704
upgpkg: dovecot-fts-elastic 1.0.0-2: Move elastic schema to package doc folder Modified: dovecot-fts-elastic/trunk/PKGBUILD dovecot-fts-elastic/trunk/dovecot-fts-elastic.install -----------------------------+ PKGBUILD | 7 +++---- dovecot-fts-elastic.install | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-01-13 19:04:00 UTC (rev 820703) +++ PKGBUILD 2021-01-13 19:08:22 UTC (rev 820704) @@ -4,7 +4,7 @@ pkgname=dovecot-fts-elastic _reponame=fts-elastic pkgver=1.0.0 -pkgrel=1 +pkgrel=2 pkgdesc="Dovecot FTS plugin for elasticsearch" arch=(x86_64) url="https://github.com/filiphanes/fts-elastic" @@ -27,6 +27,7 @@ make make DESTDIR="$(pwd)/build" install + sed -i -e 's/LLL/MMM/g' elastic7-schema.json } package() { @@ -35,11 +36,9 @@ 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/dovecot/elastic7-schema.json" + 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" - - sed -i -e 's/LLL/MMM/g' "${pkgdir}/usr/share/doc/dovecot/elastic7-schema.json" } # vim: set tabstop=4:softtabstop=4:shiftwidth=4:noexpandtab Modified: dovecot-fts-elastic.install =================================================================== --- dovecot-fts-elastic.install 2021-01-13 19:04:00 UTC (rev 820703) +++ dovecot-fts-elastic.install 2021-01-13 19:08:22 UTC (rev 820704) @@ -4,7 +4,7 @@ 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/elastic7-schema.json" + 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.
