summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2021-06-20 01:32:47 +0200
committerConrad Kostecki <conikost@gentoo.org>2021-06-20 01:35:28 +0200
commit21916ae7e81f445f8f908fc8c9b16c9f14a489fa (patch)
treed08937f42d57125f1d5babfd38e6355e76effe5d /games-server/minecraft-server
parentapp-benchmarks/stress-ng: bump to version 0.12.10 (diff)
downloadgentoo-21916ae7e81f445f8f908fc8c9b16c9f14a489fa.tar.gz
gentoo-21916ae7e81f445f8f908fc8c9b16c9f14a489fa.tar.bz2
gentoo-21916ae7e81f445f8f908fc8c9b16c9f14a489fa.zip
games-server/minecraft-server: bump to version 1.17
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'games-server/minecraft-server')
-rw-r--r--games-server/minecraft-server/Manifest1
-rw-r--r--games-server/minecraft-server/minecraft-server-1.17.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/games-server/minecraft-server/Manifest b/games-server/minecraft-server/Manifest
index 5b8c162f4257..3ebdf77a9b1f 100644
--- a/games-server/minecraft-server/Manifest
+++ b/games-server/minecraft-server/Manifest
@@ -1 +1,2 @@
DIST minecraft-server-1.16.5.jar 37962360 BLAKE2B 355715b809c09581e457f54618bd6ddab91b1c488d709d402fa6690d32244298d44191d439b8d9f27f4853f7e7658bfa2db88b61697a1caeb66da76ab211d9f8 SHA512 8321c50d788c6a3a3e8b2146bf1b20f6a3da87dd21ec4bd1fda0031d26f728d64e56a6a230ba5d857f4d500d7ba281eb4e3c28b6715f29d8dcba79d8c0ddf03f
+DIST minecraft-server-1.17.jar 43621201 BLAKE2B f92b43e33e17e0cdada880e969ff05cdf79af7ff96c2e8043010bfff303ffad702fa9aa3cd8247e6092e64f4ba87562c458d95e38b26f7e52306fefbe5b2c30b SHA512 d8c7658f2fedeb0ce60be24935e5543135200feae53bcaec510fcb86b93a18ac3464527a4d657c886f5ecaca89f1a7701cb03d6656efcb5c19e2156e59feef5a
diff --git a/games-server/minecraft-server/minecraft-server-1.17.ebuild b/games-server/minecraft-server/minecraft-server-1.17.ebuild
new file mode 100644
index 000000000000..4eb5c360d41f
--- /dev/null
+++ b/games-server/minecraft-server/minecraft-server-1.17.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+EGIT_COMMIT="0a269b5f2c5b93b1712d0f5dc43b6182b9ab254e"
+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"
+
+LICENSE="Mojang"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+RDEPEND="
+ acct-group/minecraft
+ acct-user/minecraft
+ app-misc/dtach
+ || (
+ >=virtual/jre-1.8
+ >=virtual/jdk-1.8
+ )
+"
+
+RESTRICT="bindist mirror"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ cp "${DISTDIR}/${A}" "${WORKDIR}" || die
+}
+
+src_compile() {
+ :;
+}
+
+src_install() {
+ java-pkg_newjar minecraft-server-${PV}.jar minecraft-server.jar
+ java-pkg_dolauncher minecraft-server --jar minecraft-server.jar --java_args "\${JAVA_OPTS}"
+
+ newinitd "${FILESDIR}"/minecraft-server.initd-r4 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
+}