summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conrad@kostecki.com>2019-08-06 20:42:01 +0200
committerJoonas Niilola <juippis@gentoo.org>2019-08-07 18:34:52 +0300
commitd5a6f5dba0004999aaac2987cd7b7cae9d7c000b (patch)
tree957230d6b254137df201ed6721de01fcd0cfddb6 /games-server
parentacct-user/minecraft: add user for games-server/minecraft-server (diff)
downloadgentoo-d5a6f5dba0004999aaac2987cd7b7cae9d7c000b.tar.gz
gentoo-d5a6f5dba0004999aaac2987cd7b7cae9d7c000b.tar.bz2
gentoo-d5a6f5dba0004999aaac2987cd7b7cae9d7c000b.zip
games-server/minecraft-server: bump to version 1.14.4
Also updated to EAPI=7 and dropped user eclass in favour of acct-* packages. Package-Manager: Portage-2.3.70, Repoman-2.3.16 Signed-off-by: Conrad Kostecki <conrad@kostecki.com> Signed-off-by: Joonas Niilola <juippis@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.4.ebuild57
2 files changed, 58 insertions, 0 deletions
diff --git a/games-server/minecraft-server/Manifest b/games-server/minecraft-server/Manifest
index 56408723aea3..22dc6af96c12 100644
--- a/games-server/minecraft-server/Manifest
+++ b/games-server/minecraft-server/Manifest
@@ -1,2 +1,3 @@
DIST minecraft-server-1.13.2.jar 33835116 BLAKE2B 4d92068d51555ab44a2efcdbb1676ef34a7085e4d666a7915c4c5a3d1f9502536df4bf67909d27b7b94cb8ebb483dc55f935f21930d4bc454645ed44ef8e6ed8 SHA512 c9a98f1d224519369d6c4882cfe93a94983661c0c0b8a7f0b2f271af752fde5693025b684a01665992b3c70b37ac891ce1747f062bd86354777c416219629b64
DIST minecraft-server-1.14.2.jar 35932967 BLAKE2B 1dbba4ae065a05539db59412c393de9c183384ce5c4edf2f19ffd702c60e1f85c10362abd3f75c01bff08d764bdcab2783c569ea722d582ef1049d7a688f2448 SHA512 9670c1038aa23c3012241a5a103ab5a3e989efcb13edd45f318f92e9968f5f2e99314d3edd0c6851238772e2e1cc5b4bdaeac686a7622e321ac81bf40e2a3cf7
+DIST minecraft-server-1.14.4.jar 35958734 BLAKE2B 058d6609296394e4714a159976d4de0261a552a919e33db1e54d97e3d2ee90cd4356b60190b807050d3c7ab336149d1c9be55093ba002735ccc6a162706c6ee3 SHA512 b3d2852c6fa1b996bbf2fa9fc1fb860c6bca5136bcc5ddd3d236d85789c6bce81620f6b2d69eaa10c41d020fe0bb54de2fa601b3df3093af2691853a4445e1f8
diff --git a/games-server/minecraft-server/minecraft-server-1.14.4.ebuild b/games-server/minecraft-server/minecraft-server-1.14.4.ebuild
new file mode 100644
index 000000000000..c0814321c97e
--- /dev/null
+++ b/games-server/minecraft-server/minecraft-server-1.14.4.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+EGIT_COMMIT="3dc3d84a581f14691199cf6831b71ed1296a9fdf"
+
+inherit readme.gentoo-r1 java-pkg-2
+
+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 ~x86"
+
+RDEPEND="
+ acct-group/minecraft
+ acct-user/minecraft
+ app-misc/screen
+ || (
+ >=virtual/jre-1.8
+ >=virtual/jdk-1.8
+ )
+"
+
+RESTRICT="bindist mirror strip"
+
+S="${WORKDIR}"
+
+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
+}