git: 05fed70d47d6 - 2026Q1 - games/minecraft-server: Fix java version in rc script
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 23 Mar 2026 12:20:55 UTC
The branch 2026Q1 has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=05fed70d47d67476c9721512bbf8e899a5b1a7f9
commit 05fed70d47d67476c9721512bbf8e899a5b1a7f9
Author: Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2026-03-23 12:00:29 +0000
Commit: Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-03-23 12:20:23 +0000
games/minecraft-server: Fix java version in rc script
The service fails to start - the default value for the Java version was
"21+" instead of the specific "N" selected during build according to
DEFAULT_VERSIONS+=java=N.
Replace JAVA_VERSION with JAVA_PORT_VERSION in SUB_LIST.
Approved by: blanket (fix runtime)
MFH: 2026Q1
(cherry picked from commit 7847d2d4477afd99b738a5bc6a8f07c05d14cb81)
---
games/minecraft-server/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/games/minecraft-server/Makefile b/games/minecraft-server/Makefile
index 71bea000ef10..ad992dc194c4 100644
--- a/games/minecraft-server/Makefile
+++ b/games/minecraft-server/Makefile
@@ -1,5 +1,6 @@
PORTNAME= minecraft-server
DISTVERSION= 1.21.11
+PORTREVISION= 2
CATEGORIES= games java
MASTER_SITES= https://piston-data.mojang.com/v1/objects/64bb6d763bed0a9f1d632ec347938594144943ed/
DISTNAME= server
@@ -22,7 +23,7 @@ JAVA_VERSION= 21+
NO_ARCH= yes
NO_BUILD= yes
SUB_FILES= minecraft-server pkg-deinstall pkg-message
-SUB_LIST= JAVA_VERSION=${JAVA_VERSION} VERSION=${DISTVERSION}
+SUB_LIST= JAVA_VERSION=${JAVA_PORT_VERSION} VERSION=${DISTVERSION}
USERS= mcserver
GROUPS= ${USERS}