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