Created attachment 145079 [details]
SHAR file for games/minecraft-server
I have re-built the games/minecraft-server port from the ground up. The old version was for minecraft 1.4.6 (released 2012-12-20), whereas this new version is 1.7.10 (released 2014-06-26).
A summary of the changes are as follows:
- It now provides a "shortcut" in /usr/local/bin/minecraft-server. It is a basic script which launches the JAR file. This brings it in-line with similar ports such as games/xonotic
- the "world" files (essentially a database) is now stored in /var/db/minecraft-server
- the configuration files are now stored in /usr/local/etc/minecraft-server
All files are owned by the user and group "mcserver" (inherited from the old games/minecraft-server port). Therefore, while you need root to run /usr/local/bin/minecraft-server, it executes the jar file as mcserver, to minimise security issues.
It would be great if I could have some feedback on improvements; I am not very experienced with porting.
Let's assign this to Sean and have him grade the port for you. He reworked minecraft-client. (server port is not currently maintained, so I can tell you right now putting "firstname.lastname@example.org" as the maintainer is wrong.
You should consider putting your email address there. :)
Created attachment 146746 [details]
[PATCH] 1.7.10 -> 1.8
I have updated the port from Minecraft 1.7.10 to 1.8.
I have also changed the maintainer to myself as per the advice given.
Would it be possible to push this in to the ports tree?
sean, are you going to handle this PR? I forgot all about it.
If you don't intend to, tell me and I'll move it patch-ready unevaluated.
(In reply to John Marino from comment #3)
> sean, are you going to handle this PR? I forgot all about it.
> If you don't intend to, tell me and I'll move it patch-ready unevaluated.
Please let Jonathan have this port and commit what he needs done. I can be a backup if needbe.
A commit references this bug:
Date: Fri Oct 10 12:58:05 UTC 2014
New revision: 370574
games/minecraft-server: Upgrade version 1.4.6 => 1.8
Assign maintainship to submitter
Submitted by: Jonathan Price
I tweaked the pkg-plist a bit to conform to current practices. It passes poudriere cleanly.