Mercurial > hg > portage
comparison net-misc/rabbitmq-server/rabbitmq-server-1.6.0.ebuild @ 140:ae18a6f7faee
pull latest chagnes from Holgi
author | Dirk Olmes <dirk.olmes@googlemail.com> |
---|---|
date | Thu, 02 Jul 2009 14:12:03 +0200 |
parents | 2cdc52664e30 |
children |
comparison
equal
deleted
inserted
replaced
112:4a719c618dfb | 140:ae18a6f7faee |
---|---|
1 # Copyright 1999-2009 Gentoo Foundation | |
2 # Distributed under the terms of the GNU General Public License v2 | |
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 $ | |
4 | |
5 inherit eutils | |
6 | |
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-${PV}.tar.gz" | |
10 LICENSE="MPL-1.1" | |
11 SLOT="0" | |
12 KEYWORDS="~amd64 ~x86" | |
13 IUSE="" | |
14 | |
15 # Q: is RDEPEND-only sufficient for a binary package, since we don't compile? | |
16 DEPEND="dev-lang/erlang" | |
17 RDEPEND="${DEPEND}" | |
18 | |
19 src_install() { | |
20 # erlang module | |
21 local targetdir="/usr/$(get_libdir)/erlang/lib/${P}" | |
22 | |
23 einfo "Correcting additional Erlang code path in scripts" | |
24 sed -i -e "s:\`dirname \$0\`\/..\/ebin:${targetdir}:g" scripts/* || die "sed failed" | |
25 | |
26 einfo "Installing Erlang module to ${targetdir}" | |
27 dodir "${targetdir}" | |
28 cp -dpR ebin include "${D}/${targetdir}" | |
29 | |
30 einfo "Installing server scripts to /usr/sbin" | |
31 # Install server scripts to sbin | |
32 dosbin scripts/rabbitmq-multi scripts/rabbitmq-server | |
33 | |
34 einfo "Installing rabbitmqctl to /usr/bin" | |
35 # Install control script to bin | |
36 dobin scripts/rabbitmqctl | |
37 | |
38 # Docs | |
39 dodoc README | |
40 | |
41 # create the directory where our log file will go. | |
42 diropts -m 0770 -o rabbitmq -g rabbitmq | |
43 keepdir /var/log/rabbitmq | |
44 | |
45 # create the mnesia directory | |
46 diropts -m 0770 -o rabbitmq -g rabbitmq | |
47 dodir /var/lib/rabbitmq/mnesia | |
48 | |
49 # Install the init script | |
50 newinitd "${FILESDIR}"/rabbitmq-server.init rabbitmq | |
51 } | |
52 | |
53 pkg_setup() { | |
54 enewgroup rabbitmq | |
55 enewuser rabbitmq -1 -1 -1 rabbitmq | |
56 } |