View | Details | Raw Unified | Return to bug 278385
Collapse All | Expand All

(-)b/GIDs (-1 / +1 lines)
Lines 276-282 keycloak:*:332: Link Here
276
honeytrap:*:333:
276
honeytrap:*:333:
277
percona:*:334:
277
percona:*:334:
278
benthos:*:335:
278
benthos:*:335:
279
# free: 336
279
snac:*:336:
280
daapd:*:337:
280
daapd:*:337:
281
murmur:*:338:
281
murmur:*:338:
282
mumble-server:*:339:
282
mumble-server:*:339:
(-)b/UIDs (+1 lines)
Lines 281-286 keycloak:*:332:332::0:0:keycloak server:/nonexistent:/usr/sbin/nologin Link Here
281
honeytrap:*:333:333::0:0:HoneyTrap Daemon:/nonexistent:/usr/sbin/nologin
281
honeytrap:*:333:333::0:0:HoneyTrap Daemon:/nonexistent:/usr/sbin/nologin
282
percona:*:334:334::0:0:Percona Daemons:/nonexistent:/usr/sbin/nologin
282
percona:*:334:334::0:0:Percona Daemons:/nonexistent:/usr/sbin/nologin
283
benthos:*:335:335::0:0:Benthos Daemon:/nonexistent:/usr/sbin/nologin
283
benthos:*:335:335::0:0:Benthos Daemon:/nonexistent:/usr/sbin/nologin
284
snac:*:336:336::0:0:Snac Daemon:/nonexistent:/usr/sbin/nologin
284
_pma:*:336:80::0:0:phpMyAdmin Owner:/nonexistent:/usr/sbin/nologin
285
_pma:*:336:80::0:0:phpMyAdmin Owner:/nonexistent:/usr/sbin/nologin
285
daapd:*:337:337::0:0:daapd User:/nonexistent:/usr/sbin/nologin
286
daapd:*:337:337::0:0:daapd User:/nonexistent:/usr/sbin/nologin
286
murmur:*:338:338::0:0:& User:/nonexistent:/usr/sbin/nologin
287
murmur:*:338:338::0:0:& User:/nonexistent:/usr/sbin/nologin
(-)b/net-im/snac/Makefile (+40 lines)
Added Link Here
1
PORTNAME=	snac
2
DISTVERSION=	2.57
3
CATEGORIES=	net-im www
4
MASTER_SITES=	https://codeberg.org/grunfink/snac2/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
5
6
MAINTAINER=	matthew@matthewphillips.info
7
COMMENT=	Simple, minimalistic ActivityPub instance written in portable C
8
WWW=		https://codeberg.org/grunfink/snac2
9
10
LICENSE=	MIT
11
12
LIB_DEPENDS=	libcurl.so:ftp/curl
13
14
USES=		ssl
15
USE_RC_SUBR=	snac
16
17
SUB_FILES=	pkg-message \
18
		snac
19
SUB_LIST=	SNACDATADIR="${SNACDATADIR}" \
20
		GROUP="${GROUPS}" \
21
		USER="${USERS}"
22
23
SNACDATADIR=	/var/db/snac
24
25
WRKSRC=		${WRKDIR}/snac2
26
27
USERS=		snac
28
GROUPS=		snac
29
30
PKGMESSAGE=	${FILESDIR}/pkg-message
31
32
PLIST_FILES=    bin/snac \
33
		share/man/man1/snac.1.gz \
34
		share/man/man5/snac.5.gz \
35
		share/man/man8/snac.8.gz
36
37
post-install:
38
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/snac
39
40
.include <bsd.port.mk>
(-)b/net-im/snac/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1724244538
2
SHA256 (snac-2.57.tar.gz) = 16e25990391b04079caadeea6a5c24656a0df5ed5e7500516402c1cca21e831e
3
SIZE (snac-2.57.tar.gz) = 180441
(-)b/net-im/snac/files/patch-Makefile (+33 lines)
Added Link Here
1
--- Makefile.orig	2024-04-04 08:13:06 UTC
2
+++ Makefile
3
@@ -1,5 +1,5 @@
4
-PREFIX=/usr/local
5
-PREFIX_MAN=$(PREFIX)/man
6
+PREFIX:=$(PREFIX)
7
+PREFIX_MAN=$(PREFIX)/share/man
8
 CFLAGS?=-g -Wall -Wextra
9
 
10
 all: snac
11
@@ -18,14 +18,14 @@ install:
12
 	$(CC) -I/usr/local/include -MM *.c > makefile.depend
13
 
14
 install:
15
-	mkdir -p -m 755 $(PREFIX)/bin
16
-	install -m 755 snac $(PREFIX)/bin/snac
17
-	mkdir -p -m 755 $(PREFIX_MAN)/man1
18
-	install -m 644 doc/snac.1 $(PREFIX_MAN)/man1/snac.1
19
-	mkdir -p -m 755 $(PREFIX_MAN)/man5
20
-	install -m 644 doc/snac.5 $(PREFIX_MAN)/man5/snac.5
21
-	mkdir -p -m 755 $(PREFIX_MAN)/man8
22
-	install -m 644 doc/snac.8 $(PREFIX_MAN)/man8/snac.8
23
+	mkdir -p -m 755 $(DESTDIR)$(PREFIX)/bin
24
+	install -m 755 snac $(DESTDIR)$(PREFIX)/bin/snac
25
+	mkdir -p -m 755 $(DESTDIR)$(PREFIX_MAN)/man1
26
+	install -m 644 doc/snac.1 $(DESTDIR)$(PREFIX_MAN)/man1/snac.1
27
+	mkdir -p -m 755 $(DESTDIR)$(PREFIX_MAN)/man5
28
+	install -m 644 doc/snac.5 $(DESTDIR)$(PREFIX_MAN)/man5/snac.5
29
+	mkdir -p -m 755 $(DESTDIR)$(PREFIX_MAN)/man8
30
+	install -m 644 doc/snac.8 $(DESTDIR)$(PREFIX_MAN)/man8/snac.8
31
 
32
 uninstall:
33
 	rm $(PREFIX)/bin/snac
(-)b/net-im/snac/files/pkg-message.in (+27 lines)
Added Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
5
To use snac, enable it in rc.conf using
6
7
  sysrc snac_enable=yes
8
9
To initialize the data, run
10
11
  service snac init
12
13
You can then start snac by running:
14
15
  service snac start
16
17
You can add a user by running:
18
19
  service snac run adduser <name>
20
21
Data is stored at %%SNACDATADIR%%/data. For convenience the service includes
22
a `run` command for executing snac commands against this directory, such as
23
the `adduser` command shown above. See `snac --help` for a full list of
24
commands.
25
EOM
26
}
27
]
(-)b/net-im/snac/files/snac.in (+62 lines)
Added Link Here
1
#!/bin/sh
2
3
# PROVIDE: snac
4
# REQUIRE: DAEMON
5
# KEYWORD: shutdown
6
#
7
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
8
# to enable this service:
9
#
10
# snac_enable (bool):	Set to NO by default.
11
#			Set it to YES to enable snac.
12
# snac_user   (user):	Set user to run snac.
13
# 			Default is "snac".
14
# snac_group  (group):	Set group to run snac.
15
# 			Default is "snac".
16
# snac_dir    (dir):	Set data storage dir.
17
# 			Default is /var/db/snac/".
18
19
. /etc/rc.subr
20
21
name=snac
22
rcvar=snac_enable
23
desc="Simple fediverse server"
24
25
start_precmd="${name}_prestart"
26
extra_commands="init run"
27
init_cmd="snac_init"
28
run_cmd="snac_run"
29
30
load_rc_config $name
31
32
: ${snac_enable:=NO}
33
: ${snac_user=%%USER%%}
34
: ${snac_group=%%GROUP%%}
35
: ${snac_dir=%%SNACDATADIR%%}
36
37
procname="%%PREFIX%%/bin/${name}"
38
command=/usr/sbin/daemon
39
command_args="-c -S -T ${name} ${procname} httpd ${snac_dir}/data"
40
41
snac_prestart()
42
{
43
    if [ ! -d "${snac_dir}/data" ]; then
44
        echo "The snac data directory does not exist. Please run: service snac init"
45
    fi
46
}
47
48
snac_init()
49
{
50
    mkdir -p "${snac_dir}"
51
    ${procname} init "${snac_dir}/data"
52
    chown -R ${snac_user}:${snac_group} "${snac_dir}/data"
53
}
54
55
snac_run()
56
{
57
    snaccmd="$1"
58
    shift
59
    ${procname} $snaccmd "${snac_dir}/data" $@
60
}
61
62
run_rc_command "$@"
(-)b/net-im/snac/pkg-descr (-1 / +13 lines)
Added Link Here
0
- 
1
Snac is a simple, minimalistic ActivityPub instance.
2
3
It features:
4
5
- Lightweight, minimal dependencies
6
- Extensive support of ActivityPub operations.
7
- Multiuser
8
- Mastodon API support, so Mastodon-compatible apps can be used
9
- Simple but effective web interface
10
- Easily-accessed MUTE button
11
- Tested interoperability with related software
12
- No database needed
13
- Totally JavaScript-free

Return to bug 278385