games-server/bedrock-server: add 1.21.123.2

Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
Conrad Kostecki 2025-11-13 22:46:04 +01:00
parent e345bfd575
commit 2e37091bb0
No known key found for this signature in database
GPG Key ID: 7A96AB564BF498FB
2 changed files with 64 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST bedrock-server-1.21.112.1.zip 75576009 BLAKE2B daca176562ca79e97daa39362b759ee73bd3d85bf730f13853b6413e9f233ef9bfcedf85a07646442739b2b8deaf66f49b007c3275e58df1b470fa54f8276c8b SHA512 b50b702257fcf4cb8f020d826e2089abf50f8402b8693f34511e89f427ab3d047519c199e691f16c2c4710d4cfa50abcec3673bcb8344a6ae41ecc4924c13ce8
DIST bedrock-server-1.21.123.2.zip 78653493 BLAKE2B d20f024f38a82b94ec094facfc63cd06bab41a7e5baf114daf868f12254491a14b2d38b9195d412f5b307afc6bfb0a4f8243c0811e83075f0f9503e669356bf5 SHA512 aed5f4d8db7c3e5386abc1215543712824df529fade397fd2aa74c5f18236f5c70a330311a69ae3ac10d9b6d6df9e31579232489274c3c2325acc8bf841e1b73

View File

@ -0,0 +1,63 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit systemd
DESCRIPTION="The official bedrock (non-java) based server for the sandbox video game"
HOMEPAGE="https://www.minecraft.net/"
SRC_URI="https://www.minecraft.net/bedrockdedicatedserver/bin-linux/${P}.zip"
S="${WORKDIR}"
LICENSE="Mojang"
SLOT="0"
KEYWORDS="-* ~amd64"
RDEPEND="
acct-group/bedrock
acct-user/bedrock
app-misc/dtach
net-misc/curl
"
BDEPEND="app-arch/unzip"
RESTRICT="bindist mirror"
DOCS=(
"bedrock_server_how_to.html"
"release-notes.txt"
)
QA_PREBUILT="opt/bedrock-server/bedrock_server"
pkg_nofetch() {
einfo "Unfortunately downloading Bedrock server via CLI doesn't work anymore,"
einfo "as Microsoft checks for user agent and otherwise you will get only timeout."
einfo "Please download yourself the Bedrock server from:"
einfo "https://www.minecraft.net/download/server/bedrock"
einfo "and place it in your DISTDIR."
}
src_compile() {
:;
}
src_install() {
exeinto /opt/bedrock-server
doexe bedrock_server
insinto /opt/bedrock-server
doins {allowlist,permissions}.json server.properties
doins -r {behavior,resource}_packs definitions
dodir /opt/bin
dosym ../bedrock-server/bedrock_server /opt/bin/bedrock-server
newinitd "${FILESDIR}"/bedrock-server.initd-r5 bedrock-server
newconfd "${FILESDIR}"/bedrock-server.confd bedrock-server
systemd_newunit "${FILESDIR}"/bedrock-server.service bedrock-server@.service
einstalldocs
}