summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-03-01 13:54:20 +0100
committerConrad Kostecki <conikost@gentoo.org>2022-03-01 13:57:23 +0100
commit72de559d28100027e95544a0d829660773ea2ecf (patch)
tree62e88d8806245d22141888e2bcb73d81c4aaea31 /games-server
parentwww-servers/webfs: Add webfsd (diff)
downloadgentoo-72de559d28100027e95544a0d829660773ea2ecf.tar.gz
gentoo-72de559d28100027e95544a0d829660773ea2ecf.tar.bz2
gentoo-72de559d28100027e95544a0d829660773ea2ecf.zip
games-server/minecraft-server: add 1.18.2
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'games-server')
-rw-r--r--games-server/minecraft-server/Manifest1
-rw-r--r--games-server/minecraft-server/minecraft-server-1.18.2.ebuild53
2 files changed, 54 insertions, 0 deletions
diff --git a/games-server/minecraft-server/Manifest b/games-server/minecraft-server/Manifest
index 85eabaa31e91..a6e2ff8c063b 100644
--- a/games-server/minecraft-server/Manifest
+++ b/games-server/minecraft-server/Manifest
@@ -1 +1,2 @@
DIST minecraft-server-1.18.1.jar 46324407 BLAKE2B bc974116c00692910955fab6fff2f21f4363c575b28e03af5e7750d98d8f0b9ed52123ac7fffbb0739c775f22190ace2ea7ebe916e1b4deafca82278c4f6a5af SHA512 cb306772c06e88b70475961ec1f057a9edfcef8db334479ec5c28e8b07287b3209bc54d83f7da7e8c63a8581e7ddbb93109acbf491ff74806b27486368640e71
+DIST minecraft-server-1.18.2.jar 46592587 BLAKE2B 1a6a1092fad0133a23a91e1db8d8057d418f52c23d04bcbe8e3578582bffe7d8c0e653c8893b78978fed05b2fc7b5f99643c35cae2c427d9ca76ff19aa6f8b58 SHA512 efc804cdce8b616126f1e0bb0bc43538571da85cd8cf25e8b0c9d787be6b2149319801389a90841b5450b029c248dda89de5d8295e93d0b58004d519c09b91a8
diff --git a/games-server/minecraft-server/minecraft-server-1.18.2.ebuild b/games-server/minecraft-server/minecraft-server-1.18.2.ebuild
new file mode 100644
index 000000000000..9eef37665ed4
--- /dev/null
+++ b/games-server/minecraft-server/minecraft-server-1.18.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+EGIT_COMMIT="c8f83c5655308435b3dcf03c06d9fe8740a77469"
+README_GENTOO_SUFFIX="-r1"
+
+inherit readme.gentoo-r1 java-pkg-2 systemd
+
+DESCRIPTION="The official server for the sandbox video game"
+HOMEPAGE="https://www.minecraft.net/"
+SRC_URI="https://launcher.mojang.com/v1/objects/${EGIT_COMMIT}/server.jar -> ${P}.jar"
+S="${WORKDIR}"
+
+LICENSE="Mojang"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+RESTRICT="bindist mirror"
+
+RDEPEND="
+ acct-group/minecraft
+ acct-user/minecraft
+ app-misc/dtach
+ || (
+ dev-java/openjdk:17
+ dev-java/openjdk-bin:17
+ )
+"
+
+src_unpack() {
+ cp "${DISTDIR}/${A}" "${WORKDIR}" || die
+}
+
+src_compile() {
+ :;
+}
+
+src_install() {
+ newbin "${FILESDIR}"/minecraft-server-bin minecraft-server
+
+ java-pkg_newjar minecraft-server-${PV}.jar minecraft-server.jar
+
+ newinitd "${FILESDIR}"/minecraft-server.initd-r5 minecraft-server
+ newconfd "${FILESDIR}"/minecraft-server.confd-r1 minecraft-server
+ systemd_newunit "${FILESDIR}"/minecraft-server.service minecraft-server@.service
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}