|
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, 2016, Oracle and/or its affiliates. All rights reserved. |
|
22 # |
|
23 include ../../../make-rules/shared-macros.mk |
|
24 RUBY_VERSION=2.1 |
|
25 RUBY_LIB_VERSION=2.1.0 |
|
26 RUBY_VERSIONS=2.1.0 |
|
27 RUBY=/usr/ruby/$(RUBY_VERSION)/bin/ruby |
|
28 |
|
29 COMPONENT_NAME= puppet-solaris |
|
30 COMPONENT_VERSION= $(PKG_SOLARIS_VERSION) |
|
31 COMPONENT_BUGDB= utility/puppet |
|
32 |
|
33 include $(WS_MAKE_RULES)/prep.mk |
|
34 include $(WS_MAKE_RULES)/ruby.mk |
|
35 include $(WS_MAKE_RULES)/ips.mk |
|
36 |
|
37 |
|
38 # Not implemented by any make rules we are loading |
|
39 $(BUILD_64): ext/PuppetAudit.so $(BUILD_DIR) |
|
40 $(MKDIR) $(dir $@) |
|
41 $(TOUCH) $@ |
|
42 |
|
43 # Not implemented by any make rules we are loading |
|
44 $(INSTALL_64): $(BUILD_64) |
|
45 $(TOUCH) $@ |
|
46 |
|
47 # common targets |
|
48 build: $(BUILD_64) |
|
49 |
|
50 INSTALL_DIR=$(BUILD_DIR)/prototype/$(MACH) |
|
51 SECURITY_FILES=$(addprefix files/,auth_attr exec_attr prof_attr) |
|
52 ETC_FILES=$(addprefix files/,user_attr) |
|
53 |
|
54 ext/PuppetAudit.so: |
|
55 # Ruby extension for auditing |
|
56 (cd ext; $(RUBY) extconf.rb; $(GMAKE)) |
|
57 |
|
58 clean:: |
|
59 @if [ -f ext/Makefile ]; then \ |
|
60 (cd ext; $(GMAKE) clean; $(RM) Makefile) \ |
|
61 fi |
|
62 |
|
63 test: $(NO_TESTS) |
|
64 |
|
65 system-test: $(NO_TESTS) |
|
66 |
|
67 REQUIRED_PACKAGES += runtime/ruby-21 |
|
68 REQUIRED_PACKAGES += shell/ksh93 |
|
69 REQUIRED_PACKAGES += system/core-os |
|
70 REQUIRED_PACKAGES += system/library |
|
71 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
|
72 REQUIRED_PACKAGES += system/library/math |
|
73 REQUIRED_PACKAGES += system/network |