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.4.1 |
|
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:e6a929699a83c2bc1d1661674172ba7e92b6fb4235fa594cc2f3219925504b93 |
|
32 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)downloads/puppet/$(COMPONENT_ARCHIVE) |
|
33 COMPONENT_BUGDB= utility/puppet |
|
34 |
|
35 include $(WS_TOP)/make-rules/prep.mk |
|
36 include $(WS_TOP)/make-rules/install.rb.mk |
|
37 include $(WS_TOP)/make-rules/ips.mk |
|
38 |
|
39 # puppet requires facter to build |
|
40 COMPONENT_INSTALL_ENV += RUBYLIB="$(COMPONENT_DIR)/../ruby/facter/build/prototype/$(MACH)$(VENDOR_RUBY)" |
|
41 |
|
42 ../ruby/facter/build/%/.installed: |
|
43 (cd ../ruby/facter ; $(GMAKE) install) |
|
44 |
|
45 # set the bindir to /usr/sbin |
|
46 INSTALL_RB_BINDIR = $(USRSBINDIR) |
|
47 |
|
48 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
|
49 |
|
50 # pass Ruby values onto the package manfiest |
|
51 PKG_MACROS += RUBY_VERSION=$(RUBY_VERSION) |
|
52 PKG_MACROS += RUBY_LIB_VERSION=$(RUBY_LIB_VERSION) |
|
53 |
|
54 # common targets |
|
55 build: $(BUILD_64) |
|
56 # Ruby extension for auditing |
|
57 (cd ext; $(RUBY) extconf.rb; $(GMAKE)) |
|
58 |
|
59 # make sure facter is installed first |
|
60 install: ../ruby/facter/build/$(MACH64)/.installed $(INSTALL_64) |
|
61 |
|
62 clean:: |
|
63 @if [ -f ext/Makefile ]; then \ |
|
64 (cd ext; $(GMAKE) clean; $(RM) Makefile) \ |
|
65 fi |
|
66 |
|
67 # puppet requires the installation of the following rubygems to run |
|
68 # the unittests: rspec rspec-expectations mocha rake rack hiera rgen |
|
69 # Disable the tests until these rubygems are available. |
|
70 test: $(NO_TESTS) |
|
71 |
|
72 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
73 |
|
74 include $(WS_TOP)/make-rules/depend.mk |
|