diff options
Diffstat (limited to 'net-misc/rabbitmq-server')
-rw-r--r-- | net-misc/rabbitmq-server/Manifest | 4 | ||||
-rw-r--r-- | net-misc/rabbitmq-server/metadata.xml | 3 | ||||
-rw-r--r-- | net-misc/rabbitmq-server/rabbitmq-server-3.12.9.ebuild | 91 |
3 files changed, 97 insertions, 1 deletions
diff --git a/net-misc/rabbitmq-server/Manifest b/net-misc/rabbitmq-server/Manifest index 25be8c4076b9..c6cfb251cfc5 100644 --- a/net-misc/rabbitmq-server/Manifest +++ b/net-misc/rabbitmq-server/Manifest @@ -2,5 +2,7 @@ AUX rabbitmq-script-wrapper 1855 BLAKE2B ee6fe4ab1688edfdf4933754d192a851c2e5856 AUX rabbitmq-server.init-r4 652 BLAKE2B 4366ea0da306ac5a23bdf6803d81216fd39b1446ccc3d6b12a052e36f05e9fb152da368cffc63d0854cf1bfb2ca8e27f70c8ced0ddfda1954d63b21dc3fb0582 SHA512 a30b632474dca6b34ca9931a358e365c5fe0c25015c4baa0be1dcbea8dd4eaba35a5eeb4c25fcdbb3fdb573dea5d3435ab3672559ecd7619a2bfe1dcc1392693 AUX rabbitmq.service 314 BLAKE2B 5489ba8c773f7eccf335d34e3ead22f240fc12e1d089f33218027f9895e91ebca76ad8ba450ca6ca01568c4c67f035b14a912a2352922f7ed7287e27627f9569 SHA512 8bf25da162ef336f9eb3f69f871b0945f7b02243da8a4d800e759266236ef84740988e2e33f88f4906f08a63cab49dbae87c868f69ee89df995170d7d2ae9457 DIST rabbitmq-server-3.11.2.tar.xz 3752644 BLAKE2B bc98808579cbaa12371fc95d137fd18a0d784a859471d4dac6c328e819bb7ba5cb0256509a678788452f6dbeaa6fc48b4dbe39b24bd7cf0b1698fb6e4f67cb03 SHA512 ceec07fb9dfe8ba76850aa94543396a4e878aca13b9e3e303e86bb44bbbb1cea863148a1480b83517bfd2bdc66b814c3177ad2ed595604f5710f8f98e8dcc439 +DIST rabbitmq-server-3.12.9.tar.xz 4437392 BLAKE2B 19c1e88e79c29af0c06d732d25098ee7b5575e8f269ba08e3247a65ba206c8cdc819767572071063dcbd8816756366d0a3f059d8e060ffe47fb221e1546b4c23 SHA512 c6015ee9593336104fc043ed20d99a476e7b36802ae36798f23c2caf91a01a71913963fdbe6de249f234cb3ba82379e5c5b2976e07d098c287ee72e3f238f2eb EBUILD rabbitmq-server-3.11.2-r1.ebuild 2377 BLAKE2B 5ef270056b188fcfa9d216d0755f2617185c8cf42e9298eb8b2463174aa5e07859f426247b3f0a15ee99c5fbcf96c00ab86be92e5239dd89ebe59688e58e2d9f SHA512 0f616f65974a56569211255ad6b5aedb21dea12129cc5862eafc811416b65cbda0df4a79338647e48ba09ea97e613ec2015ac6ea020f7d3c038291034318c465 -MISC metadata.xml 244 BLAKE2B 7a5cfcea42b430285e098019ccdf99eccf96c5ba82feeb5354a023aeb0c197c9e7c138b8329bc20a0080cc028c546a0fc52b74c383a64645aef2eea22b894522 SHA512 04757d267b2495bcc0f50cd5354a9bf2f5093ca396744f4cbcdb4eed249e94333226c52e346261ba8da975d3d5fc7bde3c50a5627875a15247b338bb1eddc2e7 +EBUILD rabbitmq-server-3.12.9.ebuild 2524 BLAKE2B 15b4d1a2c697ef13ee9aaddcb8109c3c4b344d6815d6f0e7fea77799d7a78d1d48c36c81f51628bd1d1514af42ad6f92db785f228fe078e94139d104a6f61cad SHA512 2195fd5400446d23807e7d83ddcd9dd6e1d254f7882f8f63289e9a1ac2741035d2a459ee067a77996ddb939a800c55cb746f76a6a134a8d18144c9537e8b4ef7 +MISC metadata.xml 333 BLAKE2B 32574e66e290f23db4e2f991b817eb61ca3d2f63f467f93c1ef129c9e2534e3bd75a1f473d45cd4a4c53fe4ba30b53c6ca2ceec4c7fce6abce298f74b45c6f6a SHA512 abb06f8d7b8cbea106288347519a303bcb284acc4882b5810b0d5fa30a182f6f34c33f784cfe3a15a95147b5074efc73cbcecb4b4d6312ece36ecc74df849c1a diff --git a/net-misc/rabbitmq-server/metadata.xml b/net-misc/rabbitmq-server/metadata.xml index 40de168a4ac6..f9ae34dd3cab 100644 --- a/net-misc/rabbitmq-server/metadata.xml +++ b/net-misc/rabbitmq-server/metadata.xml @@ -5,4 +5,7 @@ <email>ultrabug@gentoo.org</email> <name>Ultrabug</name> </maintainer> + <upstream> + <remote-id type="github">rabbitmq/rabbitmq-server</remote-id> + </upstream> </pkgmetadata> diff --git a/net-misc/rabbitmq-server/rabbitmq-server-3.12.9.ebuild b/net-misc/rabbitmq-server/rabbitmq-server-3.12.9.ebuild new file mode 100644 index 000000000000..1ba1abad96c0 --- /dev/null +++ b/net-misc/rabbitmq-server/rabbitmq-server-3.12.9.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..12} ) +PYTHON_REQ_USE="xml(+)" + +inherit python-any-r1 systemd + +DESCRIPTION="RabbitMQ is a high-performance AMQP-compliant message broker written in Erlang" +HOMEPAGE="https://www.rabbitmq.com/" +SRC_URI="https://github.com/rabbitmq/rabbitmq-server/releases/download/v${PV}/${P}.tar.xz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +RESTRICT="test" + +# See https://www.rabbitmq.com/which-erlang.html for Erlang version +# See https://github.com/rabbitmq/rabbitmq-server/tree/main/deps/rabbitmq_cli#requirements for Elixir version +RDEPEND=" + acct-group/rabbitmq + acct-user/rabbitmq + >=dev-lang/erlang-25.0[ssl] <dev-lang/erlang-26.2 +" +DEPEND=" + ${RDEPEND} + app-arch/zip + app-arch/unzip + app-text/docbook-xml-dtd:4.5 + app-text/xmlto + >=dev-lang/elixir-1.13.4 <dev-lang/elixir-1.16.0 + dev-libs/libxslt + ${PYTHON_DEPS} +" + +pkg_setup() { + python-any-r1_pkg_setup +} + +src_compile() { + emake all docs dist +} + +src_install() { + # erlang module + local targetdir="/usr/$(get_libdir)/erlang/lib/rabbitmq_server-${PV}" + + einfo "Setting correct RABBITMQ_HOME in scripts" + sed -e "s:^RABBITMQ_HOME=.*:RABBITMQ_HOME=\"${targetdir}\":g" \ + -i deps/rabbit/scripts/rabbitmq-env || die + + einfo "Installing Erlang modules to ${targetdir}" + insinto "${targetdir}" + doins -r deps/rabbit/ebin deps/rabbit/include deps/rabbit/priv escript plugins + + einfo "Installing server scripts to /usr/sbin" + rm -v deps/rabbit/scripts/*.bat || die + exeinto /usr/libexec/rabbitmq + for script in deps/rabbit/scripts/*; do + doexe ${script} + newsbin "${FILESDIR}"/rabbitmq-script-wrapper $(basename $script) + done + + # install the init script + newinitd "${FILESDIR}"/rabbitmq-server.init-r4 rabbitmq + systemd_dounit "${FILESDIR}/rabbitmq.service" + + # install documentation + dodoc deps/rabbit/docs/*.example + dodoc deps/rabbit/README.md + doman deps/rabbit/docs/*.5 + doman deps/rabbit/docs/*.8 + + # create the directory where our log file will go. + diropts -m 0770 -o rabbitmq -g rabbitmq + keepdir /var/log/rabbitmq /etc/rabbitmq + + # create the mnesia directory + diropts -m 0770 -o rabbitmq -g rabbitmq + keepdir /var/lib/rabbitmq/mnesia +} + +pkg_preinst() { + if [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 3.12; then + elog "Upgrading to RabbitMQ 3.12 requires all feature flags" + elog "from 3.11 to be enabled. If any feature flags are not" + elog "enabled, the node will refuse to start." + fi +} |