From 026061ba423025e6713112920f290759cdee03c4 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 25 Dec 2023 19:30:41 +0000 Subject: gentoo auto-resync : 25:12:2023 - 19:30:41 --- games-server/bedrock-server/Manifest | 4 +- .../bedrock-server-1.20.51.01-r1.ebuild | 55 +++++++++++++++++++ .../bedrock-server-1.20.51.01.ebuild | 55 ------------------- .../bedrock-server/files/bedrock-server.initd-r4 | 62 ---------------------- .../bedrock-server/files/bedrock-server.initd-r5 | 62 ++++++++++++++++++++++ 5 files changed, 119 insertions(+), 119 deletions(-) create mode 100644 games-server/bedrock-server/bedrock-server-1.20.51.01-r1.ebuild delete mode 100644 games-server/bedrock-server/bedrock-server-1.20.51.01.ebuild delete mode 100644 games-server/bedrock-server/files/bedrock-server.initd-r4 create mode 100644 games-server/bedrock-server/files/bedrock-server.initd-r5 (limited to 'games-server/bedrock-server') diff --git a/games-server/bedrock-server/Manifest b/games-server/bedrock-server/Manifest index 3239ad79bb4a..55f9ee674a4b 100644 --- a/games-server/bedrock-server/Manifest +++ b/games-server/bedrock-server/Manifest @@ -1,6 +1,6 @@ AUX bedrock-server.confd 317 BLAKE2B 47308c295519e0c92653a738aafd3044120c8f86d70050d639a0a1b05cf3cc1c8858bab713cc3b63cabb61c821d8292e95c9011c7af6593a4d8070722733f49d SHA512 9f6300b46680663b5a58a9b873fbbfd912c04fb3272a5528b64b6a32e5492ff1b66e9eafea65d17ff36defa006727b307ac130461846cd6742512bad3061db58 -AUX bedrock-server.initd-r4 1944 BLAKE2B 9870b09a447588ed0dbfe49bdeee928d54e8ea788a50dc834ea761ef8dcbf21696214ff3370f43de3218e202a5ad786b972c77a679a7cd0d2d1ef38f43db67de SHA512 3281e15bf7a4b87cd1b53b755c1695d77f2de0b7ea23ebdedf0bea60013c5d79f563fdbab3de421bfa50c3d2f24e93c39f49525d8157ca9e649d206a1cb80dfd +AUX bedrock-server.initd-r5 1924 BLAKE2B 23cc0671510b17d3a24f2c11688d18111b5e6a38918ea1c9c0973bc8fa26b58f4b59d8a48d68d84b16b89ebccb5da56c986e98ff8b637fb13512804c6c74f8f1 SHA512 7eee4d085a7377e72cd5e9b8e8445beabb322c4d13f9564e5ccd45a76c91b209a4fbc00f08ecaecb1091e4a3d62354b83fe6999b2839f9d3c63b6cdbb78bd757 AUX bedrock-server.service 1045 BLAKE2B 3db6cd6ac572a1f1ae47d6d4f38ce9a9a206f1a6aafe7fc329861b9037cfdb05f903f3458cc8244d5b9539d74d3cd12accd391c99fc3bf08afa3a0122a1ed14e SHA512 575a621e69a297ee02d9b5d846320f598363fd48f9d58dceafd24f21e5c31dd5609dc4af110f36954787bb537907e9b36d43bce8c8f0f4025528f58685d5438d DIST bedrock-server-1.20.51.01.zip 121562366 BLAKE2B 3c791124d2b6e31c416a28b4a8dbf87f818ddfacd9b0c96c71467ff83635ead530d6fb436cd25665f746e952ec9de080dd0398b89c2ef1404a86258dc4323ff8 SHA512 521f7da979a6eb236f42291b89c602aa9aa6fd50a33e52b954de012ca2511bcb40fbfbcf14821c1007c694ca6c98b370114e632abc60da210c034ce2500c4338 -EBUILD bedrock-server-1.20.51.01.ebuild 1146 BLAKE2B 8dd2562d3659eac61c9885835fb4997344e1cf44dee2f3360f85c4d2f9c35ec19b5aa4a726263e80f68cd17133835a89dbdbee08565c44ff1c5330b4246ed5cd SHA512 dd9f03a4ee23db3db71274f7948a89e409931bb7b9d443ae1d766837a4c571ae91e237f34d01b6d23051f995a9ec9d5a3d07ce023d1bbaa36fdd5a30ce7ca353 +EBUILD bedrock-server-1.20.51.01-r1.ebuild 1146 BLAKE2B f53488a83761a1d6f1534efe3e3d0cb043873de6b2de24916759f338a9b3d6ac6f7c40f616bd6481a5a8330e5d66ae0a5d22a7c2bc045664b840a359b5a40d87 SHA512 8a4f0268cddae0fa419b68d8211f402c7a6f3681e093d9ed378ae9bc9862466b6e70ddb3843453903a6b69c90330dec6c2fa214bdeabf4704e010cb98579d39b MISC metadata.xml 676 BLAKE2B ae3d24e16c5da237df029cc571c6f7099c0e292524633990f92a16075a901191b0aade76429014bb02c95d8032b08436d79599eaafa4fea16345e63dd9180b94 SHA512 df3a66bb13e34ed64a3c5a7974a1aa6b5b4d8b9589a4f9bc08ac74a6cf6f7f8886373963b4d5532a3ca86a2ca48bd7a6f58500622741109273e8ec670ca290f7 diff --git a/games-server/bedrock-server/bedrock-server-1.20.51.01-r1.ebuild b/games-server/bedrock-server/bedrock-server-1.20.51.01-r1.ebuild new file mode 100644 index 000000000000..694410ea0565 --- /dev/null +++ b/games-server/bedrock-server/bedrock-server-1.20.51.01-r1.ebuild @@ -0,0 +1,55 @@ +# 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 + 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" + +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 +} diff --git a/games-server/bedrock-server/bedrock-server-1.20.51.01.ebuild b/games-server/bedrock-server/bedrock-server-1.20.51.01.ebuild deleted file mode 100644 index 885e6a8334b8..000000000000 --- a/games-server/bedrock-server/bedrock-server-1.20.51.01.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# 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 - 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" - -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.initd-r4 b/games-server/bedrock-server/files/bedrock-server.initd-r4 deleted file mode 100644 index 2bc351490e96..000000000000 --- a/games-server/bedrock-server/files/bedrock-server.initd-r4 +++ /dev/null @@ -1,62 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -if [ "${SVCNAME}" = "bedrock-server" ]; then - instance="main" -else - instance="${SVCNAME#*.}" -fi - -bedrock_command="/opt/bin/bedrock-server" -bedrock_path="/var/lib/bedrock-server" -bedrock_path_data="/opt/bedrock-server" -bedrock_path_instance="${bedrock_path}/${instance}" -dtach_tmpfile="$(mktemp -u)" -name="Minecraft Bedrock server (${instance})" -pidfile="/run/bedrock-server.${instance}.pid" -start_stop_daemon_args="--chdir ${bedrock_path_instance}" - -description_attach="Attaches to the session (interactive console) of the Minecraft Bedrock server" -extra_started_commands="attach" - -command="/usr/bin/dtach" -command_background="true" -command_args="-N ${dtach_tmpfile} ${bedrock_command}" -command_group="bedrock" -command_user="bedrock" - -depend() { - use net -} - -start_pre() { - checkpath -d -o "${command_user}:${command_group}" -q "${bedrock_path}" "${bedrock_path_instance}" - - set -- "allowlist.json" "permissions.json" "server.properties" - for bedrock_config in $@; do - if [ ! -f "${bedrock_path_instance}/${bedrock_config}" ]; then - cp "${bedrock_path_data}/${bedrock_config}" "${bedrock_path_instance}" - checkpath -f -o "${command_user}:${command_group}" -q "${bedrock_path_instance}/${bedrock_config}" - fi - done - - set -- "behavior_packs" "definitions" "resource_packs" "structures" - for bedrock_ressource in $@; do - if [ ! -L "${bedrock_path_instance}/${bedrock_ressource}" ]; then - ln -sf "${bedrock_path_data}/${bedrock_ressource}" "${bedrock_path_instance}" - fi - done -} - -attach() { - pidnumber="$(cat ${pidfile})" - dtach_tmpfile="$(cat /proc/${pidnumber}/cmdline | tr '\0' ' ' | awk '{print $3}')" - - if [ -S "${dtach_tmpfile}" ]; then - eval "${command}" -a "${dtach_tmpfile}" "${DTACH_OPTS}" - else - eerror "The determined socket file for dtach could not be found!" - eerror "Did the process crash?" - fi -} diff --git a/games-server/bedrock-server/files/bedrock-server.initd-r5 b/games-server/bedrock-server/files/bedrock-server.initd-r5 new file mode 100644 index 000000000000..40946197b7c5 --- /dev/null +++ b/games-server/bedrock-server/files/bedrock-server.initd-r5 @@ -0,0 +1,62 @@ +#!/sbin/openrc-run +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +if [ "${SVCNAME}" = "bedrock-server" ]; then + instance="main" +else + instance="${SVCNAME#*.}" +fi + +bedrock_command="/opt/bin/bedrock-server" +bedrock_path="/var/lib/bedrock-server" +bedrock_path_data="/opt/bedrock-server" +bedrock_path_instance="${bedrock_path}/${instance}" +directory="${bedrock_path_instance}/" +dtach_tmpfile="$(mktemp -u)" +name="Minecraft Bedrock server (${instance})" +pidfile="/run/bedrock-server.${instance}.pid" + +description_attach="Attaches to the session (interactive console) of the Minecraft Bedrock server" +extra_started_commands="attach" + +command="/usr/bin/dtach" +command_background="true" +command_args="-N ${dtach_tmpfile} ${bedrock_command}" +command_group="bedrock" +command_user="bedrock" + +depend() { + use net +} + +start_pre() { + checkpath -d -o "${command_user}:${command_group}" -q "${bedrock_path}" "${bedrock_path_instance}" + + set -- "allowlist.json" "permissions.json" "server.properties" + for bedrock_config in $@; do + if [ ! -f "${bedrock_path_instance}/${bedrock_config}" ]; then + cp "${bedrock_path_data}/${bedrock_config}" "${bedrock_path_instance}" + checkpath -f -o "${command_user}:${command_group}" -q "${bedrock_path_instance}/${bedrock_config}" + fi + done + + set -- "behavior_packs" "definitions" "resource_packs" "structures" + for bedrock_ressource in $@; do + if [ ! -L "${bedrock_path_instance}/${bedrock_ressource}" ]; then + ln -sf "${bedrock_path_data}/${bedrock_ressource}" "${bedrock_path_instance}" + fi + done +} + +attach() { + pidnumber="$(cat ${pidfile})" + dtach_tmpfile="$(cat /proc/${pidnumber}/cmdline | tr '\0' ' ' | awk '{print $3}')" + + if [ -S "${dtach_tmpfile}" ]; then + eval "${command}" -a "${dtach_tmpfile}" "${DTACH_OPTS}" + else + eerror "The determined socket file for dtach could not be found!" + eerror "Did the process crash?" + fi +} -- cgit v1.2.3