Makefile revision 3427
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# CDDL HEADER START
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# The contents of this file are subject to the terms of the
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# Common Development and Distribution License (the "License").
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# You may not use this file except in compliance with the License.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# or http://www.opensolaris.org/os/licensing.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# See the License for the specific language governing permissions
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# and limitations under the License.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# When distributing Covered Code, include this CDDL HEADER in each
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# If applicable, add the following below this CDDL HEADER, with the
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# CDDL HEADER END
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncinclude ../../../make-rules/shared-macros.mk
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCOMPONENT_NAME= puppet
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCOMPONENT_VERSION= 3.6.2
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCOMPONENT_PROJECT_URL= http://puppetlabs.com/
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCOMPONENT_ARCHIVE_HASH= \
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync sha256:9114c63108c58e39db84937cb8f7e1add3dcbaa08fd730f631de6a7f64a3c360
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)downloads/puppet/$(COMPONENT_ARCHIVE)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCOMPONENT_BUGDB= utility/puppet
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncTPNO= 18128
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncinclude $(WS_TOP)/make-rules/prep.mk
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncinclude $(WS_TOP)/make-rules/install.rb.mk
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncinclude $(WS_TOP)/make-rules/ips.mk
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# puppet requires facter and hiera as part of the install phase
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCOMPONENT_INSTALL_ENV += RUBYLIB="$(COMPONENT_DIR)/../facter/build/$(MACH64)/lib:$(COMPONENT_DIR)/../hiera/build/$(MACH64)/lib"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync../facter/build/%/.installed:
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync (cd ../facter ; $(GMAKE) install)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync../hiera/build/%/.installed:
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync (cd ../hiera ; $(GMAKE) install)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# set the bindir to /usr/sbin
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncINSTALL_RB_BINDIR = $(USRSBINDIR)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncASLR_MODE = $(ASLR_NOT_APPLICABLE)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# pass Ruby values onto the package manfiest
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncPKG_MACROS += RUBY_VERSION=$(RUBY_VERSION)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncPKG_MACROS += RUBY_LIB_VERSION=$(RUBY_LIB_VERSION)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# common targets
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncbuild: $(BUILD_64)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync # Ruby extension for auditing
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync (cd ext; $(RUBY) extconf.rb; $(GMAKE))
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# make sure facter and hiera are installed first
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncinstall: ../facter/build/$(MACH64)/.installed ../hiera/build/$(MACH64)/.installed $(INSTALL_64)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncclean::
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync @if [ -f ext/Makefile ]; then \
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync (cd ext; $(GMAKE) clean; $(RM) Makefile) \
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync fi
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# puppet requires the installation of the following rubygems to run
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# the unittests: rspec rspec-expectations mocha rack rgen
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# Disable the tests until these rubygems are available.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctest: $(NO_TESTS)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncinclude $(WS_TOP)/make-rules/depend.mk
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync