components/ruby/mcollective/Makefile
author saurabh.vyas@oracle.com
Tue, 22 Mar 2016 12:01:24 -0700
changeset 5643 ccf9fb8a1db9
parent 5355 5ccf97c2878d
child 5682 94c0ca64c022
permissions -rw-r--r--
PSARC/2016/037 Common MCollective agents 21940478 Add MCollective plugins to userland gate
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
     1
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
     2
# CDDL HEADER START
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
     3
#
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
     7
#
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    10
# See the License for the specific language governing permissions
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    11
# and limitations under the License.
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    12
#
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    18
#
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    19
# CDDL HEADER END
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    20
#
5325
25836c8f6fb0 21230525 Add ruby-STOMP module to userland consolidation (fix build/copyright)
saurabh.vyas@oracle.com
parents: 5323
diff changeset
    21
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    22
#
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    23
include ../../../make-rules/shared-macros.mk
5643
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    24
include ../../../make-rules/shared-targets.mk
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    25
5350
0bd2e97a57c6 22599480 move mcollective to Ruby 2.1
saurabh.vyas@oracle.com
parents: 5325
diff changeset
    26
RUBY_VERSION=       2.1
0bd2e97a57c6 22599480 move mcollective to Ruby 2.1
saurabh.vyas@oracle.com
parents: 5325
diff changeset
    27
RUBY_LIB_VERSION=   2.1.0
0bd2e97a57c6 22599480 move mcollective to Ruby 2.1
saurabh.vyas@oracle.com
parents: 5325
diff changeset
    28
RUBY_VERSIONS=      2.1.0
5643
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    29
PATCH_EACH_ARCHIVE = 1
5350
0bd2e97a57c6 22599480 move mcollective to Ruby 2.1
saurabh.vyas@oracle.com
parents: 5325
diff changeset
    30
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    31
COMPONENT_NAME=		mcollective
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    32
COMPONENT_VERSION=	2.8.2
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    33
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    34
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz 
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    35
COMPONENT_ARCHIVE_HASH=	\
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    36
    sha256:03e23d8e79ccee6394f0dd31456fb56c3ae4ca2891027062377a2aaa5b5c5fe9
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    37
COMPONENT_ARCHIVE_URL=	https://downloads.puppetlabs.com/mcollective/$(COMPONENT_ARCHIVE)
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    38
COMPONENT_PROJECT_URL=  https://puppetlabs.com/mcollective
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    39
COMPONENT_BUGDB=	utility/mcollective
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    40
5643
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    41
TPNO_FRMWK=        23491
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    42
TPNO_PKG_AGENT=    26722
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    43
TPNO_PPT_AGENT=    26719
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    44
TPNO_FCT_AGENT=    26723
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    45
TPNO_SVC_AGENT=    26724
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    46
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    47
COMPONENT_NAME_1=  mcollective-puppet-agent
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    48
VERSION_PPT_AGENT= 1.10.0
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    49
GIT_REPO_1=        https://github.com/puppetlabs/$(COMPONENT_NAME_1)
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    50
GIT_COMMIT_ID_1=   cfa4b5e4a9752f6b631f0231b25051c3c16e89d8
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    51
PKG_PROTO_DIRS +=  $(COMPONENT_NAME_1)-$(GIT_COMMIT_ID_1)
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    52
5643
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    53
COMPONENT_NAME_2=  mcollective-package-agent
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    54
VERSION_PKG_AGENT= 4.4.0
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    55
GIT_REPO_2=        https://github.com/puppetlabs/$(COMPONENT_NAME_2)
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    56
GIT_COMMIT_ID_2=   8520f756cbe4ce8a1e0fc416ed4d79ee774bcb71
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    57
PKG_PROTO_DIRS +=  $(COMPONENT_NAME_2)-$(GIT_COMMIT_ID_2)
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    58
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    59
COMPONENT_NAME_3=  mcollective-service-agent
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    60
VERSION_SVC_AGENT= 3.3.1
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    61
GIT_REPO_3=        https://github.com/puppetlabs/$(COMPONENT_NAME_3)
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    62
GIT_COMMIT_ID_3=   75478ac81f80bfd5ebaab05fe5dc5b92d90af815
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    63
PKG_PROTO_DIRS +=  $(COMPONENT_NAME_3)-$(GIT_COMMIT_ID_3)
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    64
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    65
COMPONENT_NAME_4=  mcollective-facter-facts
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    66
VERSION_FCT_AGENT= 1.0.0
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    67
GIT_REPO_4=        https://github.com/puppetlabs/$(COMPONENT_NAME_4)
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    68
GIT_COMMIT_ID_4=   30adc0e50bc38fc261cae437e84a1b69a08fdae3
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    69
PKG_PROTO_DIRS +=  $(COMPONENT_NAME_4)-$(GIT_COMMIT_ID_4)
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    70
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    71
include $(WS_MAKE_RULES)/prep.mk
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    72
include $(WS_MAKE_RULES)/install.rb.mk
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    73
include $(WS_MAKE_RULES)/ips.mk
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    74
5355
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    75
# --mandir option not supported by mcollective install.rb
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    76
INSTALL_RB_MANDIR_OPTION =
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    77
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    78
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    79
5643
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    80
COMPONENT_POST_UNPACK_ACTION_3 += \
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    81
  $(GPATCH) -d \
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    82
      $(COMPONENT_DIR)/$(COMPONENT_NAME_3)-$(GIT_COMMIT_ID_3) \
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    83
      $(GPATCH_FLAGS) \
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    84
      < patches/03-mco-service-name
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    85
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    86
# common targets
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    87
build:		$(BUILD_64)
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    88
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    89
install:	$(INSTALL_64)
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    90
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    91
test:		$(NO_TESTS)
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    92
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    93
system-test:    $(NO_TESTS)
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    94
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    95
5350
0bd2e97a57c6 22599480 move mcollective to Ruby 2.1
saurabh.vyas@oracle.com
parents: 5325
diff changeset
    96
REQUIRED_PACKAGES += runtime/ruby-21
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    97
REQUIRED_PACKAGES += system/core-os