mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 00:08:58 -04:00
previous version (1.2) from xapian has been deleted for 2 years from portage. disable hardening by default which adds uncommon CFLAGS Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
49 lines
1.1 KiB
Bash
49 lines
1.1 KiB
Bash
# Copyright 2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools
|
|
|
|
DESCRIPTION="Dovecot FTS plugin to enable message indexing using Xapian"
|
|
HOMEPAGE="https://github.com/slusarz/dovecot-fts-flatcurve"
|
|
SRC_URI="https://github.com/slusarz/dovecot-fts-flatcurve/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="LGPL-2.1"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
IUSE="textcat"
|
|
|
|
DEPEND="
|
|
<net-mail/dovecot-2.4.0:=[stemmer,textcat?]
|
|
dev-libs/xapian:=
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_prepare() {
|
|
default
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
econf \
|
|
--enable-hardening=no \
|
|
--with-dovecot="${EPREFIX}/usr/$(get_libdir)/dovecot"
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
find "${D}" -name "*.la" -delete
|
|
|
|
dodoc "${FILESDIR}/90-fts.conf"
|
|
}
|
|
|
|
pkg_postinst() {
|
|
elog "For configuration, report to https://slusarz.github.io/dovecot-fts-flatcurve/configuration.html"
|
|
elog "The steps are as follows : "
|
|
elog "Insert 'mail_plugins = $mail_plugins fts fts_flatcurve' in /etc/dovecot/conf.d/10-mail.conf"
|
|
elog "Set configuration in /etc/dovecot/conf.d/90-fts.conf"
|
|
elog "See example : /usr/share/doc/${P}/90-fts.conf.bz2"
|
|
}
|