summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2023-02-28 01:41:10 +0100
committerConrad Kostecki <conikost@gentoo.org>2023-02-28 01:42:44 +0100
commitec91a35d8e775b39fb00396eebf4e5c937812261 (patch)
tree0dd4a0d6dd6dacc363bfe248e744976c2bcf1c43 /games-server
parentwww-servers/nginx-unit: Support nginx-unit user and group (diff)
downloadgentoo-ec91a35d8e775b39fb00396eebf4e5c937812261.tar.gz
gentoo-ec91a35d8e775b39fb00396eebf4e5c937812261.tar.bz2
gentoo-ec91a35d8e775b39fb00396eebf4e5c937812261.zip
games-server/bedrock-server: add 1.19.63.01
Closes: https://bugs.gentoo.org/895492 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'games-server')
-rw-r--r--games-server/bedrock-server/Manifest1
-rw-r--r--games-server/bedrock-server/bedrock-server-1.19.63.01.ebuild56
-rw-r--r--games-server/bedrock-server/files/bedrock-server.service22
3 files changed, 79 insertions, 0 deletions
diff --git a/games-server/bedrock-server/Manifest b/games-server/bedrock-server/Manifest
index d31150c7a61a..c666e63329c1 100644
--- a/games-server/bedrock-server/Manifest
+++ b/games-server/bedrock-server/Manifest
@@ -1,2 +1,3 @@
DIST bedrock-server-1.19.51.01.zip 76976732 BLAKE2B 30ed7a0ba1d2d13b91c5400e17a4facf92a540bf96216dd2fd6cce2d67e5576a8dc73e1c534bb7d0c3afff54cfd3a2715b1c10ecbde3129880003a55fd58fa5e SHA512 b4554cb0fe66bc742d80e2c6143faa6ad10412645207a845a84cbd99550888a0e9e80df764419ff50b24abbdd63d1260c2532c79add2dd4e012604e5bff59173
DIST bedrock-server-1.19.62.01.zip 77824871 BLAKE2B 9b3d875cf798ba0d68e2a95a78ba24ff4635751c910fadb70949bcb395f4f37fef425328a8268045f1ec52f2bc171df461706d549f0e656c46834564feec4c97 SHA512 8ec08145ff7b7ef646084bcb5bd242c762ff3e9ca6e1aedcf04e04f6e6521fb5b52f2cd3c8906af64c23b62b3ab5a0ef422c17428b91b438249870cb0bf15caf
+DIST bedrock-server-1.19.63.01.zip 77829248 BLAKE2B 3df63ef618242afc27245d0cee1b2216722315f268d0be3e2b4f4ca588463603389ec11d97a4b4272327edbd1e7307fa2f42fe0c21cbf00c4a03c72f187e45e9 SHA512 59e52498b2d6e3d97ae588e1910f9adcc0039319738d3ade7539252129d3a4c22014d44aa48ec0feb92776fd611e9b456f6d09e133b23916e84db5899edd8a00
diff --git a/games-server/bedrock-server/bedrock-server-1.19.63.01.ebuild b/games-server/bedrock-server/bedrock-server-1.19.63.01.ebuild
new file mode 100644
index 000000000000..aa93f6d0bc04
--- /dev/null
+++ b/games-server/bedrock-server/bedrock-server-1.19.63.01.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2023 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://minecraft.azureedge.net/bin-linux/${P}.zip"
+S="${WORKDIR}"
+
+LICENSE="Mojang"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+
+RDEPEND="
+ acct-group/bedrock
+ acct-user/bedrock
+ app-misc/dtach
+ dev-libs/openssl:0/1.1
+ sys-libs/zlib
+"
+
+BDEPEND="app-arch/unzip"
+
+RESTRICT="bindist mirror"
+
+DOCS=(
+ "bedrock_server_how_to.html"
+ "release-notes.txt"
+)
+
+QA_PREBUILT="opt/bedrock-server/bedrock_server"
+
+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-r4 bedrock-server
+ newconfd "${FILESDIR}"/bedrock-server.confd bedrock-server
+ systemd_newunit "${FILESDIR}"/bedrock-server.service bedrock-server@.service
+
+ einstalldocs
+}
diff --git a/games-server/bedrock-server/files/bedrock-server.service b/games-server/bedrock-server/files/bedrock-server.service
new file mode 100644
index 000000000000..043f2d9e04b1
--- /dev/null
+++ b/games-server/bedrock-server/files/bedrock-server.service
@@ -0,0 +1,22 @@
+[Unit]
+Description=Bedrock Server (World: %I)
+After=network.target
+
+[Service]
+User=bedrock
+Group=bedrock
+WorkingDirectory=-/var/lib/bedrock-server/%I
+PIDFile=/run/bedrock-server.%I.pid
+ExecStartPre=!/bin/mkdir -p /var/lib/bedrock-server/%I
+ExecStartPre=!/bin/cp -n /opt/bedrock-server/allowlist.json /var/lib/bedrock-server/%I/
+ExecStartPre=!/bin/cp -n /opt/bedrock-server/permissions.json /var/lib/bedrock-server/%I/
+ExecStartPre=!/bin/cp -n /opt/bedrock-server/server.properties /var/lib/bedrock-server/%I/
+ExecStartPre=!/bin/ln -sf /opt/bedrock-server/behavior_packs /var/lib/bedrock-server/%I/
+ExecStartPre=!/bin/ln -sf /opt/bedrock-server/definitions /var/lib/bedrock-server/%I/
+ExecStartPre=!/bin/ln -sf /opt/bedrock-server/resource_packs /var/lib/bedrock-server/%I/
+ExecStartPre=!/bin/ln -sf /opt/bedrock-server/structures /var/lib/bedrock-server/%I/
+ExecStartPre=!/bin/chown -R bedrock:bedrock /var/lib/bedrock-server/%I
+ExecStart=/bin/sh -c '/usr/bin/dtach -N $(mktemp -u) /opt/bin/bedrock-server'
+
+[Install]
+WantedBy=multi-user.target