1710N/A#
1710N/A# CDDL HEADER START
1710N/A#
1710N/A# The contents of this file are subject to the terms of the
1710N/A# Common Development and Distribution License (the "License").
1710N/A# You may not use this file except in compliance with the License.
1710N/A#
1710N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1710N/A# or http://www.opensolaris.org/os/licensing.
1710N/A# See the License for the specific language governing permissions
1710N/A# and limitations under the License.
1710N/A#
1710N/A# When distributing Covered Code, include this CDDL HEADER in each
1710N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1710N/A# If applicable, add the following below this CDDL HEADER, with the
1710N/A# fields enclosed by brackets "[]" replaced with your own identifying
1710N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1710N/A#
1710N/A# CDDL HEADER END
1710N/A#
3996N/A# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
1710N/A#
3427N/Ainclude ../../../make-rules/shared-macros.mk
1710N/A
1710N/ACOMPONENT_NAME= puppet
3427N/ACOMPONENT_VERSION= 3.6.2
1710N/ACOMPONENT_PROJECT_URL= http://puppetlabs.com/
1710N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1710N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1710N/ACOMPONENT_ARCHIVE_HASH= \
3427N/A sha256:9114c63108c58e39db84937cb8f7e1add3dcbaa08fd730f631de6a7f64a3c360
1710N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)downloads/puppet/$(COMPONENT_ARCHIVE)
1710N/ACOMPONENT_BUGDB= utility/puppet
1710N/A
3427N/ATPNO= 18128
3427N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/install.rb.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
1710N/A
3427N/A# puppet requires facter and hiera as part of the install phase
3427N/ACOMPONENT_INSTALL_ENV += RUBYLIB="$(COMPONENT_DIR)/../facter/build/$(MACH64)/lib:$(COMPONENT_DIR)/../hiera/build/$(MACH64)/lib"
1710N/A
3427N/A../facter/build/%/.installed:
3427N/A (cd ../facter ; $(GMAKE) install)
3427N/A
3427N/A../hiera/build/%/.installed:
3427N/A (cd ../hiera ; $(GMAKE) install)
1710N/A
1710N/A# set the bindir to /usr/sbin
1710N/AINSTALL_RB_BINDIR = $(USRSBINDIR)
1710N/A
2383N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
2383N/A
2383N/A# pass Ruby values onto the package manfiest
2383N/APKG_MACROS += RUBY_VERSION=$(RUBY_VERSION)
2383N/APKG_MACROS += RUBY_LIB_VERSION=$(RUBY_LIB_VERSION)
2383N/A
1710N/A# common targets
2140N/Abuild: $(BUILD_64)
2026N/A # Ruby extension for auditing
2026N/A (cd ext; $(RUBY) extconf.rb; $(GMAKE))
1710N/A
3427N/A# make sure facter and hiera are installed first
3427N/Ainstall: ../facter/build/$(MACH64)/.installed ../hiera/build/$(MACH64)/.installed $(INSTALL_64)
1710N/A
2026N/Aclean::
2026N/A @if [ -f ext/Makefile ]; then \
2026N/A (cd ext; $(GMAKE) clean; $(RM) Makefile) \
2026N/A fi
2026N/A
1710N/A# puppet requires the installation of the following rubygems to run
3427N/A# the unittests: rspec rspec-expectations mocha rack rgen
1710N/A# Disable the tests until these rubygems are available.
1710N/Atest: $(NO_TESTS)
1710N/A
1710N/A
3996N/AREQUIRED_PACKAGES += runtime/ruby-19
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/core-os
3996N/AREQUIRED_PACKAGES += system/library
3996N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
3996N/AREQUIRED_PACKAGES += system/library/math
3996N/AREQUIRED_PACKAGES += system/linker
3996N/AREQUIRED_PACKAGES += system/network