[Bug 297568] net/mosquitto: Rework port

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 16 Aug 2026 03:13:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297568

            Bug ID: 297568
           Summary: net/mosquitto: Rework port
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: leres@freebsd.org
          Reporter: diizzy@FreeBSD.org
          Assignee: leres@freebsd.org
             Flags: maintainer-feedback?(leres@freebsd.org)

Created attachment 273807
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=273807&action=edit
Patch for mosquitto

* Unbundle uthash as recommended by Porters Handbook [1]
* Unbundle (lib)websockets as recommended by Porters Handbook [1]
* Make (lib)websockets mandatory, this is default in all major distros
* Use sqlite helper [2]
* Prefer libedit as upstream provides no way of selecting either libedit or
readline and it'll try to find libedit first
* Remove hack for adding path(s) to localbase, use helper instead [3]
* Disable WITH_HTTP_API as port will otherwise pick up libmicrohttpd in unclean
environments
* Remove REINPLACE_CMD for CMakeLists.txt files as it does nothing

1: https://docs.freebsd.org/en/books/porters-handbook/book/#bundled-libs
2: https://docs.freebsd.org/en/books/porters-handbook/book/#uses-sqlite
3: https://docs.freebsd.org/en/books/porters-handbook/book/#uses-localbase

Poudriere testport ok on 14.4 (amd64) and 15.1 (amd64)

-- 
You are receiving this mail because:
You are the assignee for the bug.