summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Tennis <caleb@gentoo.org>2009-04-22 10:48:00 +0000
committerCaleb Tennis <caleb@gentoo.org>2009-04-22 10:48:00 +0000
commit7648db8ccb39fa173dd175475efc7ecc5e2216a8 (patch)
treed746ad2667205696ad672099a98ee43c535c2033 /net-misc
parentVersion bump. (diff)
downloadgentoo-2-7648db8ccb39fa173dd175475efc7ecc5e2216a8.tar.gz
gentoo-2-7648db8ccb39fa173dd175475efc7ecc5e2216a8.tar.bz2
gentoo-2-7648db8ccb39fa173dd175475efc7ecc5e2216a8.zip
Various fixes submitted by Luke Chamberlain (luke@re.gen.nz)
(Portage version: 2.1.6.11/cvs/Linux i686)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/rabbitmq-server/ChangeLog8
-rw-r--r--net-misc/rabbitmq-server/rabbitmq-server-1.5.4-r1.ebuild56
2 files changed, 63 insertions, 1 deletions
diff --git a/net-misc/rabbitmq-server/ChangeLog b/net-misc/rabbitmq-server/ChangeLog
index 01921e62799d..4a223be5571a 100644
--- a/net-misc/rabbitmq-server/ChangeLog
+++ b/net-misc/rabbitmq-server/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/rabbitmq-server
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/rabbitmq-server/ChangeLog,v 1.1 2009/04/19 12:42:54 caleb Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/rabbitmq-server/ChangeLog,v 1.2 2009/04/22 10:48:00 caleb Exp $
+
+*rabbitmq-server-1.5.4-r1 (22 Apr 2009)
+
+ 22 Apr 2009; Caleb Tennis <caleb@gentoo.org>
+ +rabbitmq-server-1.5.4-r1.ebuild:
+ Various fixes submitted by Luke Chamberlain (luke@re.gen.nz)
*rabbitmq-server-1.5.4 (19 Apr 2009)
diff --git a/net-misc/rabbitmq-server/rabbitmq-server-1.5.4-r1.ebuild b/net-misc/rabbitmq-server/rabbitmq-server-1.5.4-r1.ebuild
new file mode 100644
index 000000000000..f3802fc0ebda
--- /dev/null
+++ b/net-misc/rabbitmq-server/rabbitmq-server-1.5.4-r1.ebuild
@@ -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.1 2009/04/22 10:48:00 caleb 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
+}