summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conrad@kostecki.com>2019-04-25 22:50:11 +0200
committerStefan Strogin <steils@gentoo.org>2019-05-31 20:59:28 +0300
commit2b4c9cf5a2bb9bc6542b2af7b160d0a71ec3e630 (patch)
treece9b4773145bc383d7fe099751f2ebdda4010ec5 /games-server
parentsys-kernel/gentoo-sources: Linux patch 4.14.123 (diff)
downloadgentoo-2b4c9cf5a2bb9bc6542b2af7b160d0a71ec3e630.tar.gz
gentoo-2b4c9cf5a2bb9bc6542b2af7b160d0a71ec3e630.tar.bz2
gentoo-2b4c9cf5a2bb9bc6542b2af7b160d0a71ec3e630.zip
games-server/minecraft-server: bump to version 1.14.2
Package-Manager: Portage-2.3.64, Repoman-2.3.12 Signed-off-by: Conrad Kostecki <conrad@kostecki.com> Closes: https://github.com/gentoo/gentoo/pull/11826 Signed-off-by: Stefan Strogin <steils@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.14.2.ebuild57
2 files changed, 58 insertions, 0 deletions
diff --git a/games-server/minecraft-server/Manifest b/games-server/minecraft-server/Manifest
index cacf4f40d211..56408723aea3 100644
--- a/games-server/minecraft-server/Manifest
+++ b/games-server/minecraft-server/Manifest
@@ -1 +1,2 @@
DIST minecraft-server-1.13.2.jar 33835116 BLAKE2B 4d92068d51555ab44a2efcdbb1676ef34a7085e4d666a7915c4c5a3d1f9502536df4bf67909d27b7b94cb8ebb483dc55f935f21930d4bc454645ed44ef8e6ed8 SHA512 c9a98f1d224519369d6c4882cfe93a94983661c0c0b8a7f0b2f271af752fde5693025b684a01665992b3c70b37ac891ce1747f062bd86354777c416219629b64
+DIST minecraft-server-1.14.2.jar 35932967 BLAKE2B 1dbba4ae065a05539db59412c393de9c183384ce5c4edf2f19ffd702c60e1f85c10362abd3f75c01bff08d764bdcab2783c569ea722d582ef1049d7a688f2448 SHA512 9670c1038aa23c3012241a5a103ab5a3e989efcb13edd45f318f92e9968f5f2e99314d3edd0c6851238772e2e1cc5b4bdaeac686a7622e321ac81bf40e2a3cf7
diff --git a/games-server/minecraft-server/minecraft-server-1.14.2.ebuild b/games-server/minecraft-server/minecraft-server-1.14.2.ebuild
new file mode 100644
index 000000000000..3d9540765c05
--- /dev/null
+++ b/games-server/minecraft-server/minecraft-server-1.14.2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PV="808be3869e2ca6b62378f9f4b33c946621620019"
+
+inherit readme.gentoo-r1 java-pkg-2 user
+
+DESCRIPTION="The official server for the sandbox video game"
+HOMEPAGE="https://www.minecraft.net/"
+SRC_URI="https://launcher.mojang.com/v1/objects/${MY_PV}/server.jar -> ${P}.jar"
+
+LICENSE="Mojang"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ app-misc/screen
+ >=virtual/jre-1.8
+"
+
+RESTRICT="bindist mirror strip"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ enewgroup minecraft
+ enewuser minecraft -1 -1 /var/lib/minecraft-server minecraft
+}
+
+src_unpack() {
+ # Don't unpack that jar, just copy it to WORKDIR
+ 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-r2 minecraft-server
+ newconfd "${FILESDIR}"/minecraft-server.confd minecraft-server
+
+ diropts -o minecraft -g minecraft
+ keepdir /var/lib/minecraft-server
+ keepdir /var/log/minecraft-server
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}