The devel/athens port only installs the /usr/bin/athens binary, but no rc script to run it as a daemon.
Created attachment 258975 [details] Adds an rc script for running athens as a daemon
The rc file is not prefix safe. Use a .in file and replace all the presence of /usr/local with %%PREFIX%%.
Created attachment 259019 [details] Fixed rc script to use %%PREFIX%% and %%ETCDIR%%
Thanks. Not required this time as I will do it but this needs a PORTREVISION bump as the packaging is changing.
I just realised that I added both a `post-stage` and `post-install` target, that both attempt to do the same thing. You can remove the `post-stage` target before committing
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=38c1efb470830e8c41c97360a479094085a02db3 commit 38c1efb470830e8c41c97360a479094085a02db3 Author: Einar Bjarni Halldórsson <einar@isnic.is> AuthorDate: 2025-03-25 12:03:58 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2025-03-27 09:17:13 +0000 devel/athens: Refactor - Add rc script - Add sample config file PR: 285628 devel/athens/Makefile | 11 +++++++---- devel/athens/files/athens.in (new) | 33 +++++++++++++++++++++++++++++++++ devel/athens/pkg-plist (new) | 2 ++ 3 files changed, 42 insertions(+), 4 deletions(-)
Thanks for committing, *but* I just realised I never tacked running the service under a different user than root. I'm going to create a patch that adds a UID and GID to /usr/ports/UIDs and /usr/ports/GIDs and configures a user and group variable to the rc script. Should we re-open this PR or should I open another one?
Open a new one. Find a suitable user/group of same IDs please.