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