components/rabbitmq/Makefile
author Drew Fisher <drew.fisher@oracle.com>
Thu, 14 Apr 2016 14:58:30 -0700
branchs11u3-sru
changeset 6124 0a6b764b6ad6
parent 6035 c9748fcc32de
permissions -rw-r--r--
23034195 Update RabbitMQ to 3.6.1 23034207 problem in SERVICE/RABBITMQ
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2785
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     1
#
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     3
#
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     7
#
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    12
#
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    18
#
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    20
#
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    21
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    22
#
6035
c9748fcc32de PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 3996
diff changeset
    23
# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
2785
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    24
#
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    25
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    27
6035
c9748fcc32de PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 3996
diff changeset
    28
PATH=/usr/gnu/bin:/usr/bin:/usr/sbin
c9748fcc32de PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 3996
diff changeset
    29
2785
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_NAME=		rabbitmq-server
6124
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    31
COMPONENT_VERSION=	3.6.1
2785
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_PROJECT_URL=	http://www.rabbitmq.com/
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
6124
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    34
COMPONENT_ARCHIVE=	$(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.xz
2785
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_HASH=	\
6124
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    36
    sha256:c696134e863f99191a301288c12d69ff00b7e648107ee52c8686ae047dde1bee
2785
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    37
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)/releases/$(COMPONENT_NAME)/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    38
COMPONENT_BUGDB=	service/rabbitmq
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    39
6124
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    40
TPNO=			27775
3661
47545fb8aed4 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 2785
diff changeset
    41
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    42
include $(WS_MAKE_RULES)/prep.mk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    43
include $(WS_MAKE_RULES)/justmake.mk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    44
include $(WS_MAKE_RULES)/ips.mk
2785
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    45
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    46
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    47
6124
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    48
PKG_PROTO_DIRS +=	$(COMPONENT_DIR)/files
2785
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    49
6124
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    50
# rabbitmq doesn't like cloney
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    51
COMPONENT_PRE_BUILD_ACTION = ($(CP) -rp $(SOURCE_DIR)/. $(@D))
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    52
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    53
COMPONENT_BUILD_ACTION +=	/usr/bin/true
2785
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    54
6124
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    55
COMPONENT_INSTALL_TARGETS =	all
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    56
COMPONENT_INSTALL_TARGETS +=	install
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    57
COMPONENT_INSTALL_TARGETS +=	install-man
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    58
COMPONENT_INSTALL_ENV +=	DESTDIR=$(PROTO_DIR)
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    59
COMPONENT_INSTALL_ENV +=	MANDIR=/usr/share/man
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    60
COMPONENT_INSTALL_ENV +=	RMQ_ROOTDIR=/usr
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    61
COMPONENT_INSTALL_ENV +=	RMQ_BINDIR=/usr/lib/rabbitmq/bin
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    62
COMPONENT_INSTALL_ENV +=	RMQ_LIBDIR=/usr/lib
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    63
COMPONENT_INSTALL_ENV +=	RMQ_ERLAPP_DIR=/usr/lib/rabbitmq
6035
c9748fcc32de PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 3996
diff changeset
    64
c9748fcc32de PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 3996
diff changeset
    65
# We delegate the running of the tests to a script because it's easier to find
c9748fcc32de PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 3996
diff changeset
    66
# and use unique free ports in a single process, and it's easier to make sure
c9748fcc32de PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 3996
diff changeset
    67
# that we don't leave any servers running if the tests themselves fail.
c9748fcc32de PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 3996
diff changeset
    68
COMPONENT_TEST_DIR =		$(COMPONENT_DIR)
c9748fcc32de PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 3996
diff changeset
    69
COMPONENT_TEST_CMD =		$(PYTHON)
c9748fcc32de PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 3996
diff changeset
    70
COMPONENT_TEST_TARGETS =	test.py $(TEST_32)
c9748fcc32de PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 3996
diff changeset
    71
6124
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    72
# taken from justmake.mk but with the CLONEY line removed.
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    73
# build the configured source
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    74
$(BUILD_DIR)/%/.built:  $(SOURCE_DIR)/.prep
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    75
	$(RM) -r $(@D) ; $(MKDIR) $(@D)
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    76
	$(COMPONENT_PRE_BUILD_ACTION)
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    77
	($(COMPONENT_BUILD_ACTION))
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    78
	$(COMPONENT_POST_BUILD_ACTION)
0a6b764b6ad6 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 6035
diff changeset
    79
2785
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    80
# common targets
6035
c9748fcc32de PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 3996
diff changeset
    81
install:	$(INSTALL_32)
2785
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    82
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    83
test:		$(TEST_32)
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    84
b6f5c5d1d0b7 PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    85
6035
c9748fcc32de PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 3996
diff changeset
    86
REQUIRED_PACKAGES += compress/zip
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    87
REQUIRED_PACKAGES += runtime/erlang
6035
c9748fcc32de PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 3996
diff changeset
    88
REQUIRED_PACKAGES += shell/bash
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    89
REQUIRED_PACKAGES += shell/ksh93