components/rabbitmq/Makefile
author David Hollister <david.hollister@oracle.com>
Wed, 12 Oct 2016 14:01:13 -0600
changeset 7094 61352b4e5af5
parent 5776 f6fa335ae47b
child 7687 1093e2a9adbd
permissions -rw-r--r--
24797203 OpenStack RBAC profiles allow reading too many files 24797238 keystone RBAC and SMF should point at Apache log files 24797256 cinder RBAC and SMF should point at Apache log files 24830959 horizon RBAC and SMF should point at Apache log files
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1484
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     1
#
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     3
#
01108fd9c6ef 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
01108fd9c6ef 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").
01108fd9c6ef 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.
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     7
#
01108fd9c6ef 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
01108fd9c6ef 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.
01108fd9c6ef 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
01108fd9c6ef 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.
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    12
#
01108fd9c6ef 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
01108fd9c6ef 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.
01108fd9c6ef 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
01108fd9c6ef 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
01108fd9c6ef 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]
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    18
#
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    20
#
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    21
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    22
#
5405
66fd59fecd68 PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 4339
diff changeset
    23
# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
1484
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5405
diff changeset
    25
BUILD_BITS= 32
1484
01108fd9c6ef 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
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    27
5405
66fd59fecd68 PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 4339
diff changeset
    28
PATH=/usr/gnu/bin:/usr/bin:/usr/sbin
66fd59fecd68 PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 4339
diff changeset
    29
1484
01108fd9c6ef 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
5776
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    31
COMPONENT_VERSION=	3.6.1
1484
01108fd9c6ef 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/
5776
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    33
COMPONENT_ARCHIVE=	$(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.xz
1484
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_HASH=	\
5776
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    35
    sha256:c696134e863f99191a301288c12d69ff00b7e648107ee52c8686ae047dde1bee
1484
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    36
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)/releases/$(COMPONENT_NAME)/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
1487
d2b165c7a310 16776524 add RabbitMQ to Userland (fix bug category)
John Beck <John.Beck@Oracle.COM>
parents: 1484
diff changeset
    37
COMPONENT_BUGDB=	service/rabbitmq
1484
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    38
5776
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    39
TPNO=			27775
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1751
diff changeset
    40
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5405
diff changeset
    41
BUILD_STYLE= justmake
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5405
diff changeset
    42
include $(WS_MAKE_RULES)/common.mk
1484
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    43
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    44
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    45
5776
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    46
PKG_PROTO_DIRS += 	$(BUILD_DIR)/$(MACH32)
1484
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    47
5776
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    48
# rabbitmq doesn't like cloney
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    49
COMPONENT_PRE_BUILD_ACTION = ($(CP) -rp $(SOURCE_DIR)/. $(@D))
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    50
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    51
COMPONENT_BUILD_ACTION +=	/usr/bin/true
1484
01108fd9c6ef PSARC 2013/140 greenlet version 0.4.0 - Python coroutines module
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    52
5776
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    53
COMPONENT_INSTALL_TARGETS =	all
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    54
COMPONENT_INSTALL_TARGETS +=	install
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    55
COMPONENT_INSTALL_TARGETS +=	install-man
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    56
COMPONENT_INSTALL_ENV +=	DESTDIR=$(PROTO_DIR)
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    57
COMPONENT_INSTALL_ENV +=	MANDIR=/usr/share/man
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    58
COMPONENT_INSTALL_ENV +=	RMQ_ROOTDIR=/usr
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    59
COMPONENT_INSTALL_ENV +=	RMQ_BINDIR=/usr/lib/rabbitmq/bin
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    60
COMPONENT_INSTALL_ENV +=	RMQ_LIBDIR=/usr/lib
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    61
COMPONENT_INSTALL_ENV +=	RMQ_ERLAPP_DIR=/usr/lib/rabbitmq
5405
66fd59fecd68 PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 4339
diff changeset
    62
2164
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    63
# We delegate the running of the tests to a script because it's easier to find
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    64
# and use unique free ports in a single process, and it's easier to make sure
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    65
# that we don't leave any servers running if the tests themselves fail.
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    66
COMPONENT_TEST_DIR =		$(COMPONENT_DIR)
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    67
COMPONENT_TEST_CMD =		$(PYTHON)
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    68
COMPONENT_TEST_TARGETS =	test.py $(TEST_32)
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    69
5776
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    70
# taken from justmake.mk but with the CLONEY line removed.
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    71
# build the configured source
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    72
$(BUILD_DIR)/%/.built:  $(SOURCE_DIR)/.prep
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    73
	$(RM) -r $(@D) ; $(MKDIR) $(@D)
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    74
	$(COMPONENT_PRE_BUILD_ACTION)
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    75
	($(COMPONENT_BUILD_ACTION))
f6fa335ae47b 23034195 Update RabbitMQ to 3.6.1
Drew Fisher <drew.fisher@oracle.com>
parents: 5682
diff changeset
    76
	$(COMPONENT_POST_BUILD_ACTION)
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2164
diff changeset
    77
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2164
diff changeset
    78
REQUIRED_PACKAGES += runtime/erlang
5405
66fd59fecd68 PSARC 2015/535 OpenStack service updates for Kilo
Devjani Ray <devjani.ray@oracle.com>
parents: 4339
diff changeset
    79
REQUIRED_PACKAGES += shell/bash
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2164
diff changeset
    80
REQUIRED_PACKAGES += shell/ksh93