Created attachment 231598 [details] initial port fts-lucene plugin for dovecot is deprecated and apart from fts-xapian, there is another xapian based fts plugin out there, fts-flatcurve, by Michael M Slusarz. Based on the fts-xapian port, I have created this one. It builds and works for me. Hope it is useful for others.
still needs qa and the Makefile needs cleaning up - I get portlint warnings.
Created attachment 231605 [details] initial port fixed Makefile to include doveadm plugin files
Created attachment 231607 [details] initial port fixed ordering. Aside: I tried to follow https://docs.freebsd.org/en/books/porters-handbook/order/ But portlint still says: WARN: Makefile: "LIB_DEPENDS" has to appear earlier. WARN: Makefile: "RUN_DEPENDS" has to appear earlier. WARN: Makefile: "USES" has to appear earlier. If anyone can let me know how I need to place things so that portlint is happy? :-)
Created attachment 231609 [details] initial port Added fts-flatcurve-config.h to PLIST_FILES Now poudriere testport worked without complaining. Except for the portlint warnings, everything seems fine.
From my point of view this is good to go. QA: - portlint: OK (3 warnings about *_DEPENDS ordering in Makefile) - testport: (poudriere: 13-0-RELEASE, amd64, defaults)
Created attachment 231610 [details] initial port I had taken dovecot-fts-xapian as a skeleton to create this port, but I forgot to change pkg-descr. Now fixed.
(In reply to Martin Waschbüsch from comment #6) Can you try to use portclippy and portfmt and see how things changes for the errors?
One more thing is remove the blanks in between *_DEPENDS.
(In reply to Muhammad Moinur Rahman from comment #8) That was it! Thank you. Am I right in assuming that the blank lines constitute the section boundaries?
(In reply to Martin Waschbüsch from comment #9) Yes. Some sort of. If you run portclippy for the lints you can get a better idea out of it. One more thing is it's better to share git diffs rather than shar files. As you are adding a new port we also have to add a line in the CATEGORY Makefile which cannot be done with shar files. We used to use shar files a lot in previous but with git diffs it's much more easier for a committer to work on.
Created attachment 231612 [details] initial port Replaced shar with git diff
Build log for poudriere testport can be found here: https://dev.waschbuesch.it/data/13-0-default/2022-02-07_16h29m53s/logs/dovecot-fts-flatcurve-0.2.0.log
(In reply to Martin Waschbüsch from comment #12) When you are adding a new port that needs to be added in the <CATEGORY>/Makefile. Look at mail/Makefile in your portstree. You will get to know what to add. Update the patch accordingly.
(In reply to Martin Waschbüsch from comment #12) I am getting Forbidden 403 here. Let me know if you need anything with nginx config for the poudriere. Most probably your webserver is misconfigured.
(In reply to Muhammad Moinur Rahman from comment #14) No, worked as intended. I limited the access to the boxes that download pkgs from it. I just did not remember I did that and of course it would not happen to me being whitelisted, duh! No reason to block the website and logs, though, so I opened those up. Please try again! :-)
(In reply to Martin Waschbüsch from comment #15) LGTM. Update the patch as mentioned in comment #13. I will have a look at it tomorrow.
Created attachment 231613 [details] initial port fixed patch and included mail/Makefile change to accommodate new port.
(In reply to Muhammad Moinur Rahman from comment #16) Done. Thanks a lot!! :-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=f0507682f64e01c9ef4c43de11b56c41f0475cf5 commit f0507682f64e01c9ef4c43de11b56c41f0475cf5 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2022-02-08 18:34:40 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2022-02-08 18:35:31 +0000 mail/dovecot-fts-flatcurve: NEW Port This is a Dovecot FTS plugin to enable message indexing using the Xapian Open Source Search Engine Library. The plugin relies on Dovecot to do the necessary stemming. It is intended to act as a simple interface to the Xapian storage/search query functionality. This driver supports match scoring and substring matches (on by default), which means it is RFC 3501 (IMAP4rev1) compliant. This driver does not support fuzzy searches. WWW: https://github.com/slusarz/dovecot-fts-flatcurve PR: 261766 mail/Makefile | 1 + mail/dovecot-fts-flatcurve/Makefile (new) | 35 ++++++++++++++++++++++ mail/dovecot-fts-flatcurve/distinfo (new) | 3 ++ .../files/patch-src_Makefile.am (new) | 16 ++++++++++ mail/dovecot-fts-flatcurve/pkg-descr (new) | 12 ++++++++ 5 files changed, 67 insertions(+)
Committed with changes.