Makefile revision 5440
1487N/A#
1487N/A# CDDL HEADER START
1487N/A#
1487N/A# The contents of this file are subject to the terms of the
1487N/A# Common Development and Distribution License (the "License").
1487N/A# You may not use this file except in compliance with the License.
1487N/A#
1487N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1487N/A# or http://www.opensolaris.org/os/licensing.
1487N/A# See the License for the specific language governing permissions
1487N/A# and limitations under the License.
1487N/A#
1487N/A# When distributing Covered Code, include this CDDL HEADER in each
1487N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1487N/A# If applicable, add the following below this CDDL HEADER, with the
1487N/A# fields enclosed by brackets "[]" replaced with your own identifying
1487N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1487N/A#
1487N/A# CDDL HEADER END
1487N/A#
5353N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
1487N/A#
3160N/Ainclude ../../../make-rules/shared-macros.mk
5436N/ARUBY_VERSION=2.1
5436N/ARUBY_LIB_VERSION=2.1.0
5436N/ARUBY_VERSIONS=2.1.0
1487N/A
1487N/ACOMPONENT_NAME= puppet
3160N/ACOMPONENT_VERSION= 3.6.2
1487N/ACOMPONENT_PROJECT_URL= http://puppetlabs.com/
1487N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1487N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1487N/ACOMPONENT_ARCHIVE_HASH= \
3160N/A sha256:9114c63108c58e39db84937cb8f7e1add3dcbaa08fd730f631de6a7f64a3c360
1487N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)downloads/puppet/$(COMPONENT_ARCHIVE)
1487N/ACOMPONENT_BUGDB= utility/puppet
1487N/A
3160N/ATPNO= 18128
2899N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/install.rb.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
5436N/Ainclude $(WS_MAKE_RULES)/ruby.mk
1487N/A
3160N/A# puppet requires facter and hiera as part of the install phase
5436N/AFACTER_LIB=$(WS_TOP)/components/ruby/facter/build/$(MACH64)/lib
5436N/AHIERA_LIB=$(WS_TOP)/components/ruby/hiera/build/$(MACH64)/lib
5436N/ACOMPONENT_INSTALL_ENV += RUBYLIB="$(FACTER_LIB):$(HIERA_LIB)"
1487N/A
3160N/A../facter/build/%/.installed:
3160N/A (cd ../facter ; $(GMAKE) install)
3160N/A
3160N/A../hiera/build/%/.installed:
3160N/A (cd ../hiera ; $(GMAKE) install)
1487N/A
5436N/A
5436N/A# Collect puppet module manifests for inclusion of puppet modules in group depends
5436N/A# declare a prereq on all manifests to update depend file as needed
5436N/APUPPET_MODULE_MANIFESTS = $(wildcard $(WS_TOP)/components/ruby/puppet-modules/*-*/*.p5m)
5436N/A$(BUILD_DIR)/puppet-modules.depend: $(PUPPET_MODULE_MANIFESTS) $(BUILD_DIR)
5436N/A $(PKGMOGRIFY) -i -O /dev/null -P $@ $(WS_TRANSFORMS)/group-dependency $(PUPPET_MODULE_MANIFESTS)
5436N/Abuild:: $(BUILD_DIR)/puppet-modules.depend
5436N/A
5436N/A
1487N/A# set the bindir to /usr/sbin
5353N/AINSTALL_RB_BINDIR_OPTION = --bindir=$(USRSBINDIR)
5353N/A
5353N/A# --sbindir option not supported by Puppet install.rb
5353N/AINSTALL_RB_SBINDIR_OPTION =
1487N/A
1938N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
1938N/A
5440N/APKG_OPTIONS += -I $(BUILD_DIR)
5440N/A
1487N/A# common targets
5436N/Abuild:: $(BUILD_64)
1487N/A
3160N/A# make sure facter and hiera are installed first
3160N/Ainstall: ../facter/build/$(MACH64)/.installed ../hiera/build/$(MACH64)/.installed $(INSTALL_64)
1487N/A
1888N/Aclean::
1888N/A
1487N/A# puppet requires the installation of the following rubygems to run
3160N/A# the unittests: rspec rspec-expectations mocha rack rgen
1487N/A# Disable the tests until these rubygems are available.
1487N/Atest: $(NO_TESTS)
1487N/A
4337N/Asystem-test: $(NO_TESTS)
4337N/A
5436N/AREQUIRED_PACKAGES += runtime/ruby-21
5436N/AREQUIRED_PACKAGES += library/ruby/hiera
5436N/AREQUIRED_PACKAGES += system/management/facter