diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2022-08-05 19:10:13 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2022-08-05 19:10:13 +0200 |
commit | e0a8503e19d5768e9d42b755ccc1bcb41d9ff1f6 (patch) | |
tree | 9dc91dd4f700d6173bc7b212b0c771589dd9ee2a /games-server/minecraft-server | |
parent | media-sound/teamspeak-client: fix SRC_URI (diff) | |
download | gentoo-e0a8503e19d5768e9d42b755ccc1bcb41d9ff1f6.tar.gz gentoo-e0a8503e19d5768e9d42b755ccc1bcb41d9ff1f6.tar.bz2 gentoo-e0a8503e19d5768e9d42b755ccc1bcb41d9ff1f6.zip |
games-server/minecraft-server: add 1.19.2
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'games-server/minecraft-server')
-rw-r--r-- | games-server/minecraft-server/Manifest | 1 | ||||
-rw-r--r-- | games-server/minecraft-server/minecraft-server-1.19.2.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/games-server/minecraft-server/Manifest b/games-server/minecraft-server/Manifest index 7efbf2ac71d6..7c5280b437dd 100644 --- a/games-server/minecraft-server/Manifest +++ b/games-server/minecraft-server/Manifest @@ -1,2 +1,3 @@ DIST minecraft-server-1.19.1.jar 45609936 BLAKE2B 2d9fae53c78dbab85d768577f98f8ad9eeda6ee57c87a0585a706e209a6d7c8c4c30c84ba39ae4041e4753b511e9f35e48d441f6f4b00a83c5e27965aa62554d SHA512 9ba0605e29d0923170512412ec91e1656d4ddf7420a25f5b031c6e84551feb837398402171fea4f26123a72f0965bdba26bddb2626df51e71168408ecb081044 +DIST minecraft-server-1.19.2.jar 45609512 BLAKE2B bf754085c86903e601e529651c2442ae933cbb53582e7fc917d21f454f49a2c5fa66a75e24736ab5c9e4c24e5172dfa9780c7f16b2d801cd36bbb0e3f4f088ba SHA512 4af9474416abd22ccfe42a230b7ffff6a1fb82cdc7aa5994f6788223ab12149a26bcf76443752e7ce8c2fc3fef0535f704bdba786a95210fb4bac1b45b72a8c9 DIST minecraft-server-1.19.jar 45538778 BLAKE2B 1f71b5f80746394fd747f6fecbdcecfb125f893dfc51aaf153150a16aa77894b6e8487dfd7b8f87000ff12f49135caa07221a2b885481ae20f54fa2cb4d6d1c8 SHA512 46db739cc49f5f3a31478467c0a470e35ef4c61e5030a9617f32da32efc45e290a2771d9b729b5272b1b6176cc5ca6675100f7fa1ba6e510a68b6cb96c7c88a8 diff --git a/games-server/minecraft-server/minecraft-server-1.19.2.ebuild b/games-server/minecraft-server/minecraft-server-1.19.2.ebuild new file mode 100644 index 000000000000..142e35774045 --- /dev/null +++ b/games-server/minecraft-server/minecraft-server-1.19.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="f69c284232d7c7580bd89a5a4931c3581eae1378" +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 +} |