Created attachment 149502 [details]
When installing this port for the very first time on a system I hit some problems with directory permissions.
First, /usr/local/share/minecraft-server gets created as root, even though all the files in it are installed as mcserver:mcserver. This causes problems because the first startup cannot write eula.txt (creating a new file in a directory owned by root:wheel.
This is fixed by adding "@dir %%DATADIR%%" to pkg-plist. (Note that marino suggested that this was a useless entry in bug #194312 but I think it serves a valid purpose on a virgin install.)
Second, /usr/local/etc/minecraft-server gets created as root, even though all the files in it are installed as mcserver:mcserver. This causes problems because the first startup cannot write server.properties (creating a new file in a directory owned by root:wheel).
This is fixed by adding "@dir %%ETCDIR%%"to pkg-plist.
A new pkg-plist that fixes these two issues is attached.
people like to see diffs to ports files, not replacements. They want to what has changed but don't want to look it up.
Actually, this port is maintained! notify maintainer.
Created attachment 149609 [details]
Add %%DATADIR%% and %%ETCDIR%%
Thank you for the report Matt; it is greatly appreciated.
I have attached a diff including the fix, and an incremented port revision.
maintainer provided fix based on PR.
A commit references this bug:
Date: Sat Nov 22 19:48:52 UTC 2014
New revision: 373098
games/minecraft-server: Fix issues seen on initial installation
Submitted by: matt (gsicomp.on.ca)
Approved by: maintainer (Jonathan Price)