diff options
author | fhajny <fhajny> | 2010-09-21 11:47:32 +0000 |
---|---|---|
committer | fhajny <fhajny> | 2010-09-21 11:47:32 +0000 |
commit | 7c4c37327a94c8b5f5b5a2c3ccd5fef5bded8d07 (patch) | |
tree | 8061eaacda34338b94802783aaeb80597cfde423 /net/rabbitmq | |
parent | 6f5df54087eaaf628f5310afe2f40883036e3d2b (diff) | |
download | pkgsrc-7c4c37327a94c8b5f5b5a2c3ccd5fef5bded8d07.tar.gz |
Import rabbitmq-2.1.0 as net/rabbitmq.
RabbitMQ is a complete and highly reliable Enterprise Messaging
system. The RabbitMQ client libraries and broker daemon can be used
together to create an AMQP network, or used individually to bring
the benefits of RabbitMQ to established networks.
(Based on wip/rabbitmq.)
Diffstat (limited to 'net/rabbitmq')
-rw-r--r-- | net/rabbitmq/DESCR | 4 | ||||
-rw-r--r-- | net/rabbitmq/Makefile | 85 | ||||
-rw-r--r-- | net/rabbitmq/PLIST | 108 | ||||
-rw-r--r-- | net/rabbitmq/buildlink3.mk | 16 | ||||
-rw-r--r-- | net/rabbitmq/distinfo | 6 | ||||
-rw-r--r-- | net/rabbitmq/files/rabbitmq.conf | 11 | ||||
-rw-r--r-- | net/rabbitmq/patches/patch-aa | 12 | ||||
-rw-r--r-- | net/rabbitmq/version.mk | 4 |
8 files changed, 246 insertions, 0 deletions
diff --git a/net/rabbitmq/DESCR b/net/rabbitmq/DESCR new file mode 100644 index 00000000000..93780e8b845 --- /dev/null +++ b/net/rabbitmq/DESCR @@ -0,0 +1,4 @@ +RabbitMQ is a complete and highly reliable Enterprise Messaging +system. The RabbitMQ client libraries and broker daemon can be used +together to create an AMQP network, or used individually to bring +the benefits of RabbitMQ to established networks. diff --git a/net/rabbitmq/Makefile b/net/rabbitmq/Makefile new file mode 100644 index 00000000000..a47ffcb2f35 --- /dev/null +++ b/net/rabbitmq/Makefile @@ -0,0 +1,85 @@ +# $NetBSD: Makefile,v 1.1.1.1 2010/09/21 11:47:32 fhajny Exp $ +# + +PKGNAME= rabbitmq-${RMQ_VERSION} +DISTNAME= rabbitmq-server-${RMQ_VERSION} +CATEGORIES= net +MASTER_SITES= http://www.rabbitmq.com/releases/rabbitmq-server/v${RMQ_VERSION}/ + +MAINTAINER= filip@joyent.com +HOMEPAGE= http://www.rabbitmq.com/server.html +COMMENT= Implementation of AMQP that provides robust messaging for applications +LICENSE= mpl-1.1 + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_TOOLS+= gmake + +BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt +BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto +DEPENDS+= ${PYPKGPREFIX}-simplejson>=2:../../converters/py-simplejson + +.include "version.mk" +.include "../../lang/python/pyversion.mk" + +BUILD_DEFS+= VARBASE + +.if !empty(TOOLS_PLATFORM.bash) +RMQ_SHELL= ${TOOLS_PLATFORM.bash} +.else +RMQ_SHELL= /bin/sh +.endif + +.include "../../mk/bsd.prefs.mk" + +RMQ_USER?= rabbitmq +RMQ_GROUP?= ${RMQ_USER} +RMQ_DIR?= ${VARBASE}/db/rabbitmq +RMQ_LOG?= ${VARBASE}/log/rabbitmq + +OWN_DIRS+= ${RMQ_DIR} ${RMQ_LOG} +OWN_DIRS_PERMS+= ${RMQ_DIR} ${RMQ_USER} ${RMQ_GROUP} 0770 +OWN_DIRS_PERMS+= ${RMQ_LOG} ${RMQ_USER} ${RMQ_GROUP} 0770 + +PKG_GROUPS+= ${RMQ_GROUP} +PKG_USERS+= ${RMQ_USER}:${RMQ_GROUP} +PKG_GECOS.${RMQ_USER}= RabbitMQ Server User +PKG_HOME.${RMQ_USER}= ${RMQ_DIR} +PKG_SHELL.${RMQ_USER}= ${RMQ_SHELL} + +PKG_SYSCONFSUBDIR?= ${PKGBASE} +CONF_FILES+= ${PREFIX}/share/examples/rabbitmq/rabbitmq.conf ${PKG_SYSCONFDIR}/rabbitmq.conf + +INSTALLATION_DIRS+= share/examples/rabbitmq + +SCRIPTS_DIR= ${WRKSRC}/scripts + +PLIST_SUBST+= RMQ_VERSION=${RMQ_VERSION} + +SUBST_CLASSES+= paths +SUBST_MESSAGE.paths= Setting standard paths +SUBST_STAGE.paths= post-patch +SUBST_FILES.paths= ${SCRIPTS_DIR}/rabbitmqctl ${SCRIPTS_DIR}/rabbitmq-env +SUBST_FILES.paths+= ${SCRIPTS_DIR}/rabbitmq-multi ${SCRIPTS_DIR}/rabbitmq-server +SUBST_SED.paths= -e 's|/etc/rabbitmq|${PKG_SYSCONFDIR}/rabbitmq|g' +SUBST_SED.paths+= -e 's|/var/lib|${VARBASE}/db|g' +SUBST_SED.paths+= -e 's|/var/log|${VARBASE}/log|g' +SUBST_SED.paths+= -e 's|erl|${PREFIX}/bin/erl|g' +SUBST_SED.paths+= -e 's|/bin/sh|/bin/ksh|g' + +SUBST_CLASSES+= shell +SUBST_MESSAGE.shell= Setting Makefile shell +SUBST_STAGE.shell= post-patch +SUBST_FILES.shell= Makefile +SUBST_SED.shell= -e 's|@SHELL@|${RMQ_SHELL}|g' + +MAKE_ENV+= TARGET_DIR="${DESTDIR}${PREFIX}/lib/erlang/lib/rabbitmq_server-${RMQ_VERSION}" +MAKE_ENV+= SBIN_DIR="${DESTDIR}${PREFIX}/sbin/" +MAKE_ENV+= MAN_DIR="${DESTDIR}${PREFIX}/man" +MAKE_ENV+= RMQ_VERSION=${RMQ_VERSION} + +post-install: + ${INSTALL_DATA} ${FILESDIR}/rabbitmq.conf ${DESTDIR}${PREFIX}/share/examples/rabbitmq/rabbitmq.conf + +.include "../../lang/erlang/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/rabbitmq/PLIST b/net/rabbitmq/PLIST new file mode 100644 index 00000000000..115ef5cf115 --- /dev/null +++ b/net/rabbitmq/PLIST @@ -0,0 +1,108 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2010/09/21 11:47:32 fhajny Exp $ +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/INSTALL +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/LICENSE +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/LICENSE-MPL-RabbitMQ +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/bpqueue.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/delegate.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/delegate_sup.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/file_handle_cache.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/gatherer.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/gen_server2.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/pg_local.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/priority_queue.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit.app +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_access_control.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_alarm.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_amqqueue.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_amqqueue_process.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_amqqueue_sup.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_app.in +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_backing_queue.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_basic.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_binary_generator.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_binary_parser.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_binding.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_channel.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_channel_sup.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_channel_sup_sup.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_connection_sup.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_control.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_ctl_usage.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_dialyzer.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_error_logger.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_error_logger_file_h.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_event.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_exchange.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_exchange_type.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_exchange_type_direct.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_exchange_type_fanout.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_exchange_type_headers.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_exchange_type_registry.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_exchange_type_topic.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_framing_amqp_0_8.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_framing_amqp_0_9_1.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_framing_channel.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_guid.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_heartbeat.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_invariable_queue.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_limiter.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_log.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_memory_monitor.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_misc.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_mnesia.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_msg_file.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_msg_store.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_msg_store_ets_index.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_msg_store_gc.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_msg_store_index.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_multi.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_multi_usage.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_net.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_networking.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_node_monitor.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_persister.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_plugin_activator.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_queue_collector.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_queue_index.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_reader.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_restartable_sup.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_router.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_sasl_report_file_h.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_sup.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_tests.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_tests_event_receiver.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_types.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_variable_queue.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/rabbit_writer.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/supervisor2.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/tcp_acceptor.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/tcp_acceptor_sup.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/tcp_client_sup.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/tcp_listener.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/tcp_listener_sup.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/test_sup.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/vm_memory_monitor.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/worker_pool.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/worker_pool_sup.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/ebin/worker_pool_worker.beam +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/include/rabbit.hrl +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/include/rabbit_backing_queue_spec.hrl +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/include/rabbit_exchange_type_spec.hrl +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/include/rabbit_framing.hrl +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/include/rabbit_msg_store.hrl +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/include/rabbit_msg_store_index.hrl +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/plugins/README +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/sbin/rabbitmq-env +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/sbin/rabbitmq-multi +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/sbin/rabbitmq-server +lib/erlang/lib/rabbitmq_server-${PKGVERSION}/sbin/rabbitmqctl +man/man1/rabbitmq-multi.1 +man/man1/rabbitmq-server.1 +man/man1/rabbitmqctl.1 +man/man5/rabbitmq.conf.5 +sbin/rabbitmq-env +sbin/rabbitmq-multi +sbin/rabbitmq-server +sbin/rabbitmqctl +share/examples/rabbitmq/rabbitmq.conf diff --git a/net/rabbitmq/buildlink3.mk b/net/rabbitmq/buildlink3.mk new file mode 100644 index 00000000000..4027943f3ee --- /dev/null +++ b/net/rabbitmq/buildlink3.mk @@ -0,0 +1,16 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/09/21 11:47:32 fhajny Exp $ + +BUILDLINK_TREE+= rabbitmq + +.if !defined(RABBITMQ_BUILDLINK3_MK) +RABBITMQ_BUILDLINK3_MK:= + +.include "version.mk" + +BUILDLINK_API_DEPENDS.rabbitmq+= rabbitmq>=2.1.0 +BUILDLINK_PKGSRCDIR.rabbitmq?= ../../net/rabbitmq + +BUILDLINK_INCDIRS.rabbitmq?= lib/erlang/lib/rabbitmq_server-${RMQ_VERSION}/include +.endif # RABBITMQ_BUILDLINK3_MK + +BUILDLINK_TREE+= -rabbitmq diff --git a/net/rabbitmq/distinfo b/net/rabbitmq/distinfo new file mode 100644 index 00000000000..231ee0505bc --- /dev/null +++ b/net/rabbitmq/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2010/09/21 11:47:32 fhajny Exp $ + +SHA1 (rabbitmq-server-2.1.0.tar.gz) = 8cfff94a4685b645d0d14026b7df8e51ce414bd1 +RMD160 (rabbitmq-server-2.1.0.tar.gz) = 7c447b47774f27c86efb3f8958b12cc7cff20ead +Size (rabbitmq-server-2.1.0.tar.gz) = 275559 bytes +SHA1 (patch-aa) = fba22078d70168586321b36f7a7eefe6dfd5d134 diff --git a/net/rabbitmq/files/rabbitmq.conf b/net/rabbitmq/files/rabbitmq.conf new file mode 100644 index 00000000000..9347531f68d --- /dev/null +++ b/net/rabbitmq/files/rabbitmq.conf @@ -0,0 +1,11 @@ +# Very simple sample RabbitMQ config file + +# RABBITMQ_NODENAME=rabbit +# RABBITMQ_NODE_IP_ADDRESS=0.0.0.0 +# RABBITMQ_NODE_PORT=5672 +# RABBITMQ_LOG_BASE=/var/log/rabbitmq +# RABBITMQ_MNESIA_BASE=/var/db/rabbitmq/mnesia + +# RABBITMQ_SERVER_ERL_ARGS="+K true +A30 \ +# -kernel inet_default_listen_options [{nodelay,true},{sndbuf,16384},{recbuf,4096}] \ +# -kernel inet_default_connect_options [{nodelay,true}]" diff --git a/net/rabbitmq/patches/patch-aa b/net/rabbitmq/patches/patch-aa new file mode 100644 index 00000000000..aecbc3de928 --- /dev/null +++ b/net/rabbitmq/patches/patch-aa @@ -0,0 +1,12 @@ +$NetBSD: patch-aa,v 1.1.1.1 2010/09/21 11:47:32 fhajny Exp $ + +Makefile really expects Bash to be used for shell calls + +--- Makefile.orig 2009-10-06 14:45:47.000000000 +0000 ++++ Makefile +@@ -1,4 +1,4 @@ +- ++SHELL=@SHELL@ + TMPDIR ?= /tmp + + RABBITMQ_NODENAME ?= rabbit diff --git a/net/rabbitmq/version.mk b/net/rabbitmq/version.mk new file mode 100644 index 00000000000..e6930cfa61c --- /dev/null +++ b/net/rabbitmq/version.mk @@ -0,0 +1,4 @@ +# $NetBSD: version.mk,v 1.1.1.1 2010/09/21 11:47:32 fhajny Exp $ +# + +RMQ_VERSION= 2.1.0 |