Makefile revision 5353
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
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
1487N/A
3160N/A# puppet requires facter and hiera as part of the install phase
3187N/ACOMPONENT_INSTALL_ENV += RUBYLIB="$(COMPONENT_DIR)/../facter/build/$(MACH64)/lib:$(COMPONENT_DIR)/../hiera/build/$(MACH64)/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
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
2340N/A# pass Ruby values onto the package manfiest
2340N/APKG_MACROS += RUBY_VERSION=$(RUBY_VERSION)
2340N/APKG_MACROS += RUBY_LIB_VERSION=$(RUBY_LIB_VERSION)
2340N/A
1487N/A# common targets
2065N/Abuild: $(BUILD_64)
1888N/A # Ruby extension for auditing
1888N/A (cd ext; $(RUBY) extconf.rb; $(GMAKE))
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::
1942N/A @if [ -f ext/Makefile ]; then \
1942N/A (cd ext; $(GMAKE) clean; $(RM) Makefile) \
1942N/A fi
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
1487N/A
3817N/AREQUIRED_PACKAGES += runtime/ruby-19
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/core-os
3817N/AREQUIRED_PACKAGES += system/library
3817N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
3817N/AREQUIRED_PACKAGES += system/library/math
3817N/AREQUIRED_PACKAGES += system/network