Bug 278385 - [new port] net-im/snac: an ActivityPub server
Summary: [new port] net-im/snac: an ActivityPub server
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: Kurt Jaeger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-15 20:47 UTC by Matthew Phillips
Modified: 2024-10-28 19:21 UTC (History)
3 users (show)

See Also:


Attachments
patch for the snac package (7.23 KB, text/plain)
2024-04-15 20:47 UTC, Matthew Phillips
no flags Details
Updated patch for the snac package (7.21 KB, text/plain)
2024-05-03 12:08 UTC, Matthew Phillips
no flags Details
snac patch (7.21 KB, patch)
2024-08-21 13:00 UTC, Matthew Phillips
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Phillips 2024-04-15 20:47:05 UTC
Created attachment 249997 [details]
patch for the snac package

This adds a new package `snac`, an ActivityPub server. Homepage is here: https://codeberg.org/grunfink/snac2

This port is a service that runs as `snac`. It includes a new user and group (nologin) and stores its data in a file structure. 

I took great care to make the UX for setting up the package as easy as possible. Instructions are in the pkg-message.
Comment 1 Matthew Phillips 2024-04-15 20:49:57 UTC
Comment on attachment 249997 [details]
patch for the snac package

Updated mimetype
Comment 2 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2024-05-02 21:09:23 UTC
1. Have you build tested this using poudriere?
2. Have you ran portlint/portclippy?
3. Languages like YOU/WE should be avoided in pkg-message.
Comment 3 Matthew Phillips 2024-05-03 12:08:58 UTC
Created attachment 250351 [details]
Updated patch for the snac package

Updated to:

- take suggestions from portclippy
- Reword the pkg-message to remove "you" verbiage.
Comment 4 Matthew Phillips 2024-05-03 12:11:10 UTC
@Muhammad Moinur Rahman:

1. I've never been able to get poudriere to work on my box. I use a VPS with UFS so its not a normal setup. poudriere doesn't work for any ports. I test using `make test` and examining the staging folder. In this case I also installed the port on my machine and tested the service. I'm using the port currently.
2. Yes.
3. Updated with a new patch to address this.

Thanks!
Comment 5 Kurt Jaeger freebsd_committer freebsd_triage 2024-08-16 05:25:56 UTC
testbuilds done on 15.0a, 15.0i, 14.0a, 13.3a.
Comment 6 Kurt Jaeger freebsd_committer freebsd_triage 2024-08-16 05:26:10 UTC
(In reply to Kurt Jaeger from comment #5)
(using poudriere)
Comment 7 Kurt Jaeger freebsd_committer freebsd_triage 2024-08-16 05:26:58 UTC
(In reply to Kurt Jaeger from comment #6)
UIDs/GIDs needed adjustment, FYI.
Comment 8 Daniel Engberg freebsd_committer freebsd_triage 2024-08-16 20:53:42 UTC
Upstream is also at 2.57
Comment 9 Kurt Jaeger freebsd_committer freebsd_triage 2024-08-19 10:18:20 UTC
(In reply to Daniel Engberg from comment #8)
with updated version builds just as good.
Comment 10 Matthew Phillips 2024-08-21 13:00:42 UTC
Created attachment 252984 [details]
snac patch

Updated the patch to change the GID/UID and upgrade to latest version of the software.

Note that the 336 number appears in UID already but not in GID. I don't know how this works fully, so if I need to grab a different number let me know.
Comment 11 Kurt Jaeger freebsd_committer freebsd_triage 2024-10-28 18:14:42 UTC
(In reply to Matthew Phillips from comment #10)
If the uid is already in use, please pick a different uid and the
matching gid.
Comment 12 Kurt Jaeger freebsd_committer freebsd_triage 2024-10-28 19:20:59 UTC
Committed, thanks!
Comment 13 commit-hook freebsd_committer freebsd_triage 2024-10-28 19:21:53 UTC
A commit in branch main references this bug:

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

commit c39afa6d93121276520e56609de8fa02c393fa80
Author:     Matthew Phillips <matthew@matthewphillips.info>
AuthorDate: 2024-10-28 19:18:54 +0000
Commit:     Kurt Jaeger <pi@FreeBSD.org>
CommitDate: 2024-10-28 19:20:36 +0000

    net-im/snac: new port

    Snac is a simple, minimalistic ActivityPub instance.

    It features:

    - Lightweight, minimal dependencies
    - Extensive support of ActivityPub operations.
    - Multiuser
    - Mastodon API support, so Mastodon-compatible apps can be used
    - Simple but effective web interface
    - Easily-accessed MUTE button
    - Tested interoperability with related software
    - No database needed
    - Totally JavaScript-free

    PR:             278385
    Reviewed by:    bofh

 GIDs                                   |  2 +-
 UIDs                                   |  1 +
 net-im/Makefile                        |  1 +
 net-im/snac/Makefile (new)             | 40 ++++++++++++++++++++++
 net-im/snac/distinfo (new)             |  3 ++
 net-im/snac/files/patch-Makefile (new) | 33 ++++++++++++++++++
 net-im/snac/files/pkg-message.in (new) | 27 +++++++++++++++
 net-im/snac/files/snac.in (new)        | 62 ++++++++++++++++++++++++++++++++++
 net-im/snac/pkg-descr (new)            | 13 +++++++
 9 files changed, 181 insertions(+), 1 deletion(-)