pulseaudio: fix dependencies for openssl-3
[oi-userland.git] / components / ruby / puppet / Makefile
blob67ae154e2317ac99d8c062a77df9500b0e3c02ac
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
21 # Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
23 include ../../../make-rules/shared-macros.mk
25 COMPONENT_NAME= puppet
26 COMPONENT_VERSION= 3.8.6
27 COMPONENT_REVISION= 2
28 COMPONENT_SUMMARY= Puppet - configuration management toolkit
29 COMPONENT_PROJECT_URL= http://puppetlabs.com/
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
32 COMPONENT_ARCHIVE_HASH= \
33 sha256:99ccccd1016d30914f69d96355002818aa8087dfb9e1e6e40578aa67fee77da8
34 COMPONENT_ARCHIVE_URL= https://downloads.puppetlabs.com/puppet/$(COMPONENT_ARCHIVE)
35 COMPONENT_FMRI= system/management/puppet
36 COMPONENT_LICENSE= Apache v2.0
37 COMPONENT_LICENSE_FILE= puppet.license
38 COMPONENT_CLASSIFICATION= System/Administration and Configuration
40 include $(WS_MAKE_RULES)/prep.mk
41 include $(WS_MAKE_RULES)/install.rb.mk
42 include $(WS_MAKE_RULES)/ips.mk
43 include $(WS_MAKE_RULES)/ruby.mk
45 # puppet requires facter and hiera as part of the install phase
46 FACTER_LIB=$(WS_TOP)/components/ruby/facter/build/$(MACH32)/lib
47 HIERA_LIB=$(WS_TOP)/components/ruby/hiera/build/$(MACH32)/lib
48 COMPONENT_INSTALL_ENV += RUBYLIB="$(FACTER_LIB):$(HIERA_LIB)"
50 ../facter/build/%/.installed:
51 (cd ../facter ; $(GMAKE) install)
53 ../hiera/build/%/.installed:
54 (cd ../hiera ; $(GMAKE) install)
56 # set the bindir to /usr/sbin
57 INSTALL_RB_BINDIR = $(USRSBINDIR)
59 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
61 # pass Ruby values onto the package manfiest
62 PKG_MACROS += RUBY_VERSION=$(RUBY_VERSION)
63 PKG_MACROS += RUBY_LIB_VERSION=$(RUBY_LIB_VERSION)
65 # common targets
66 build: $(BUILD_32)
68 # make sure facter and hiera are installed first
69 install: ../facter/build/$(MACH32)/.installed ../hiera/build/$(MACH32)/.installed $(INSTALL_32)
71 # puppet requires the installation of the following rubygems to run
72 # the unittests: rspec rspec-expectations mocha rack rgen
73 # Disable the tests until these rubygems are available.
74 test: $(NO_TESTS)
76 REQUIRED_PACKAGES += runtime/ruby-23
77 REQUIRED_PACKAGES += library/ruby/hiera
78 REQUIRED_PACKAGES += system/management/facter