1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00

Update to upstream version 1.8.1

PR:		196169
Submitted by:	freebsd@jonathanprice.org (maintainer)
This commit is contained in:
Thomas Zander 2015-01-01 20:21:35 +00:00
parent 008c6b79fd
commit f0edc641f9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=376029
7 changed files with 42 additions and 36 deletions

View File

@ -1,8 +1,7 @@
# $FreeBSD$
PORTNAME= minecraft-server
PORTVERSION= 1.8
PORTREVISION= 2
PORTVERSION= 1.8.1
CATEGORIES= games java
MASTER_SITES= https://s3.amazonaws.com/Minecraft.Download/versions/${PORTVERSION}/
DISTNAME= minecraft_server.${PORTVERSION}.jar
@ -12,8 +11,6 @@ EXTRACT_ONLY=
MAINTAINER= freebsd@jonathanprice.org
COMMENT= Dedicated server for the game Minecraft
ETCDIR= ${PREFIX}/etc/minecraft-server
USERS= mcserver
GROUPS= ${USERS}
@ -24,23 +21,25 @@ SUB_FILES= pkg-message \
CONFIG_FILES= banned-ips.json \
banned-players.json \
eula.txt \
ops.json \
server.properties \
usercache.json \
whitelist.json
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${DISTDIR}/${DISTNAME} ${STAGEDIR}${DATADIR}
${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}
${INSTALL_DATA} ${DISTDIR}/${DISTNAME} ${STAGEDIR}${PREFIX}/${PORTNAME}
${MKDIR} ${STAGEDIR}${ETCDIR}
${MKDIR} ${STAGEDIR}/var/db/minecraft-server
${MKDIR} ${STAGEDIR}/var/log/minecraft-server
${INSTALL_SCRIPT} ${FILESDIR}/minecraft-server ${STAGEDIR}${PREFIX}/bin
${CP} ${FILESDIR}/java-args.txt ${STAGEDIR}${ETCDIR}
.for file in ${CONFIG_FILES}
${LN} -s ${ETCDIR}/${file} ${STAGEDIR}${DATADIR}/${file}
${LN} -s ${ETCDIR}/${file} ${STAGEDIR}${PREFIX}/${PORTNAME}/${file}
.endfor
${LN} -sf /var/log/minecraft-server ${STAGEDIR}${DATADIR}/logs
${LN} -sf /var/log/minecraft-server/debug ${STAGEDIR}${DATADIR}/debug
${LN} -sf /var/db/minecraft-server ${STAGEDIR}/${DATADIR}/world
${LN} -sf /var/log/minecraft-server ${STAGEDIR}${PREFIX}/${PORTNAME}/logs
${LN} -sf /var/log/minecraft-server/debug ${STAGEDIR}${PREFIX}/${PORTNAME}/debug
${LN} -sf /var/db/minecraft-server ${STAGEDIR}${PREFIX}/${PORTNAME}/world
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (minecraft_server.1.8.jar) = 40e23f3823d6f0e3cbadc491cedb55b8ba53f8ab516b68182ddd1536babeb291
SIZE (minecraft_server.1.8.jar) = 10375504
SHA256 (minecraft_server.1.8.1.jar) = ef5f5a1a1a78087859b18153acf97efc6ecb12540ac08d82b9c95024249b9845
SIZE (minecraft_server.1.8.1.jar) = 7903505

View File

@ -0,0 +1 @@
-Xmx1024M -Xms1024M

View File

@ -5,5 +5,5 @@ if [ "$(id -u)" != "0" ]; then
exit 1
fi
cd /usr/local/share/minecraft-server
su -m mcserver -c "java -Xmx1024M -Xms1024M -jar minecraft_server.1.8.jar nogui"
cd /usr/local/minecraft-server
su -m mcserver -c "java $(cat /usr/local/etc/minecraft-server/java-args.txt) -jar minecraft_server.1.8.1.jar nogui"

View File

@ -5,7 +5,8 @@ if [ "$2" != "POST-DEINSTALL" ]; then
fi
echo
echo "NOTE: Your world has not been deleted. It is still in"
echo "/var/db/minecraft-server. If you no longer want the world, you will"
echo "need to manually delete it."
echo "Also, you may want to delete any remaining files in %%DATADIR%% and %%ETCDIR%%"
echo "NOTE: The game world has not been deleted. It is still in"
echo "/var/db/minecraft-server. If it is no longer required, it will"
echo "need to be manually deleted."
echo "Also, you may wish to delete any remaining files in"
echo "%%PREFIX%%/minecraft-server and %%ETCDIR%%"

View File

@ -1,17 +1,20 @@
When you first run minecraft-server, it will create the file
%%DATADIR%%/eula.txt
When you first run minecraft-server, it will populate the file
%%ETCDIR%%/eula.txt
You need to read the EULA, and then set:
It is required to read the EULA, and then set:
eula=true
- To run the server, run %%PREFIX%%/bin/minecraft-server
- Configuration files can be found at %%ETCDIR%%
- Log files can be found at /var/log/minecraft-server/
- Log and debug output files can be found at /var/log/minecraft-server/
- World files can be found at /var/db/minecraft-server
- Debug output files can be found at /var/log/minecraft-server/debug/
- To edit java's parameters, edit %%PREFIX%%/bin/minecraft-server
- To edit java's parameters, edit %%ETCDIR%%/java-args.txt
NOTE:
Users upgrading from version < 1.8 are advised to run the server to
generate new config files, and then modify them based on their existing
configuration, as most files are now JSON instead of txt. Also,
configuration, as most files are now JSON instead of txt.
Users upgrading from from 1.8 will need to re-accept the EULA. They
may also wish to delete %%DATADIR%% as it is
no longer used.

View File

@ -1,18 +1,20 @@
bin/minecraft-server
@owner mcserver
@group mcserver
@dir %%DATADIR%%
@dir minecraft-server
@dir %%ETCDIR%%
%%DATADIR%%/banned-ips.json
%%DATADIR%%/banned-players.json
%%DATADIR%%/debug
%%DATADIR%%/logs
%%DATADIR%%/minecraft_server.1.8.jar
%%DATADIR%%/ops.json
%%DATADIR%%/server.properties
%%DATADIR%%/usercache.json
%%DATADIR%%/whitelist.json
%%DATADIR%%/world
%%ETCDIR%%/java-args.txt
minecraft-server/banned-ips.json
minecraft-server/banned-players.json
minecraft-server/debug
minecraft-server/eula.txt
minecraft-server/logs
minecraft-server/minecraft_server.1.8.1.jar
minecraft-server/ops.json
minecraft-server/server.properties
minecraft-server/usercache.json
minecraft-server/whitelist.json
minecraft-server/world
@dir /var/db/minecraft-server
@dir /var/log/minecraft-server
@owner