11
|
1 # Copyright 1999-2008 Gentoo Foundation
|
|
2 # Distributed under the terms of the GNU General Public License v2
|
|
3 # $Header: $
|
|
4
|
|
5 inherit eutils
|
|
6
|
58
|
7 DESCRIPTION="RabbitMQ is a high-performance AMQP-compliant message broker written in Erlang."
|
|
8 HOMEPAGE="http://www.rabbitmq.com/"
|
|
9 SRC_URI="http://www.rabbitmq.com/releases/rabbitmq-server/v${PV}/rabbitmq-server-generic-unix-${PV}.tar.gz"
|
|
10 LICENSE="MPL"
|
|
11 SLOT="0"
|
|
12 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
|
23
|
13 IUSE=""
|
58
|
14
|
60
|
15 # Q: is RDEPEND-only sufficient for a binary package, since we don't compile?
|
23
|
16 DEPEND="dev-lang/erlang"
|
11
|
17 RDEPEND="${DEPEND}"
|
|
18
|
60
|
19 # grr: the packaged directory contains an underscore
|
59
|
20 S="${WORKDIR}/rabbitmq_server-${PV}"
|
11
|
21
|
|
22 src_install() {
|
60
|
23 # the local erlang module directory
|
|
24 local targetdir="/usr/$(get_libdir)/erlang/lib/${P}"
|
|
25
|
|
26 # scripts
|
|
27 dosbin sbin/*
|
|
28
|
|
29 # erlang module
|
|
30 dodir "${targetdir}"
|
|
31 cp -dpR ebin include src "${D}/${targetdir}"
|
|
32
|
|
33 # docs
|
59
|
34 dodoc INSTALL LICENSE LICENSE-MPL-RabbitMQ
|
|
35
|
60
|
36 # TODO:
|
|
37 # config to set env vars as per INSTALL?
|
|
38 # set LOGDIR to /var/log/rabbitmq.log
|
|
39 # run as different user?
|
11
|
40 }
|