From owner-svn-ports-all@freebsd.org Fri Jul 10 01:24:31 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3157B358F; Fri, 10 Jul 2015 01:24:31 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0D84412E2; Fri, 10 Jul 2015 01:24:31 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t6A1OU2n017411; Fri, 10 Jul 2015 01:24:30 GMT (envelope-from hrs@FreeBSD.org) Received: (from hrs@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t6A1OSFA017398; Fri, 10 Jul 2015 01:24:28 GMT (envelope-from hrs@FreeBSD.org) Message-Id: <201507100124.t6A1OSFA017398@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: hrs set sender to hrs@FreeBSD.org using -f From: Hiroki Sato Date: Fri, 10 Jul 2015 01:24:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r391687 - in head/mail: . mailest mailest/files X-SVN-Group: ports-head 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.20 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: Fri, 10 Jul 2015 01:24:31 -0000 Author: hrs Date: Fri Jul 10 01:24:27 2015 New Revision: 391687 URL: https://svnweb.freebsd.org/changeset/ports/391687 Log: Add mail/mailest, hyper estraier search engine backend for mail/mew. Added: head/mail/mailest/ head/mail/mailest/Makefile (contents, props changed) head/mail/mailest/distinfo (contents, props changed) head/mail/mailest/files/ head/mail/mailest/files/patch-mailestd-Makefile (contents, props changed) head/mail/mailest/files/patch-mailestd.c (contents, props changed) head/mail/mailest/pkg-descr (contents, props changed) head/mail/mailest/pkg-message (contents, props changed) head/mail/mailest/pkg-plist (contents, props changed) Modified: head/mail/Makefile Modified: head/mail/Makefile ============================================================================== --- head/mail/Makefile Fri Jul 10 00:31:38 2015 (r391686) +++ head/mail/Makefile Fri Jul 10 01:24:27 2015 (r391687) @@ -215,6 +215,7 @@ SUBDIR += mailagent SUBDIR += maildirsync SUBDIR += maildrop + SUBDIR += mailest SUBDIR += mailfmt SUBDIR += mailfront SUBDIR += mailgraph Added: head/mail/mailest/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/mailest/Makefile Fri Jul 10 01:24:27 2015 (r391687) @@ -0,0 +1,34 @@ +# $FreeBSD$ + +PORTNAME= mailest +PORTVERSION= 0.9.20 +CATEGORIES= mail + +MAINTAINER= hrs@FreeBSD.org +COMMENT= Hyper Estraier backend for Mew + +LICENSE= BSD2CLAUSE ISCL LGPL21 +LICENSE_COMB= multi +LICENSE_FILE_BSD2CLAUSE=${WRKSRC}/LICENSE.BSD2CLAUSE +LICENSE_FILE_ISCL= ${WRKSRC}/LICENSE.ISCL +LICENSE_FILE_LGPL21= ${WRKSRC}/LICENSE.LGPL21 + +LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2 \ + libqdbm.so:${PORTSDIR}/databases/qdbm +RUN_DEPENDS= mewl:${PORTSDIR}/mail/mew \ + estcmd:${PORTSDIR}/textproc/hyperestraier + +USES= iconv +USE_EMACS= yes +USE_GITHUB= yes +GH_ACCOUNT= yasuoka +GH_TAGNAME= ${PORTNAME}-${PORTVERSION} +MAKE_ENV= USE_BSDMAKE=true WITH_INSTALL_AS_USER=true + +post-extract: + ${SED} "/\*-/,/*\//!d" ${WRKSRC}/bytebuf.c > ${LICENSE_FILE_BSD2CLAUSE} + ${SED} "/^\/\*/,/ *\//!d" ${WRKSRC}/mailestctl.c > ${LICENSE_FILE_ISCL} + ${SED} "/^\/\*\*/,/\*\*\//!d" ${WRKSRC}/estdraft.c \ + > ${LICENSE_FILE_LGPL21} + +.include Added: head/mail/mailest/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/mailest/distinfo Fri Jul 10 01:24:27 2015 (r391687) @@ -0,0 +1,2 @@ +SHA256 (yasuoka-mailest-0.9.20-mailest-0.9.20_GH0.tar.gz) = f51cde2047422c993425eee8102e5f7a914094b60a1a039a0b84502e5d22c5f8 +SIZE (yasuoka-mailest-0.9.20-mailest-0.9.20_GH0.tar.gz) = 171958 Added: head/mail/mailest/files/patch-mailestd-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/mailest/files/patch-mailestd-Makefile Fri Jul 10 01:24:27 2015 (r391687) @@ -0,0 +1,29 @@ +--- mailestd/Makefile.orig 2015-05-27 12:18:27.000000000 +0900 ++++ mailestd/Makefile 2015-06-05 16:09:10.228594000 +0900 +@@ -2,9 +2,9 @@ + + PROG= mailestd + SRCS= bytebuf.c mailestd.c mailestctl.c parse.y parser.c +-LINKS= ${BINDIR}/mailestd ${LOCALBASE}/bin/mailestctl ++LINKS= ${BINDIR}/${PROG} ${BINDIR}/mailestctl + CFLAGS+= -DHAVE_LIBESTDRAFT -DMONITOR_KQUEUE +-LIBESTDRAFTOBJ!=cd ${.CURDIR}/../libestdraft; ${MAKE} _whereobj ++LIBESTDRAFTOBJ!=cd ${.CURDIR}/../libestdraft; ${MAKE} -V.OBJDIR + LDFLAGS= -L${LOCALBASE}/lib + LDADD= -lestraier -levent -lqdbm + DPADD= ${LIBESTRAIER} ${LIBEVENT} ${LIBQDBM} +@@ -21,13 +21,7 @@ + DPADD+= ${LIBPTHREAD} + .endif + +-beforeinstall: +- ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ +- ${.CURDIR}/../mew-mailest.sh ${PREFIX}/bin/mew-mailest +- ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ +- ${.CURDIR}/../cmew-mailest.sh ${PREFIX}/bin/cmew-mailest +- ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ +- ${.CURDIR}/../smew-mailest.sh ${PREFIX}/bin/smew-mailest ++SCRIPTS= mew-mailest.sh cmew-mailest.sh smew-mailest.sh + + LDFLAGS+= -L${LIBESTDRAFTOBJ} + LDADD+= -lestdraft Added: head/mail/mailest/files/patch-mailestd.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/mailest/files/patch-mailestd.c Fri Jul 10 01:24:27 2015 (r391687) @@ -0,0 +1,47 @@ +--- mailestd.c.orig 2015-05-27 12:18:27.000000000 +0900 ++++ mailestd.c 2015-06-05 16:21:58.350309000 +0900 +@@ -809,8 +809,6 @@ + + RB_INIT(&folders); + ctx = mailestd_get_gather(_this, task->gather_id); +- mailestd_log(LOG_DEBUG, "Gathering %s ...", mailestd_folder_name( +- _this, folder, buf, sizeof(buf))); + if (folder[0] == '/') + strlcpy(rdir, folder, sizeof(rdir)); + else { +@@ -818,6 +816,8 @@ + strlcat(rdir, "/", sizeof(rdir)); + strlcat(rdir, folder, sizeof(rdir)); + } ++ mailestd_log(LOG_DEBUG, "Gathering %s ...", mailestd_folder_name( ++ _this, rdir, buf, sizeof(buf))); + paths[0] = rdir; + paths[1] = NULL; + lrdir = strlen(rdir); +@@ -853,7 +853,7 @@ + } + + mailestd_log(LOG_DEBUG, "Gathered %s (Total: %d Remove: %d Update: %d)", +- mailestd_folder_name(_this, folder, buf, sizeof(buf)), ++ mailestd_folder_name(_this, rdir, buf, sizeof(buf)), + total, delete, update); + out: + if (ctx != NULL) { +@@ -2638,6 +2638,7 @@ + mailestd_monitor_folder(struct mailestd *_this, const char *dirpath) + { + int fd = -1; ++ char buf[PATH_MAX]; + struct folder *fld, fld0; + + MAILESTD_ASSERT(_thread_self() == _this->monitorworker.thread); +@@ -2659,7 +2660,8 @@ + fld->fd = fd; + fld->path = xstrdup(dirpath); + RB_INSERT(folder_tree, &_this->monitors, fld); +- mailestd_log(LOG_DEBUG, "Start monitoring %s", dirpath); ++ mailestd_log(LOG_DEBUG, "Start monitoring %s", ++ mailestd_folder_name(_this, dirpath, buf, sizeof(buf))); + } + + static void Added: head/mail/mailest/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/mailest/pkg-descr Fri Jul 10 01:24:27 2015 (r391687) @@ -0,0 +1,4 @@ +mailest provides a search backend and id index database for +Mew using Hyper Estraier. + +WWW: https://github.com/yasuoka/mailest Added: head/mail/mailest/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/mailest/pkg-message Fri Jul 10 01:24:27 2015 (r391687) @@ -0,0 +1,29 @@ +------------ +How to start +------------ + ++ For existing `mewest` user, backup and/or delete the database + (`~/Mail/casket`) + + - Since "mailestd" can work with the old database, so OK to skip deleting + `~/Mail/casket`, but remark that `V` will not work against the mails + which are indexed by `mewest`. To make `V` work against them, delete + the database in advance. + ++ Add the below line to `.mew.el` to let Mew use "Hyper Estrairer" for + search. + + ((setq mew-search-method 'est) + ++ Add the below lines to `~/.emacs` use use the "mailest" instead of + existing "mewest". + + (defvar mew-prog-est "mew-mailest") + (defvar mew-prog-est-update "mew-mailest") + (defvar mew-prog-cmew "cmew-mailest") + (defvar mew-prog-smew "smew-mailest") + (defvar mew-id-db-file ".mailest.sock") + ++ Try `km`, `kM`, `k/`, `k?`, `V` in Mew. See + http://mew.org/en/info/release/mew_6.html#dbsearch for search commands + in Mew. Added: head/mail/mailest/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/mailest/pkg-plist Fri Jul 10 01:24:27 2015 (r391687) @@ -0,0 +1,11 @@ +sbin/cmew-mailest +sbin/mailestctl +sbin/mew-mailest +sbin/smew-mailest +sbin/mailestd +man/man1/cmew-mailest.1.gz +man/man1/mailestctl.1.gz +man/man1/mew-mailest.1.gz +man/man1/smew-mailest.1.gz +man/man5/mailestd.conf.5.gz +man/man8/mailestd.8.gz