Makefile revision 5489
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# CDDL HEADER START
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# The contents of this file are subject to the terms of the
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Common Development and Distribution License (the "License").
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# You may not use this file except in compliance with the License.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# See the License for the specific language governing permissions
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# and limitations under the License.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# When distributing Covered Code, include this CDDL HEADER in each
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# If applicable, add the following below this CDDL HEADER, with the
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# fields enclosed by brackets "[]" replaced with your own identifying
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# information: Portions Copyright [yyyy] [name of copyright owner]
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# CDDL HEADER END
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami sha256:9114c63108c58e39db84937cb8f7e1add3dcbaa08fd730f631de6a7f64a3c360
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)downloads/puppet/$(COMPONENT_ARCHIVE)
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# puppet requires facter and hiera as part of the install phase
18c2aff776a775d34a4c9893a4c72e0434d68e36artemFACTER_LIB=$(WS_TOP)/components/ruby/facter/build/$(MACH64)/lib
18c2aff776a775d34a4c9893a4c72e0434d68e36artemHIERA_LIB=$(WS_TOP)/components/ruby/hiera/build/$(MACH64)/lib
18c2aff776a775d34a4c9893a4c72e0434d68e36artemCOMPONENT_INSTALL_ENV += RUBYLIB="$(FACTER_LIB):$(HIERA_LIB)"
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Collect and print puppet module manifests for cherry picking into group
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# dependencies as a helper for the package maintainer
18c2aff776a775d34a4c9893a4c72e0434d68e36artemPUPPET_MODULE_MANIFESTS = $(sort $(wildcard $(WS_TOP)/components/ruby/puppet-modules/*-*/*.p5m))
18c2aff776a775d34a4c9893a4c72e0434d68e36artem $(PKGMOGRIFY) -i -O /dev/null $(WS_TRANSFORMS)/group-dependency $(PUPPET_MODULE_MANIFESTS)
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# set the bindir to /usr/sbin
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# --sbindir option not supported by Puppet install.rb
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# common targets
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# make sure facter and hiera are installed first
18c2aff776a775d34a4c9893a4c72e0434d68e36arteminstall: ../facter/build/$(MACH64)/.installed ../hiera/build/$(MACH64)/.installed $(INSTALL_64)
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# puppet requires the installation of the following rubygems to run
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# the unittests: rspec rspec-expectations mocha rack rgen
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Disable the tests until these rubygems are available.