Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2019 14:32:13 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r511884 - in head/mail: . dovecot-fts-xapian dovecot-fts-xapian/files
Message-ID:  <201909121432.x8CEWDge063334@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Sep 12 14:32:12 2019
New Revision: 511884
URL: https://svnweb.freebsd.org/changeset/ports/511884

Log:
  New port: dovecot-fts-xapian
  
  This project intends to provide a straightforward and simple way to configure
  FTS plugin for Dovecot, leveraging the efforts by the Xapian.org team.
  
  This effort came after Dovecot team decided to deprecate "fts_squat" included in
  the dovecot core, and due to the complexity of the Solr plugin capabilitles,
  un-needed for most users.
  
  WWW: https://github.com/grosjo/fts-xapian

Added:
  head/mail/dovecot-fts-xapian/
  head/mail/dovecot-fts-xapian/Makefile   (contents, props changed)
  head/mail/dovecot-fts-xapian/distinfo   (contents, props changed)
  head/mail/dovecot-fts-xapian/files/
  head/mail/dovecot-fts-xapian/files/patch-src_fts-backend-xapian.cpp   (contents, props changed)
  head/mail/dovecot-fts-xapian/pkg-descr   (contents, props changed)
Modified:
  head/mail/Makefile

Modified: head/mail/Makefile
==============================================================================
--- head/mail/Makefile	Thu Sep 12 13:50:55 2019	(r511883)
+++ head/mail/Makefile	Thu Sep 12 14:32:12 2019	(r511884)
@@ -98,6 +98,7 @@
     SUBDIR += dma
     SUBDIR += dot-forward
     SUBDIR += dovecot
+    SUBDIR += dovecot-fts-xapian
     SUBDIR += dovecot-pigeonhole
     SUBDIR += dspam
     SUBDIR += ecartis

Added: head/mail/dovecot-fts-xapian/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/dovecot-fts-xapian/Makefile	Thu Sep 12 14:32:12 2019	(r511884)
@@ -0,0 +1,34 @@
+# $FreeBSD$
+
+PORTNAME=	fts-xapian
+PORTVERSION=	1.2.1
+CATEGORIES=	mail
+PKGNAMEPREFIX=	dovecot-
+
+MAINTAINER=	bapt@FreeBSD.org
+COMMENT=	Dovecot FTS plugin based on Xapian
+
+LICENSE=	LGPL21
+
+LIB_DEPENDS=	libxapian.so:databases/xapian-core \
+		libicuuc.so:devel/icu
+BUILD_DEPENDS=	dovecot>=2.3.7:mail/dovecot
+RUN_DEPENDS=	dovecot>=2.3.7:mail/dovecot
+
+USES=		autoreconf libtool pkgconfig
+
+USE_LDCONFIG=	yes
+
+USE_GITHUB=yes
+GH_ACCOUNT=	grosjo
+GH_TAGNAME=	${PORTNAME}-${PORTVERSION}
+
+GNU_CONFIGURE=	yes
+
+PLIST_FILES=	lib/dovecot/lib21_fts_xapian_plugin.a \
+		lib/dovecot/lib21_fts_xapian_plugin.so
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/dovecot/lib21_fts_xapian_plugin.so
+
+.include <bsd.port.mk>

Added: head/mail/dovecot-fts-xapian/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/dovecot-fts-xapian/distinfo	Thu Sep 12 14:32:12 2019	(r511884)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1568284001
+SHA256 (grosjo-fts-xapian-1.2.1-fts-xapian-1.2.1_GH0.tar.gz) = 9c8dbaa3ddf5f489356a3ec40af012c02aaa6af7ae513ade5b208d3d19771277
+SIZE (grosjo-fts-xapian-1.2.1-fts-xapian-1.2.1_GH0.tar.gz) = 27267

Added: head/mail/dovecot-fts-xapian/files/patch-src_fts-backend-xapian.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/dovecot-fts-xapian/files/patch-src_fts-backend-xapian.cpp	Thu Sep 12 14:32:12 2019	(r511884)
@@ -0,0 +1,13 @@
+--- src/fts-backend-xapian.cpp.orig	2019-08-18 16:36:45 UTC
++++ src/fts-backend-xapian.cpp
+@@ -115,9 +115,7 @@ static int fts_backend_xapian_init(struct fts_backend 
+     	}
+ 
+ 	const char * path = mailbox_list_get_root_forced(_backend->ns->list, MAILBOX_LIST_PATH_TYPE_INDEX);
+-	long l=strlen(path)+strlen(XAPIAN_FILE_PREFIX)+2;
+-	backend->path = (char *)i_malloc(l*sizeof(char));
+-	snprintf(backend->path,l,"%s/%s",path,XAPIAN_FILE_PREFIX);
++	backend->path = i_strconcat(path, "/" XAPIAN_FILE_PREFIX, NULL);
+ 
+ 	struct stat sb;
+ 	if(!( (stat(backend->path, &sb)==0) && S_ISDIR(sb.st_mode)))

Added: head/mail/dovecot-fts-xapian/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/dovecot-fts-xapian/pkg-descr	Thu Sep 12 14:32:12 2019	(r511884)
@@ -0,0 +1,8 @@
+This project intends to provide a straightforward and simple way to configure
+FTS plugin for Dovecot, leveraging the efforts by the Xapian.org team.
+
+This effort came after Dovecot team decided to deprecate "fts_squat" included in
+the dovecot core, and due to the complexity of the Solr plugin capabilitles,
+un-needed for most users.
+
+WWW: https://github.com/grosjo/fts-xapian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909121432.x8CEWDge063334>