annotate net-misc/rabbitmq-server/rabbitmq-server-1.7.0.ebuild @ 167:d191e60e8358

update rabbitmq-server to 1.7.0
author holger
date Wed, 07 Oct 2009 18:28:57 +0200
parents net-misc/rabbitmq-server/rabbitmq-server-1.6.0.ebuild@2cdc52664e30
children 46e9ed96ea3e
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
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/rabbitmq-server/rabbitmq-server-1.5.4-r1.ebuild,v 1.2 2009/04/23 03:37:16 mr_bones_ Exp $
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?
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
16 DEPEND="dev-lang/erlang"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
17 RDEPEND="${DEPEND}"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
18
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
19 src_install() {
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
20 # erlang module
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
21 local targetdir="/usr/$(get_libdir)/erlang/lib/${P}"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
22
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
23 einfo "Correcting additional Erlang code path in scripts"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
24 sed -i -e "s:\`dirname \$0\`\/..\/ebin:${targetdir}:g" scripts/* || die "sed failed"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
25
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
26 einfo "Installing Erlang module to ${targetdir}"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
27 dodir "${targetdir}"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
28 cp -dpR ebin include "${D}/${targetdir}"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
29
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
30 einfo "Installing server scripts to /usr/sbin"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
31 # Install server scripts to sbin
167
d191e60e8358 update rabbitmq-server to 1.7.0
holger
parents: 136
diff changeset
32 dosbin scripts/rabbitmq-env scripts/rabbitmq-multi scripts/rabbitmq-server
d191e60e8358 update rabbitmq-server to 1.7.0
holger
parents: 136
diff changeset
33 dosbin scripts/rabbitmq-activate-plugins scripts/rabbitmq-deactivate-plugins
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
34
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
35 einfo "Installing rabbitmqctl to /usr/bin"
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
36 # Install control script to bin
167
d191e60e8358 update rabbitmq-server to 1.7.0
holger
parents: 136
diff changeset
37 dobin scripts/rabbitmq-env scripts/rabbitmqctl
131
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
38
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
39 # Docs
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
40 dodoc README
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
41
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
42 # create the directory where our log file will go.
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
43 diropts -m 0770 -o rabbitmq -g rabbitmq
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
44 keepdir /var/log/rabbitmq
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 mnesia directory
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 dodir /var/lib/rabbitmq/mnesia
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
49
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
50 # Install the init script
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
51 newinitd "${FILESDIR}"/rabbitmq-server.init rabbitmq
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
52 }
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
53
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
54 pkg_setup() {
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
55 enewgroup rabbitmq
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
56 enewuser rabbitmq -1 -1 -1 rabbitmq
7a6ad5af4782 bump rabbitmq to 1.5.5
holger
parents:
diff changeset
57 }