components/ruby/mcollective/Makefile
author shruthi.rr@oracle.com <shruthi.rr@oracle.com>
Wed, 19 Apr 2017 22:59:18 -0700
changeset 7918 85d01b2eb34a
parent 7687 1093e2a9adbd
permissions -rw-r--r--
25864707 ib_clock_test.8 man page is corrupted
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
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5643
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5643
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6681
diff changeset
    23
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    24
#
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    25
include ../../../make-rules/shared-macros.mk
5643
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    26
include ../../../make-rules/shared-targets.mk
5816
19f33e9a0aee 23007367 MCollective & STOMP shouldn't have $RUBY_VER in their pkg name
saurabh.vyas@oracle.com
parents: 5682
diff changeset
    27
include ../../../make-rules/ruby.mk
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    28
5350
0bd2e97a57c6 22599480 move mcollective to Ruby 2.1
saurabh.vyas@oracle.com
parents: 5325
diff changeset
    29
RUBY_VERSION=       2.1
0bd2e97a57c6 22599480 move mcollective to Ruby 2.1
saurabh.vyas@oracle.com
parents: 5325
diff changeset
    30
RUBY_LIB_VERSION=   2.1.0
0bd2e97a57c6 22599480 move mcollective to Ruby 2.1
saurabh.vyas@oracle.com
parents: 5325
diff changeset
    31
RUBY_VERSIONS=      2.1.0
5643
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    32
PATCH_EACH_ARCHIVE = 1
5350
0bd2e97a57c6 22599480 move mcollective to Ruby 2.1
saurabh.vyas@oracle.com
parents: 5325
diff changeset
    33
6664
9ac8bf232045 23209268 Upgrade mcollective to 2.8.8
saurabh.vyas@oracle.com
parents: 5816
diff changeset
    34
COMPONENT=		mcollective
9ac8bf232045 23209268 Upgrade mcollective to 2.8.8
saurabh.vyas@oracle.com
parents: 5816
diff changeset
    35
COMPONENT_NAME=		marionette-collective
9ac8bf232045 23209268 Upgrade mcollective to 2.8.8
saurabh.vyas@oracle.com
parents: 5816
diff changeset
    36
COMPONENT_VERSION=	2.8.8
9ac8bf232045 23209268 Upgrade mcollective to 2.8.8
saurabh.vyas@oracle.com
parents: 5816
diff changeset
    37
COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    38
COMPONENT_ARCHIVE_HASH=	\
6664
9ac8bf232045 23209268 Upgrade mcollective to 2.8.8
saurabh.vyas@oracle.com
parents: 5816
diff changeset
    39
    sha256:503b26cb0beeb505bf9cd2abbb8724c67bc743ffff4fbaddc321e2a4d663b133
9ac8bf232045 23209268 Upgrade mcollective to 2.8.8
saurabh.vyas@oracle.com
parents: 5816
diff changeset
    40
COMPONENT_ARCHIVE_URL=	https://github.com/puppetlabs/marionette-collective/archive/$(COMPONENT_VERSION).tar.gz
9ac8bf232045 23209268 Upgrade mcollective to 2.8.8
saurabh.vyas@oracle.com
parents: 5816
diff changeset
    41
COMPONENT_PROJECT_URL=  https://github.com/puppetlabs/marionette-collective
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    42
COMPONENT_BUGDB=	utility/mcollective
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6681
diff changeset
    43
COMPONENT_ANITYA_ID=	1956
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    44
6664
9ac8bf232045 23209268 Upgrade mcollective to 2.8.8
saurabh.vyas@oracle.com
parents: 5816
diff changeset
    45
TPNO_FRMWK=        29321
5643
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    46
TPNO_PKG_AGENT=    26722
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    47
TPNO_PPT_AGENT=    26719
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    48
TPNO_FCT_AGENT=    26723
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    49
TPNO_SVC_AGENT=    26724
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    50
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    51
COMPONENT_NAME_1=  mcollective-puppet-agent
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    52
VERSION_PPT_AGENT= 1.10.0
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    53
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
    54
GIT_COMMIT_ID_1=   cfa4b5e4a9752f6b631f0231b25051c3c16e89d8
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    55
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
    56
5643
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    57
COMPONENT_NAME_2=  mcollective-package-agent
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    58
VERSION_PKG_AGENT= 4.4.0
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    59
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
    60
GIT_COMMIT_ID_2=   8520f756cbe4ce8a1e0fc416ed4d79ee774bcb71
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    61
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
    62
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    63
COMPONENT_NAME_3=  mcollective-service-agent
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    64
VERSION_SVC_AGENT= 3.3.1
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    65
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
    66
GIT_COMMIT_ID_3=   75478ac81f80bfd5ebaab05fe5dc5b92d90af815
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    67
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
    68
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    69
COMPONENT_NAME_4=  mcollective-facter-facts
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    70
VERSION_FCT_AGENT= 1.0.0
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    71
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
    72
GIT_COMMIT_ID_4=   30adc0e50bc38fc261cae437e84a1b69a08fdae3
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    73
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
    74
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    75
include $(WS_MAKE_RULES)/prep.mk
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    76
include $(WS_MAKE_RULES)/install.rb.mk
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    77
include $(WS_MAKE_RULES)/ips.mk
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    78
5355
5ccf97c2878d 22611345 building ruby components should not force options which are optional
April Chin <april.chin@oracle.com>
parents: 5350
diff changeset
    79
# --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
    80
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
    81
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    82
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    83
5643
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    84
COMPONENT_POST_UNPACK_ACTION_3 += \
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    85
  $(GPATCH) -d \
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    86
      $(COMPONENT_DIR)/$(COMPONENT_NAME_3)-$(GIT_COMMIT_ID_3) \
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    87
      $(GPATCH_FLAGS) \
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    88
      < patches/03-mco-service-name
ccf9fb8a1db9 PSARC/2016/037 Common MCollective agents
saurabh.vyas@oracle.com
parents: 5355
diff changeset
    89
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    90
# common targets
6681
ccbd9bc81b18 22961636 ruby components have incorrect build target BUILD_64 in their Makefile
Jingning Ji <jingning.ji@oracle.com>
parents: 6664
diff changeset
    91
build:		$(BUILD_NO_ARCH)
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    92
6681
ccbd9bc81b18 22961636 ruby components have incorrect build target BUILD_64 in their Makefile
Jingning Ji <jingning.ji@oracle.com>
parents: 6664
diff changeset
    93
install:	$(INSTALL_NO_ARCH)
5323
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
test:		$(NO_TESTS)
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    96
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    97
system-test:    $(NO_TESTS)
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    98
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
    99
5350
0bd2e97a57c6 22599480 move mcollective to Ruby 2.1
saurabh.vyas@oracle.com
parents: 5325
diff changeset
   100
REQUIRED_PACKAGES += runtime/ruby-21
5323
4aa2cfbd75bb PSARC/2015/290 Stomp plugin for Ruby
saurabh.vyas@oracle.com
parents:
diff changeset
   101
REQUIRED_PACKAGES += system/core-os