diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2021-12-11 00:31:20 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2021-12-11 00:36:46 +0100 |
commit | 6b87a95efc7a613a60d35bfd87b467c04b038837 (patch) | |
tree | 96b5c8057d0afe0019dfea9a0e7bf9c944365f70 /games-server | |
parent | net-wireless/unifi: bump to EAPI=8 (diff) | |
download | gentoo-6b87a95efc7a613a60d35bfd87b467c04b038837.tar.gz gentoo-6b87a95efc7a613a60d35bfd87b467c04b038837.tar.bz2 gentoo-6b87a95efc7a613a60d35bfd87b467c04b038837.zip |
games-server/minecraft-server: add 1.18.1
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'games-server')
-rw-r--r-- | games-server/minecraft-server/Manifest | 1 | ||||
-rw-r--r-- | games-server/minecraft-server/minecraft-server-1.18.1.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/games-server/minecraft-server/Manifest b/games-server/minecraft-server/Manifest index 7e5df1a3842c..d3a9c59788ea 100644 --- a/games-server/minecraft-server/Manifest +++ b/games-server/minecraft-server/Manifest @@ -1,2 +1,3 @@ DIST minecraft-server-1.16.5.jar 37962360 BLAKE2B 355715b809c09581e457f54618bd6ddab91b1c488d709d402fa6690d32244298d44191d439b8d9f27f4853f7e7658bfa2db88b61697a1caeb66da76ab211d9f8 SHA512 8321c50d788c6a3a3e8b2146bf1b20f6a3da87dd21ec4bd1fda0031d26f728d64e56a6a230ba5d857f4d500d7ba281eb4e3c28b6715f29d8dcba79d8c0ddf03f +DIST minecraft-server-1.18.1.jar 46324407 BLAKE2B bc974116c00692910955fab6fff2f21f4363c575b28e03af5e7750d98d8f0b9ed52123ac7fffbb0739c775f22190ace2ea7ebe916e1b4deafca82278c4f6a5af SHA512 cb306772c06e88b70475961ec1f057a9edfcef8db334479ec5c28e8b07287b3209bc54d83f7da7e8c63a8581e7ddbb93109acbf491ff74806b27486368640e71 DIST minecraft-server-1.18.jar 46323386 BLAKE2B f603477f69b0c675cff45585329dfd97f94343655946475b81d272e1ce27e08d79d3f9bdc07a476cfe2794602eaa83e353ebecdbc61043ff4f4b335a55639f08 SHA512 be8face6d0ad94578afa520eb0eecde31c1e3ea711a6f5349e0fa1a26e95069cc3a409435e37adc6a3d871a82ddfb86de8af3395c06b11148921058c220b03d0 diff --git a/games-server/minecraft-server/minecraft-server-1.18.1.ebuild b/games-server/minecraft-server/minecraft-server-1.18.1.ebuild new file mode 100644 index 000000000000..ef5ec5501504 --- /dev/null +++ b/games-server/minecraft-server/minecraft-server-1.18.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +EGIT_COMMIT="125e5adf40c659fd3bce3e66e67a16bb49ecc1b9" +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 +} |