Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jan 2015 20:21:36 +0000 (UTC)
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r376029 - in head/games/minecraft-server: . files
Message-ID:  <201501012021.t01KLabR034732@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: riggs
Date: Thu Jan  1 20:21:35 2015
New Revision: 376029
URL: https://svnweb.freebsd.org/changeset/ports/376029
QAT: https://qat.redports.org/buildarchive/r376029/

Log:
  Update to upstream version 1.8.1
  
  PR:		196169
  Submitted by:	freebsd@jonathanprice.org (maintainer)

Added:
  head/games/minecraft-server/files/java-args.txt   (contents, props changed)
Modified:
  head/games/minecraft-server/Makefile
  head/games/minecraft-server/distinfo
  head/games/minecraft-server/files/minecraft-server
  head/games/minecraft-server/files/pkg-deinstall.in
  head/games/minecraft-server/files/pkg-message.in
  head/games/minecraft-server/pkg-plist

Modified: head/games/minecraft-server/Makefile
==============================================================================
--- head/games/minecraft-server/Makefile	Thu Jan  1 20:11:35 2015	(r376028)
+++ head/games/minecraft-server/Makefile	Thu Jan  1 20:21:35 2015	(r376029)
@@ -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>

Modified: head/games/minecraft-server/distinfo
==============================================================================
--- head/games/minecraft-server/distinfo	Thu Jan  1 20:11:35 2015	(r376028)
+++ head/games/minecraft-server/distinfo	Thu Jan  1 20:21:35 2015	(r376029)
@@ -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

Added: head/games/minecraft-server/files/java-args.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/minecraft-server/files/java-args.txt	Thu Jan  1 20:21:35 2015	(r376029)
@@ -0,0 +1 @@
+-Xmx1024M -Xms1024M

Modified: head/games/minecraft-server/files/minecraft-server
==============================================================================
--- head/games/minecraft-server/files/minecraft-server	Thu Jan  1 20:11:35 2015	(r376028)
+++ head/games/minecraft-server/files/minecraft-server	Thu Jan  1 20:21:35 2015	(r376029)
@@ -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"

Modified: head/games/minecraft-server/files/pkg-deinstall.in
==============================================================================
--- head/games/minecraft-server/files/pkg-deinstall.in	Thu Jan  1 20:11:35 2015	(r376028)
+++ head/games/minecraft-server/files/pkg-deinstall.in	Thu Jan  1 20:21:35 2015	(r376029)
@@ -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%%"

Modified: head/games/minecraft-server/files/pkg-message.in
==============================================================================
--- head/games/minecraft-server/files/pkg-message.in	Thu Jan  1 20:11:35 2015	(r376028)
+++ head/games/minecraft-server/files/pkg-message.in	Thu Jan  1 20:21:35 2015	(r376029)
@@ -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.

Modified: head/games/minecraft-server/pkg-plist
==============================================================================
--- head/games/minecraft-server/pkg-plist	Thu Jan  1 20:11:35 2015	(r376028)
+++ head/games/minecraft-server/pkg-plist	Thu Jan  1 20:21:35 2015	(r376029)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501012021.t01KLabR034732>