# HG changeset patch # User holger # Date 1243027640 -7200 # Node ID 7a6ad5af47823492759ac26695f576930b137d9d # Parent d054b467a3731733bc0d4621306b10139ff25521 bump rabbitmq to 1.5.5 diff -r d054b467a373 -r 7a6ad5af4782 net-misc/rabbitmq-server/Manifest --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net-misc/rabbitmq-server/Manifest Fri May 22 23:27:20 2009 +0200 @@ -0,0 +1,3 @@ +AUX rabbitmq-server.init 434 RMD160 11a7851c395e488bb03a7a002d62dae405d4f67f SHA1 c1030740427f95eedba3fafbb8a038ea69842607 SHA256 d3f8fb55bbab4506567a9dbc995194720ed63072c82af27bbb6831541a0fb89c +DIST rabbitmq-server-1.5.5.tar.gz 114685 RMD160 6e3703a30d45cb21ba6f7435fb68992027cf18f0 SHA1 5daa50859c9f2342cc824188f4a3cc7f9edb938e SHA256 7f8ed4a90736799dc5c6c20c96e54be284d29461a4603bf1d1da9ab62dfc9a00 +EBUILD rabbitmq-server-1.5.5.ebuild 1664 RMD160 c5d95edef457441d79702f3a29e4c6493a77078b SHA1 17188dc82f1b23645f5092960519dbc86848589c SHA256 ffcba324a2f47c2847f5e11bd12cd536b52782f9ac7e9238e07a3944cb53c43b diff -r d054b467a373 -r 7a6ad5af4782 net-misc/rabbitmq-server/files/rabbitmq-server.init --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net-misc/rabbitmq-server/files/rabbitmq-server.init Fri May 22 23:27:20 2009 +0200 @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/rabbitmq-server/files/rabbitmq-server.init,v 1.1 2009/04/19 12:42:55 caleb Exp $ + +depend() { + need net + use dns +} + +start() { + ebegin "Starting RabbitMQ..." + rabbitmq-server -detached + eend $? +} + +stop() { + ebegin "Stopping RabbitMQ..." + rabbitmqctl stop + eend $? +} + diff -r d054b467a373 -r 7a6ad5af4782 net-misc/rabbitmq-server/rabbitmq-server-1.5.5.ebuild --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net-misc/rabbitmq-server/rabbitmq-server-1.5.5.ebuild Fri May 22 23:27:20 2009 +0200 @@ -0,0 +1,56 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/rabbitmq-server/rabbitmq-server-1.5.4-r1.ebuild,v 1.2 2009/04/23 03:37:16 mr_bones_ Exp $ + +inherit eutils + +DESCRIPTION="RabbitMQ is a high-performance AMQP-compliant message broker written in Erlang." +HOMEPAGE="http://www.rabbitmq.com/" +SRC_URI="http://www.rabbitmq.com/releases/rabbitmq-server/v${PV}/rabbitmq-server-${PV}.tar.gz" +LICENSE="MPL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# Q: is RDEPEND-only sufficient for a binary package, since we don't compile? +DEPEND="dev-lang/erlang" +RDEPEND="${DEPEND}" + +src_install() { + # erlang module + local targetdir="/usr/$(get_libdir)/erlang/lib/${P}" + + einfo "Correcting additional Erlang code path in scripts" + sed -i -e "s:\`dirname \$0\`\/..\/ebin:${targetdir}:g" scripts/* || die "sed failed" + + einfo "Installing Erlang module to ${targetdir}" + dodir "${targetdir}" + cp -dpR ebin include "${D}/${targetdir}" + + einfo "Installing server scripts to /usr/sbin" + # Install server scripts to sbin + dosbin scripts/rabbitmq-multi scripts/rabbitmq-server + + einfo "Installing rabbitmqctl to /usr/bin" + # Install control script to bin + dobin scripts/rabbitmqctl + + # Docs + dodoc README + + # create the directory where our log file will go. + diropts -m 0770 -o rabbitmq -g rabbitmq + keepdir /var/log/rabbitmq + + # create the mnesia directory + diropts -m 0770 -o rabbitmq -g rabbitmq + dodir /var/lib/rabbitmq/mnesia + + # Install the init script + newinitd "${FILESDIR}"/rabbitmq-server.init rabbitmq +} + +pkg_setup() { + enewgroup rabbitmq + enewuser rabbitmq -1 -1 -1 rabbitmq +}