summaryrefslogtreecommitdiff
blob: d6310701681370636b789bcaa3534f71c7a7ad98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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.ebuild,v 1.3 2009/04/20 11:29:43 caleb Exp $

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-generic-unix-${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}"

# grr: the packaged directory contains an underscore
MODNAME="rabbitmq_server-${PV}"
S="${WORKDIR}/${MODNAME}"

src_install() {
	# erlang module
	local targetdir="/usr/$(get_libdir)/erlang/lib/${MODNAME}"
	dodir "${targetdir}"
	cp -dpR ebin include "${D}/${targetdir}"

	# scripts
	dosbin sbin/*

	newinitd "${FILESDIR}/rabbitmq-server.init" rabbitmq-server

	# TODO:
	# config to set env vars as per INSTALL?
	# set LOGDIR to /var/log/rabbitmq.log
	# run as different user?
}