components/ruby/puppet/Makefile
branchs11-update
changeset 3458 4912663e9858
parent 3401 bd976a0fa74e
child 3996 20c0f21bbe1e
equal deleted inserted replaced
3455:6bba35ecb6b8 3458:4912663e9858
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
       
    22 #
       
    23 include ../../../make-rules/shared-macros.mk
       
    24 
       
    25 COMPONENT_NAME=		puppet
       
    26 COMPONENT_VERSION=	3.6.2
       
    27 COMPONENT_PROJECT_URL=	http://puppetlabs.com/
       
    28 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    29 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    30 COMPONENT_ARCHIVE_HASH=	\
       
    31     sha256:9114c63108c58e39db84937cb8f7e1add3dcbaa08fd730f631de6a7f64a3c360
       
    32 COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)downloads/puppet/$(COMPONENT_ARCHIVE)
       
    33 COMPONENT_BUGDB=	utility/puppet
       
    34 
       
    35 TPNO=			18128
       
    36 
       
    37 include $(WS_TOP)/make-rules/prep.mk
       
    38 include $(WS_TOP)/make-rules/install.rb.mk
       
    39 include $(WS_TOP)/make-rules/ips.mk
       
    40 
       
    41 # puppet requires facter and hiera as part of the install phase 
       
    42 COMPONENT_INSTALL_ENV	+= RUBYLIB="$(COMPONENT_DIR)/../facter/build/$(MACH64)/lib:$(COMPONENT_DIR)/../hiera/build/$(MACH64)/lib"
       
    43 
       
    44 ../facter/build/%/.installed:
       
    45 	(cd ../facter ; $(GMAKE) install)
       
    46 
       
    47 ../hiera/build/%/.installed:
       
    48 	(cd ../hiera ; $(GMAKE) install)
       
    49 
       
    50 # set the bindir to /usr/sbin
       
    51 INSTALL_RB_BINDIR =	$(USRSBINDIR)
       
    52 
       
    53 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
       
    54 
       
    55 # pass Ruby values onto the package manfiest
       
    56 PKG_MACROS +=	RUBY_VERSION=$(RUBY_VERSION)
       
    57 PKG_MACROS +=	RUBY_LIB_VERSION=$(RUBY_LIB_VERSION)
       
    58 
       
    59 # common targets
       
    60 build:		$(BUILD_64)
       
    61 	# Ruby extension for auditing
       
    62 	(cd ext; $(RUBY) extconf.rb; $(GMAKE))
       
    63 
       
    64 # make sure facter and hiera are installed first
       
    65 install:	../facter/build/$(MACH64)/.installed ../hiera/build/$(MACH64)/.installed $(INSTALL_64)
       
    66 
       
    67 clean::
       
    68 	@if [ -f ext/Makefile ]; then \
       
    69 		(cd ext; $(GMAKE) clean; $(RM) Makefile) \
       
    70 	fi
       
    71 
       
    72 # puppet requires the installation of the following rubygems to run
       
    73 # the unittests:  rspec rspec-expectations mocha rack rgen
       
    74 # Disable the tests until these rubygems are available.
       
    75 test:		$(NO_TESTS)
       
    76 
       
    77 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
       
    78 
       
    79 include $(WS_TOP)/make-rules/depend.mk