From owner-svn-ports-all@freebsd.org Thu Sep 12 14:32:14 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6A9B9F7A14; Thu, 12 Sep 2019 14:32:14 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Th722H6Xz4KjR; Thu, 12 Sep 2019 14:32:14 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 317912022F; Thu, 12 Sep 2019 14:32:14 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x8CEWEKg063339; Thu, 12 Sep 2019 14:32:14 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x8CEWDge063334; Thu, 12 Sep 2019 14:32:13 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201909121432.x8CEWDge063334@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Thu, 12 Sep 2019 14:32:13 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: bapt X-SVN-Commit-Paths: in head/mail: . dovecot-fts-xapian dovecot-fts-xapian/files X-SVN-Commit-Revision: 511884 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Sep 2019 14:32:14 -0000 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 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