annotate net-misc/rabbitmq-server/rabbitmq-server-1.7.2.ebuild @ 204:e5345be1032e

sync graphicsmagick with portage
author holger
date Tue, 16 Feb 2010 22:41:46 +0100
parents 96df2364b964
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
1 # Copyright 1999-2009 Gentoo Foundation
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
172
e165174ac470 update rabbitmq-server with b.g.o fixes
holger
parents: 168
diff changeset
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/rabbitmq-server/rabbitmq-server-1.5.4-r2.ebuild,v 1.1 2009/06/21 15:45:19 caleb Exp $
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
4
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
5 inherit eutils
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
6
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
7 DESCRIPTION="RabbitMQ is a high-performance AMQP-compliant message broker written in Erlang."
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
8 HOMEPAGE="http://www.rabbitmq.com/"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
9 SRC_URI="http://www.rabbitmq.com/releases/rabbitmq-server/v${PV}/rabbitmq-server-${PV}.tar.gz"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
10 LICENSE="MPL-1.1"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
11 SLOT="0"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
12 KEYWORDS="~amd64 ~x86"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
13 IUSE=""
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
14
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
15 # Q: is RDEPEND-only sufficient for a binary package, since we don't compile?
168
46e9ed96ea3e sync rabbitmq ebuild with portage
holger
parents: 167
diff changeset
16 DEPEND="dev-lang/erlang
46e9ed96ea3e sync rabbitmq ebuild with portage
holger
parents: 167
diff changeset
17 dev-python/simplejson"
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
18 RDEPEND="${DEPEND}"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
19
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
20 src_install() {
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
21 # erlang module
172
e165174ac470 update rabbitmq-server with b.g.o fixes
holger
parents: 168
diff changeset
22 local targetdir="/usr/$(get_libdir)/erlang/lib/rabbitmq_server-${PV}"
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
23
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
24 einfo "Correcting additional Erlang code path in scripts"
172
e165174ac470 update rabbitmq-server with b.g.o fixes
holger
parents: 168
diff changeset
25 sed -i -e "s:\`dirname \$0\`/rabbitmq-env:/usr/sbin/rabbitmq-env:g" scripts/* || die "sed failed"
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
26
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
27 einfo "Installing Erlang module to ${targetdir}"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
28 dodir "${targetdir}"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
29 cp -dpR ebin include "${D}/${targetdir}"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
30
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
31 einfo "Installing server scripts to /usr/sbin"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
32 # Install server scripts to sbin
172
e165174ac470 update rabbitmq-server with b.g.o fixes
holger
parents: 168
diff changeset
33 dosbin scripts/rabbitmq-env scripts/rabbitmq-multi scripts/rabbitmq-server \
e165174ac470 update rabbitmq-server with b.g.o fixes
holger
parents: 168
diff changeset
34 scripts/rabbitmq-server scripts/rabbitmq-activate-plugins scripts/rabbitmq-deactivate-plugins
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
35
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
36 einfo "Installing rabbitmqctl to /usr/bin"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
37 # Install control script to bin
172
e165174ac470 update rabbitmq-server with b.g.o fixes
holger
parents: 168
diff changeset
38 dobin scripts/rabbitmqctl
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
39
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
40 # Docs
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
41 dodoc README
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
42
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
43 # create the directory where our log file will go.
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
44 diropts -m 0770 -o rabbitmq -g rabbitmq
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
45 keepdir /var/log/rabbitmq
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
46
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
47 # create the mnesia directory
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
48 diropts -m 0770 -o rabbitmq -g rabbitmq
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
49 dodir /var/lib/rabbitmq/mnesia
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
50
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
51 # Install the init script
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
52 newinitd "${FILESDIR}"/rabbitmq-server.init rabbitmq
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
53 }
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
54
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
55 pkg_setup() {
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
56 enewgroup rabbitmq
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
57 enewuser rabbitmq -1 -1 -1 rabbitmq
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
58 }