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

(-)b/games/minecraft-server/Makefile (-2 / +2 lines)
Lines 1-65 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	minecraft-server
3
PORTNAME=	minecraft-server
4
PORTVERSION=	1.16.3
4
PORTVERSION=	1.16.4
5
CATEGORIES=	games java
5
CATEGORIES=	games java
6
MASTER_SITES=	https://launcher.mojang.com/v1/objects/f02f4473dbf152c23d7d484952121db0b36698cb/
6
MASTER_SITES=	https://launcher.mojang.com/v1/objects/35139deedbd5182953cf1caa23835da59ca3d7cd/
7
DISTNAME=	server
7
DISTNAME=	server
8
EXTRACT_SUFX=	.jar
8
EXTRACT_SUFX=	.jar
9
DIST_SUBDIR=	${PORTNAME}-${PORTVERSION}
9
DIST_SUBDIR=	${PORTNAME}-${PORTVERSION}
10
EXTRACT_ONLY=
10
EXTRACT_ONLY=
11
11
12
MAINTAINER=	freebsd@jonathanprice.org
12
MAINTAINER=	freebsd@jonathanprice.org
13
COMMENT=	Dedicated server for the game Minecraft
13
COMMENT=	Dedicated server for the game Minecraft
14
14
15
LICENSE=	minecraft
15
LICENSE=	minecraft
16
LICENSE_NAME=	Minecraft End User License Agreement
16
LICENSE_NAME=	Minecraft End User License Agreement
17
LICENSE_TEXT=	The license can be viewed at: https://account.mojang.com/documents/minecraft_eula
17
LICENSE_TEXT=	The license can be viewed at: https://account.mojang.com/documents/minecraft_eula
18
LICENSE_PERMS=	no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell
18
LICENSE_PERMS=	no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell
19
19
20
OPTIONS_SINGLE=		RUN
20
OPTIONS_SINGLE=		RUN
21
OPTIONS_SINGLE_RUN=	DAEMON STANDALONE
21
OPTIONS_SINGLE_RUN=	DAEMON STANDALONE
22
22
23
DAEMON_DESC=		Run as a service
23
DAEMON_DESC=		Run as a service
24
STANDALONE_DESC=	Run the .jar file directly
24
STANDALONE_DESC=	Run the .jar file directly
25
OPTIONS_SUB=		yes
25
OPTIONS_SUB=		yes
26
26
27
OPTIONS_DEFAULT=	STANDALONE
27
OPTIONS_DEFAULT=	STANDALONE
28
28
29
USERS=		mcserver
29
USERS=		mcserver
30
GROUPS=		${USERS}
30
GROUPS=		${USERS}
31
31
32
NO_BUILD=	yes
32
NO_BUILD=	yes
33
USE_JAVA=	yes
33
USE_JAVA=	yes
34
SUB_FILES=	minecraft-server pkg-deinstall pkg-message
34
SUB_FILES=	minecraft-server pkg-deinstall pkg-message
35
SUB_LIST=	VERSION=${PORTVERSION}
35
SUB_LIST=	VERSION=${PORTVERSION}
36
PLIST_SUB=	VERSION=${PORTVERSION}
36
PLIST_SUB=	VERSION=${PORTVERSION}
37
37
38
CONFIG_FILES=	banned-ips.json banned-players.json eula.txt ops.json \
38
CONFIG_FILES=	banned-ips.json banned-players.json eula.txt ops.json \
39
		server.properties usercache.json whitelist.json
39
		server.properties usercache.json whitelist.json
40
40
41
DAEMON_VARS=		USE_RC_SUBR=minecraft
41
DAEMON_VARS=		USE_RC_SUBR=minecraft
42
DAEMON_RUN_DEPENDS=	tmux:sysutils/tmux
42
DAEMON_RUN_DEPENDS=	tmux:sysutils/tmux
43
43
44
NO_ARCH=	yes
44
NO_ARCH=	yes
45
45
46
do-install:
46
do-install:
47
	${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}
47
	${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}
48
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} \
48
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} \
49
		${STAGEDIR}${PREFIX}/${PORTNAME}
49
		${STAGEDIR}${PREFIX}/${PORTNAME}
50
	${MKDIR} ${STAGEDIR}${ETCDIR}
50
	${MKDIR} ${STAGEDIR}${ETCDIR}
51
	${MKDIR} ${STAGEDIR}/var/db/minecraft-server
51
	${MKDIR} ${STAGEDIR}/var/db/minecraft-server
52
	${MKDIR} ${STAGEDIR}/var/log/minecraft-server
52
	${MKDIR} ${STAGEDIR}/var/log/minecraft-server
53
.for file in ${CONFIG_FILES}
53
.for file in ${CONFIG_FILES}
54
	${LN} -s ${ETCDIR}/${file} ${STAGEDIR}${PREFIX}/${PORTNAME}/${file}
54
	${LN} -s ${ETCDIR}/${file} ${STAGEDIR}${PREFIX}/${PORTNAME}/${file}
55
.endfor
55
.endfor
56
	${LN} -sf /var/log/minecraft-server ${STAGEDIR}${PREFIX}/${PORTNAME}/logs
56
	${LN} -sf /var/log/minecraft-server ${STAGEDIR}${PREFIX}/${PORTNAME}/logs
57
	${LN} -sf /var/log/minecraft-server/debug ${STAGEDIR}${PREFIX}/${PORTNAME}/debug
57
	${LN} -sf /var/log/minecraft-server/debug ${STAGEDIR}${PREFIX}/${PORTNAME}/debug
58
	${LN} -sf /var/db/minecraft-server ${STAGEDIR}${PREFIX}/${PORTNAME}/world
58
	${LN} -sf /var/db/minecraft-server ${STAGEDIR}${PREFIX}/${PORTNAME}/world
59
59
60
post-install-STANDALONE-on:
60
post-install-STANDALONE-on:
61
	${INSTALL_SCRIPT} ${WRKDIR}/minecraft-server \
61
	${INSTALL_SCRIPT} ${WRKDIR}/minecraft-server \
62
		${STAGEDIR}${PREFIX}/bin
62
		${STAGEDIR}${PREFIX}/bin
63
	${CP} ${FILESDIR}/java-args.txt ${STAGEDIR}${ETCDIR}
63
	${CP} ${FILESDIR}/java-args.txt ${STAGEDIR}${ETCDIR}
64
64
65
.include <bsd.port.mk>
65
.include <bsd.port.mk>
(-)b/games/minecraft-server/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1599911789
1
TIMESTAMP = 1604789143
2
SHA256 (minecraft-server-1.16.3/server.jar) = 32e450e74c081aec06dcfbadfa5ba9aa1c7f370bd869e658caec0c3004f7ad5b
2
SHA256 (minecraft-server-1.16.4/server.jar) = 444d30d903a1ef489b6737bb9d021494faf23434ca8568fd72ce2e3d40b32506
3
SIZE (minecraft-server-1.16.3/server.jar) = 37942656
3
SIZE (minecraft-server-1.16.4/server.jar) = 37961464

Return to bug 250935