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#
5680N/A
5680N/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
5726N/ACOMPONENT_VERSION= 3.8.6
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= \
5726N/A sha256:99ccccd1016d30914f69d96355002818aa8087dfb9e1e6e40578aa67fee77da8
5726N/ACOMPONENT_ARCHIVE_URL= http://downloads.puppetlabs.com/puppet/$(COMPONENT_ARCHIVE)
1487N/ACOMPONENT_BUGDB= utility/puppet
1487N/A
5726N/ATPNO= 27309
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
6682N/AFACTER_LIB=$(WS_TOP)/components/ruby/facter/build/$(MACH)/lib
6682N/AHIERA_LIB=$(WS_TOP)/components/ruby/hiera/build/$(MACH)/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
5489N/A# Collect and print puppet module manifests for cherry picking into group
5489N/A# dependencies as a helper for the package maintainer
5489N/APUPPET_MODULE_MANIFESTS = $(sort $(wildcard $(WS_TOP)/components/ruby/puppet-modules/*-*/*.p5m))
5489N/Aprint-modules: $(PUPPET_MODULE_MANIFESTS)
5489N/A $(PKGMOGRIFY) -i -O /dev/null $(WS_TRANSFORMS)/group-dependency $(PUPPET_MODULE_MANIFESTS)
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
6679N/Abuild:: $(BUILD_NO_ARCH)
1487N/A
3160N/A# make sure facter and hiera are installed first
6679N/Ainstall: ../facter/build/$(MACH)/.installed ../hiera/build/$(MACH)/.installed $(INSTALL_NO_ARCH)
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