View | Details | Raw Unified | Return to bug 229890
Collapse All | Expand All

(-)Makefile (-4 / +3 lines)
Lines 1-10 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	minecraft-server
3
PORTNAME=	minecraft-server
4
PORTVERSION=	1.11.2
4
PORTVERSION=	1.13
5
CATEGORIES=	games java
5
CATEGORIES=	games java
6
MASTER_SITES=	https://s3.amazonaws.com/Minecraft.Download/versions/${PORTVERSION}/
6
MASTER_SITES=	https://launcher.mojang.com/mc/game/1.13/server/d0caafb8438ebd206f99930cfaecfa6c9a13dca0/
7
DISTFILES=	minecraft_server.${PORTVERSION}.jar
7
DISTFILES=	server.jar
8
EXTRACT_ONLY=
8
EXTRACT_ONLY=
9
9
10
MAINTAINER=	freebsd@jonathanprice.org
10
MAINTAINER=	freebsd@jonathanprice.org
Lines 58-64 Link Here
58
	${LN} -sf /var/log/minecraft-server ${STAGEDIR}${PREFIX}/${PORTNAME}/logs
58
	${LN} -sf /var/log/minecraft-server ${STAGEDIR}${PREFIX}/${PORTNAME}/logs
59
	${LN} -sf /var/log/minecraft-server/debug ${STAGEDIR}${PREFIX}/${PORTNAME}/debug
59
	${LN} -sf /var/log/minecraft-server/debug ${STAGEDIR}${PREFIX}/${PORTNAME}/debug
60
	${LN} -sf /var/db/minecraft-server ${STAGEDIR}${PREFIX}/${PORTNAME}/world
60
	${LN} -sf /var/db/minecraft-server ${STAGEDIR}${PREFIX}/${PORTNAME}/world
61
	${LN} -sf ${PREFIX}/${PORTNAME}/${DISTFILES} ${STAGEDIR}${PREFIX}/${PORTNAME}/minecraft_server.jar
62
61
63
post-install-STANDALONE-on:
62
post-install-STANDALONE-on:
64
	${INSTALL_SCRIPT} ${WRKDIR}/minecraft-server ${STAGEDIR}${PREFIX}/bin
63
	${INSTALL_SCRIPT} ${WRKDIR}/minecraft-server ${STAGEDIR}${PREFIX}/bin
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1488796790
1
TIMESTAMP = 1532020340
2
SHA256 (minecraft_server.1.11.2.jar) = dec47d36b429fd05076b90b1f42c2a25138bc39204aa51b9674ef2a98d64d88a
2
SHA256 (server.jar) = e76f3927904d331c969a2c437d5661ac02f24be86062dd1c607bfd4ebdc550b9
3
SIZE (minecraft_server.1.11.2.jar) = 9720835
3
SIZE (server.jar) = 32649675
(-)files/minecraft-server.in (-1 / +1 lines)
Lines 6-9 Link Here
6
fi
6
fi
7
7
8
cd %%PREFIX%%/minecraft-server
8
cd %%PREFIX%%/minecraft-server
9
su -m mcserver -c "java $(cat %%PREFIX%%/etc/minecraft-server/java-args.txt) -jar minecraft_server.%%VERSION%%.jar nogui"
9
su -m mcserver -c "java $(cat %%PREFIX%%/etc/minecraft-server/java-args.txt) -jar server.jar nogui"
(-)files/minecraft.in (-1 / +1 lines)
Lines 49-55 Link Here
49
		fi
49
		fi
50
		echo "Starting ${name}."
50
		echo "Starting ${name}."
51
		cd %%PREFIX%%/minecraft-server
51
		cd %%PREFIX%%/minecraft-server
52
		su mcserver -c "%%LOCALBASE%%/bin/tmux new-session -s minecraft -d '%%LOCALBASE%%/bin/java -Xmx${minecraft_memx} -Xms${minecraft_mems} ${minecraft_args} -jar %%PREFIX%%/minecraft-server/minecraft_server.%%VERSION%%.jar nogui'"
52
		su mcserver -c "%%LOCALBASE%%/bin/tmux new-session -s minecraft -d '%%LOCALBASE%%/bin/java -Xmx${minecraft_memx} -Xms${minecraft_mems} ${minecraft_args} -jar %%PREFIX%%/minecraft-server/server.jar nogui'"
53
	fi
53
	fi
54
}
54
}
55
55
(-)pkg-plist (-2 / +1 lines)
Lines 7-14 Link Here
7
minecraft-server/debug
7
minecraft-server/debug
8
minecraft-server/eula.txt
8
minecraft-server/eula.txt
9
minecraft-server/logs
9
minecraft-server/logs
10
minecraft-server/minecraft_server.jar
10
minecraft-server/server.jar
11
minecraft-server/minecraft_server.%%VERSION%%.jar
12
minecraft-server/ops.json
11
minecraft-server/ops.json
13
minecraft-server/server.properties
12
minecraft-server/server.properties
14
minecraft-server/usercache.json
13
minecraft-server/usercache.json

Return to bug 229890