1 # Maintainer: Stefan J. Betz <info at stefan-betz dot net>
2 # Contributor: p2k <Patrick dot Schneider at uni-ulm dot de>
3 # Contributor: Jonathan Liu <net147@gmail.com>
4 # Contributor: Christopher Grebs <cg@webshox.org>
8 pkgdesc="Highly reliable and performant enterprise messaging implementation of AMQP written in Erlang/OTP"
10 url="http://rabbitmq.com"
13 backup=('etc/rabbitmq/rabbitmq.conf' 'etc/rabbitmq/rabbitmq-env.conf')
14 source=("http://www.rabbitmq.com/releases/${pkgname}-server/v${pkgver}/${pkgname}-server-generic-unix-${pkgver}.tar.gz"
19 "rabbitmq-server-rc.d")
20 install="${pkgname}.install"
21 md5sums=('34a5f9fb6f22e6681092443fcc80324f'
22 'b2fde4dc69c3a75f99a21463b5c9f832'
23 '481bd6ce748a168a75ce1b65373aaad1'
24 '481bd6ce748a168a75ce1b65373aaad1'
25 '481bd6ce748a168a75ce1b65373aaad1'
26 '062af9637fc3f81ffeb9e428daa8c536')
30 install -d "${pkgdir}/usr/lib/rabbitmq"/{bin,lib}
31 install -d "${pkgdir}/var/log/rabbitmq"
32 install -d "${pkgdir}/var/lib/rabbitmq/mnesia"
33 cp -R "${pkgname}_server-${pkgver}" "${pkgdir}/usr/lib/rabbitmq/lib/"
35 for x in rabbitmqctl rabbitmq-plugins rabbitmq-env rabbitmq-server; do
36 ln -sf "../lib/${pkgname}_server-${pkgver}/sbin/$x" "${pkgdir}/usr/lib/rabbitmq/bin/"
39 install -D rabbitmq-env.conf "${pkgdir}/etc/rabbitmq/rabbitmq-env.conf"
40 sed -i "s#^\(RABBITMQ_PLUGINS_DIR\)=.*\$#\1=/usr/lib/${pkgname}/lib/${pkgname}_server-${pkgver}/plugins#" \
41 "${pkgdir}/etc/rabbitmq/rabbitmq-env.conf"
42 install -D rabbitmq-server "${pkgdir}/usr/sbin/rabbitmq-server"
43 install -D rabbitmq-plugins "${pkgdir}/usr/sbin/rabbitmq-plugins"
44 install -D rabbitmqctl "${pkgdir}/usr/sbin/rabbitmqctl"
45 install -D rabbitmq-server-rc.d "${pkgdir}/etc/rc.d/rabbitmq-server"
48 # vim:set ts=2 sw=2 et: