annotate net-misc/rabbitmq-server/rabbitmq-server-1.8.1.ebuild @ 233:60c992a46e5e

bump rabbitmq to 1.8.1
author holger
date Thu, 15 Jul 2010 16:54:02 +0200
parents net-misc/rabbitmq-server/rabbitmq-server-1.8.0.ebuild@69b08b6e0780
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
230
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
1 # Copyright 1999-2010 Gentoo Foundation
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
230
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/rabbitmq-server/rabbitmq-server-1.8.0.ebuild,v 1.1 2010/07/03 08:21:06 hollow Exp $
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
4
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
5 EAPI="2"
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
6
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
7 inherit eutils
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
8
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
9 DESCRIPTION="RabbitMQ is a high-performance AMQP-compliant message broker written in Erlang."
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
10 HOMEPAGE="http://www.rabbitmq.com/"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
11 SRC_URI="http://www.rabbitmq.com/releases/rabbitmq-server/v${PV}/rabbitmq-server-${PV}.tar.gz"
230
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
12
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
13 LICENSE="MPL-1.1"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
14 SLOT="0"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
15 KEYWORDS="~amd64 ~x86"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
16 IUSE=""
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
17
230
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
18 RDEPEND="dev-lang/erlang"
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
19 DEPEND="${RDEPEND}
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
20 dev-libs/libxslt
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
21 dev-python/simplejson
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
22 "
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
23
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
24 pkg_setup() {
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
25 enewgroup rabbitmq
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
26 enewuser rabbitmq -1 -1 -1 rabbitmq
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
27 }
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
28
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
29 src_install() {
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
30 # erlang module
230
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
31 local targetdir="/usr/$(get_libdir)/erlang/lib/${P}"
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
32
230
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
33 einfo "Setting correct RABBITMQ_HOME in scripts"
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
34 sed -e "s:^RABBITMQ_HOME=.*:RABBITMQ_HOME=\"${targetdir}\":g" \
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
35 -i scripts/rabbitmq_env
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
36
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
37 einfo "Installing Erlang module to ${targetdir}"
230
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
38 insinto "${targetdir}"
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
39 doins -r ebin include
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
40
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
41 einfo "Installing server scripts to /usr/sbin"
230
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
42 dosbin scripts/rabbitmq-multi scripts/rabbitmq-server scripts/rabbitmq-env \
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
43 scripts/rabbitmq-activate-plugins scripts/rabbitmq-deactivate-plugins \
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
44 scripts/rabbitmqctl
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
45
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
46 # create the directory where our log file will go.
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
47 diropts -m 0770 -o rabbitmq -g rabbitmq
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
48 keepdir /var/log/rabbitmq
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
49
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
50 # create the mnesia directory
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
51 diropts -m 0770 -o rabbitmq -g rabbitmq
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
52 dodir /var/lib/rabbitmq/mnesia
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
53
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
54 # Install the init script
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
55 newinitd "${FILESDIR}"/rabbitmq-server.init rabbitmq
230
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
56
69b08b6e0780 sync rabbitmq-server with portage
holger
parents: 203
diff changeset
57 dodoc README
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
58 }