Hi,

I missed the fact that  Nicolas already made a port [1].

It would be great if it eventually made its way into the ports collection.

Sergey

1. https://marc.info/?l=openbsd-ports&m=176929443430754&w=2

On 11/15/26 17:52, Sergey Bronnikov wrote:
Hi,

The attached patch adds snac 2.96, a minimalistic ActivityPub instance.

diff --git a/www/snac/Makefile b/www/snac/Makefile
new file mode 100644
index 0000000..34e7a22
--- /dev/null
+++ b/www/snac/Makefile
@@ -0,0 +1,39 @@
+COMMENT =        minimalistic ActivityPub instance
+
+V =            2.96
+DISTNAME =        snac-${V}
+DISTFILES =        ${V}${EXTRACT_SUFX}
+CATEGORIES =        www
+
+HOMEPAGE = https://codeberg.org/grunfink/snac2
+
+MAINTAINER =        Sergey Bronnikov <[email protected]>
+
+# MIT
+PERMIT_PACKAGE =    Yes
+
+SITES = https://codeberg.org/grunfink/snac2/archive/
+DIST_SUBDIR =        snac
+
+WANTLIB +=        c crypto curl pthread
+
+LIB_DEPENDS =        net/curl
+
+WRKDIST =        ${WRKDIR}/snac2
+
+NO_CONFIGURE =        Yes
+NO_TEST =        Yes
+ALL_TARGET =        snac
+
+do-install:
+    ${INSTALL_PROGRAM} ${WRKSRC}/snac ${PREFIX}/bin/snac
+    ${INSTALL_MAN} ${WRKSRC}/doc/snac.1 ${PREFIX}/man/man1/snac.1
+    ${INSTALL_MAN} ${WRKSRC}/doc/snac.5 ${PREFIX}/man/man5/snac.5
+    ${INSTALL_MAN} ${WRKSRC}/doc/snac.8 ${PREFIX}/man/man8/snac.8
+    ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/snac
+    ${INSTALL_DATA} ${WRKSRC}/examples/snac_openbsd \
+        ${PREFIX}/share/examples/snac/snac.rc
+    ${INSTALL_DATA} ${WRKSRC}/examples/snac_openbsd_login_conf \
+        ${PREFIX}/share/examples/snac/login.conf
+
+.include <bsd.port.mk>
diff --git a/www/snac/distinfo b/www/snac/distinfo
new file mode 100644
index 0000000..b079650
--- /dev/null
+++ b/www/snac/distinfo
@@ -0,0 +1,2 @@
+SHA256 (snac/2.96.tar.gz) = xZj9szHYE8VlFho1TunVhYnx+5VkEc9FVvNTFpZb2Do=
+SIZE (snac/2.96.tar.gz) = 345452
diff --git a/www/snac/pkg/DESCR b/www/snac/pkg/DESCR
new file mode 100644
index 0000000..0090077
--- /dev/null
+++ b/www/snac/pkg/DESCR
@@ -0,0 +1,9 @@
+snac (Social Networks Are Crap) is a simple, minimalistic ActivityPub
+instance written in portable C.  It runs as a daemon, normally behind a
+TLS-enabled HTTP server, and implements enough of the ActivityPub and
+Mastodon APIs to federate with other Fediverse software.
+
+It is lightweight with minimal dependencies (libcurl and OpenSSL only),
+needs no database (all data is stored as plain files) and offers a simple
+but effective web interface.  It is multiuser, supports the Mastodon API
+so compatible apps can be used, and uses neither JavaScript nor cookies.
diff --git a/www/snac/pkg/PLIST b/www/snac/pkg/PLIST
new file mode 100644
index 0000000..8889d86
--- /dev/null
+++ b/www/snac/pkg/PLIST
@@ -0,0 +1,7 @@
+@bin bin/snac
+@man man/man1/snac.1
+@man man/man5/snac.5
+@man man/man8/snac.8
+share/examples/snac/
+share/examples/snac/login.conf
+share/examples/snac/snac.rc


Sergey

Reply via email to