From 2fbdf2ea49cc5d2ffa581c4edd39df0ec17cfe77 Mon Sep 17 00:00:00 2001 From: kn Date: Sun, 19 Oct 2025 16:23:20 +0000 Subject: [PATCH] Recycle openct's user (removed in 2016) into _yggdrasil; OK sthen --- infrastructure/db/user.list | 4 ++-- net/yggdrasil-go/Makefile | 2 +- net/yggdrasil-go/pkg/PLIST | 2 ++ net/yggdrasil-go/pkg/yggdrasil.rc | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/infrastructure/db/user.list b/infrastructure/db/user.list index 228e2532049..dd4d0f71614 100644 --- a/infrastructure/db/user.list +++ b/infrastructure/db/user.list @@ -1,4 +1,4 @@ -$OpenBSD: user.list,v 1.472 2025/10/18 22:50:34 kn Exp $ +$OpenBSD: user.list,v 1.473 2025/10/19 16:23:20 kn Exp $ This file lists all users and groups that are created by ports. All ports' users/groups have to start with an underscore and have to use @@ -122,7 +122,7 @@ id user group port 611 _icecast _icecast net/icecast 612 _ipguard _ipguard security/ipguard 613 _rancid _rancid sysutils/rancid -#614 _openct _openct security/openct +614 _yggdrasil _yggdrasil net/yggdrasil-go 615 _iftop _iftop net/iftop 616 _ircd-hybrid _ircd-hybrid net/ircd-hybrid 617 _tinyproxy _tinyproxy www/tinyproxy diff --git a/net/yggdrasil-go/Makefile b/net/yggdrasil-go/Makefile index 01305abef9f..c4c8a6f0458 100644 --- a/net/yggdrasil-go/Makefile +++ b/net/yggdrasil-go/Makefile @@ -2,7 +2,7 @@ COMMENT = experimental fully end-to-end encrypted IPv6 network MODGO_MODNAME = github.com/yggdrasil-network/yggdrasil-go MODGO_VERSION = v0.5.12 -REVISION = 1 +REVISION = 2 DISTNAME = yggdrasil-go-${MODGO_VERSION} diff --git a/net/yggdrasil-go/pkg/PLIST b/net/yggdrasil-go/pkg/PLIST index 6adb0b0c026..da08949d059 100644 --- a/net/yggdrasil-go/pkg/PLIST +++ b/net/yggdrasil-go/pkg/PLIST @@ -1,3 +1,5 @@ +@newgroup _yggdrasil:614 +@newuser _yggdrasil:614:614::Yggdrasil:/nonexistent:/sbin/nologin @rcscript ${RCDIR}/yggdrasil @bin bin/yggdrasil @bin bin/yggdrasil-genkeys diff --git a/net/yggdrasil-go/pkg/yggdrasil.rc b/net/yggdrasil-go/pkg/yggdrasil.rc index f7c46da15ab..05ca775ccc0 100644 --- a/net/yggdrasil-go/pkg/yggdrasil.rc +++ b/net/yggdrasil-go/pkg/yggdrasil.rc @@ -1,7 +1,7 @@ #!/bin/ksh daemon="${TRUEPREFIX}/bin/yggdrasil" -daemon_flags="-logto syslog -user nobody -useconffile ${SYSCONFDIR}/yggdrasil.conf" +daemon_flags="-logto syslog -user _yggdrasil -useconffile ${SYSCONFDIR}/yggdrasil.conf" . /etc/rc.d/rc.subr