Bug 283671 - [NEW PORT] net-im/mautrix-whatsapp: Matrix-WhatsApp puppeting bridge
Summary: [NEW PORT] net-im/mautrix-whatsapp: Matrix-WhatsApp puppeting bridge
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Älven
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-27 22:49 UTC by Julian Weigt
Modified: 2025-11-05 16:23 UTC (History)
5 users (show)

See Also:
alven: maintainer-feedback? (db)
alven: maintainer-feedback? (yuri)


Attachments
Patch created using `git format-patch` (5.45 KB, patch)
2024-12-27 22:49 UTC, Julian Weigt
no flags Details | Diff
Patch created using `git format-patch` (5.45 KB, patch)
2025-02-16 17:43 UTC, Julian Weigt
no flags Details | Diff
git format-patch (5.45 KB, patch)
2025-06-23 13:41 UTC, Julian Weigt
no flags Details | Diff
[PATCH] net-im/mautrix-whatsapp: New port, Matrix-WhatsApp puppeting bridge (5.82 KB, patch)
2025-08-04 22:35 UTC, Älven
no flags Details | Diff
[PATCH] net-im/mautrix-whatsapp: New port, Matrix-WhatsApp puppeting bridge (6.19 KB, patch)
2025-08-05 19:06 UTC, Älven
no flags Details | Diff
updated patch file (6.20 KB, patch)
2025-08-10 13:57 UTC, Julian Weigt
no flags Details | Diff
[PATCH] net-im/mautrix-whatsapp: New port, Matrix-WhatsApp puppeting bridge (6.20 KB, patch)
2025-08-17 15:15 UTC, Julian Weigt
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Weigt 2024-12-27 22:49:43 UTC
Created attachment 256214 [details]
Patch created using `git format-patch`

Mautrix-whatsapp is a Matrix-WhatsApp puppeting bridge, which means it runs
along a matrix server and relays messages between a whatsapp account and a
matrix account.

This is my first port, please bare with me. In particular I am not sure if I followed the guidelines for go packages correctly.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2024-12-28 02:03:39 UTC
^Triage: make Summary more descriptive.
Comment 2 Julian Weigt 2025-02-16 17:43:04 UTC
Created attachment 257587 [details]
Patch created using `git format-patch`

updated to current version
Comment 3 Julian Weigt 2025-06-23 13:41:48 UTC
Created attachment 261508 [details]
git format-patch

update to 0.12.2
Comment 4 Älven freebsd_committer freebsd_triage 2025-08-03 20:17:37 UTC
(In reply to Julian Weigt from comment #0)
> This is my first port, please bare with me. In particular I am not sure if I followed the guidelines for go packages correctly.
I'm a very new committer (less than a week) :) so this would be one of my first ports/commits too :) Let's hope my mentors would come to the rescue would we need it :)
Comment 5 Yuri Victorovich freebsd_committer freebsd_triage 2025-08-04 08:22:48 UTC
1. Semicolons after the "install" commands are redundant in files/mautrix_whatsapp.in
2. The USE_GITHUB, MASTER_SITES, DISTNAME lines are redundant
3. The latest release is now 0.12.3
Comment 6 Älven freebsd_committer freebsd_triage 2025-08-04 22:35:15 UTC
Created attachment 262703 [details]
[PATCH] net-im/mautrix-whatsapp: New port, Matrix-WhatsApp puppeting bridge

This is the best I could do for it. It builds and run. Test, please.
If something could be done to make it better, tell me, please :)
Comment 7 Älven freebsd_committer freebsd_triage 2025-08-05 19:06:31 UTC
Created attachment 262724 [details]
[PATCH] net-im/mautrix-whatsapp: New port, Matrix-WhatsApp puppeting bridge

Forgot to add a line to net-im/Makefile.
Comment 8 Julian Weigt 2025-08-10 13:57:42 UTC
Created attachment 262852 [details]
updated patch file

Thanks for the help, it's working for me.

I still fixed two things:

I updated the permissions for %%ETCDIR%% without which it complaints that it `failed to create temp file for writing config`.

Also made the log dir exclusive to mautrix-whatsapp and not shared with other bridges, so that we can give it write permissions.
Comment 9 Julian Weigt 2025-08-17 15:15:10 UTC
Created attachment 263017 [details]
[PATCH] net-im/mautrix-whatsapp: New port, Matrix-WhatsApp puppeting bridge
Comment 10 Yuri Victorovich freebsd_committer freebsd_triage 2025-08-18 07:36:30 UTC
Approved.

Thanks,
Yuri
Comment 11 Julian Weigt 2025-08-18 09:53:07 UTC
I realized I had uploaded my latest diff as an additional attachment instead of as a replacement.

Apologies, I'm not sure how to correct this.
Comment 12 Älven freebsd_committer freebsd_triage 2025-08-18 10:06:17 UTC
No worries, it's all very simple: just edit it's details and make it obsolete :)

I'm testing your newest version just now and will be ready to commit soon.
Comment 13 commit-hook freebsd_committer freebsd_triage 2025-08-18 10:39:28 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4161ac705809c2ead9bea811414311180f9063da

commit 4161ac705809c2ead9bea811414311180f9063da
Author:     Julian Weigt <juw@posteo.de>
AuthorDate: 2025-06-23 13:37:29 +0000
Commit:     Älven <alven@FreeBSD.org>
CommitDate: 2025-08-18 10:37:44 +0000

    net-im/mautrix-whatsapp: [NEW PORT] Matrix-WhatsApp puppeting bridge

    Mautrix-whatsapp bridges messages between WhatsApp and a Matrix server.

    PR:             283671
    Approved by:    yuri@ (Mentor)

 GIDs                                               |  2 +-
 UIDs                                               |  2 +-
 net-im/Makefile                                    |  1 +
 net-im/mautrix-whatsapp/Makefile (new)             | 26 +++++++++++
 net-im/mautrix-whatsapp/distinfo (new)             |  5 ++
 .../files/mautrix_whatsapp.in (new)                | 54 ++++++++++++++++++++++
 net-im/mautrix-whatsapp/pkg-descr (new)            |  3 ++
 net-im/mautrix-whatsapp/pkg-plist (new)            |  3 ++
 8 files changed, 94 insertions(+), 2 deletions(-)
Comment 14 Älven freebsd_committer freebsd_triage 2025-08-18 10:40:08 UTC
Committed. Thank you for your contribution :)
Comment 15 Julian Weigt 2025-08-18 11:23:56 UTC
Thanks a lot for committing!
Comment 16 Älven freebsd_committer freebsd_triage 2025-08-18 12:27:41 UTC
You are always welcome :)