2058N/A#
2058N/A# CDDL HEADER START
2058N/A#
2058N/A# The contents of this file are subject to the terms of the
2058N/A# Common Development and Distribution License (the "License").
2058N/A# You may not use this file except in compliance with the License.
2058N/A#
2058N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2058N/A# or http://www.opensolaris.org/os/licensing.
2058N/A# See the License for the specific language governing permissions
2058N/A# and limitations under the License.
2058N/A#
2058N/A# When distributing Covered Code, include this CDDL HEADER in each
2058N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2058N/A# If applicable, add the following below this CDDL HEADER, with the
2058N/A# fields enclosed by brackets "[]" replaced with your own identifying
2058N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2058N/A#
2058N/A# CDDL HEADER END
2058N/A#
2058N/A
2058N/A#
6033N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
2058N/A#
2058N/A
2058N/Ainclude ../../make-rules/shared-macros.mk
2058N/A
6033N/APATH=/usr/gnu/bin:/usr/bin:/usr/sbin
6033N/A
2058N/ACOMPONENT_NAME= rabbitmq-server
6122N/ACOMPONENT_VERSION= 3.6.1
2058N/ACOMPONENT_PROJECT_URL= http://www.rabbitmq.com/
2058N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6122N/ACOMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.xz
2058N/ACOMPONENT_ARCHIVE_HASH= \
6122N/A sha256:c696134e863f99191a301288c12d69ff00b7e648107ee52c8686ae047dde1bee
2058N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/releases/$(COMPONENT_NAME)/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
2058N/ACOMPONENT_BUGDB= service/rabbitmq
2058N/A
6122N/ATPNO= 27775
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/justmake.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
2058N/A
2058N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
2058N/A
6122N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
2058N/A
6122N/A# rabbitmq doesn't like cloney
6122N/ACOMPONENT_PRE_BUILD_ACTION = ($(CP) -rp $(SOURCE_DIR)/. $(@D))
6122N/A
6122N/ACOMPONENT_BUILD_ACTION += /usr/bin/true
2058N/A
6122N/ACOMPONENT_INSTALL_TARGETS = all
6122N/ACOMPONENT_INSTALL_TARGETS += install
6122N/ACOMPONENT_INSTALL_TARGETS += install-man
6122N/ACOMPONENT_INSTALL_ENV += DESTDIR=$(PROTO_DIR)
6122N/ACOMPONENT_INSTALL_ENV += MANDIR=/usr/share/man
6122N/ACOMPONENT_INSTALL_ENV += RMQ_ROOTDIR=/usr
6122N/ACOMPONENT_INSTALL_ENV += RMQ_BINDIR=/usr/lib/rabbitmq/bin
6122N/ACOMPONENT_INSTALL_ENV += RMQ_LIBDIR=/usr/lib
6122N/ACOMPONENT_INSTALL_ENV += RMQ_ERLAPP_DIR=/usr/lib/rabbitmq
6033N/A
6033N/A# We delegate the running of the tests to a script because it's easier to find
6033N/A# and use unique free ports in a single process, and it's easier to make sure
6033N/A# that we don't leave any servers running if the tests themselves fail.
6033N/ACOMPONENT_TEST_DIR = $(COMPONENT_DIR)
6033N/ACOMPONENT_TEST_CMD = $(PYTHON)
6033N/ACOMPONENT_TEST_TARGETS = test.py $(TEST_32)
6033N/A
6122N/A# taken from justmake.mk but with the CLONEY line removed.
6122N/A# build the configured source
6122N/A$(BUILD_DIR)/%/.built: $(SOURCE_DIR)/.prep
6122N/A $(RM) -r $(@D) ; $(MKDIR) $(@D)
6122N/A $(COMPONENT_PRE_BUILD_ACTION)
6122N/A ($(COMPONENT_BUILD_ACTION))
6122N/A $(COMPONENT_POST_BUILD_ACTION)
6122N/A
2058N/A# common targets
6033N/Ainstall: $(INSTALL_32)
2058N/A
2058N/Atest: $(TEST_32)
2058N/A
2058N/A
6033N/AREQUIRED_PACKAGES += compress/zip
3996N/AREQUIRED_PACKAGES += runtime/erlang
6033N/AREQUIRED_PACKAGES += shell/bash
3996N/AREQUIRED_PACKAGES += shell/ksh93