16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
|
21 |
|
22 # |
21 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
22 # |
24 # |
|
25 BUILD_BITS= 64 |
23 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
24 |
27 |
25 COMPONENT_NAME= bind |
28 COMPONENT_NAME= bind |
26 COMPONENT_VERSION= 9.6-ESV-R11 |
29 COMPONENT_VERSION= 9.6-ESV-R11 |
27 HUMAN_VERSION= $(COMPONENT_VERSION)-P6 |
30 HUMAN_VERSION= $(COMPONENT_VERSION)-P6 |
28 IPS_COMPONENT_VERSION= 9.6.3.11.6 |
31 IPS_COMPONENT_VERSION= 9.6.3.11.6 |
29 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
31 COMPONENT_PROJECT_URL= http://www.isc.org/software/bind/ |
32 COMPONENT_PROJECT_URL= http://www.isc.org/software/bind/ |
32 |
33 |
33 # hash from: sha256sum $(COMPONENT_ARCHIVE) | sed 's/\(.[^ ]*\).*/sha256:\1/' |
34 # hash from: sha256sum $(COMPONENT_ARCHIVE) | sed 's/\(.[^ ]*\).*/sha256:\1/' |
34 COMPONENT_ARCHIVE_HASH= \ |
35 COMPONENT_ARCHIVE_HASH= \ |
35 sha256:4f052195a62218c05a05033774452e6a9e329b865c01e594cc20a6adf11e0d0f |
36 sha256:4f052195a62218c05a05033774452e6a9e329b865c01e594cc20a6adf11e0d0f |
37 http://ftp.isc.org/isc/bind9/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
38 http://ftp.isc.org/isc/bind9/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
38 COMPONENT_BUGDB= service/dns-server |
39 COMPONENT_BUGDB= service/dns-server |
39 |
40 |
40 TPNO= 25905 |
41 TPNO= 25905 |
41 |
42 |
42 include $(WS_MAKE_RULES)/prep.mk |
43 include $(WS_MAKE_RULES)/common.mk |
43 include $(WS_MAKE_RULES)/configure.mk |
|
44 include $(WS_MAKE_RULES)/ips.mk |
|
45 |
44 |
46 # Specify "configure" options and features. |
45 # Specify "configure" options and features. |
47 # FYI, The configure options are displayed by 'named -V'. |
46 # FYI, The configure options are displayed by 'named -V'. |
48 CONFIGURE_OPTIONS += --enable-full-report |
47 CONFIGURE_OPTIONS += --enable-full-report |
49 # - Build dynamic libraries, static libraries are not shipped. |
48 # - Build dynamic libraries, static libraries are not shipped. |
51 # - Use openssl, but don't check version as that is also delivered dynamically. |
50 # - Use openssl, but don't check version as that is also delivered dynamically. |
52 CONFIGURE_OPTIONS += --with-openssl |
51 CONFIGURE_OPTIONS += --with-openssl |
53 CONFIGURE_OPTIONS += --disable-openssl-version-check |
52 CONFIGURE_OPTIONS += --disable-openssl-version-check |
54 CONFIGURE_OPTIONS += --with-pkcs11 |
53 CONFIGURE_OPTIONS += --with-pkcs11 |
55 # - Use xml2-config found uder /usr without checking its version. |
54 # - Use xml2-config found uder /usr without checking its version. |
56 CONFIGURE_OPTIONS += --with-libxml2=/usr |
55 CONFIGURE_OPTIONS += --with-libxml2=$(USRDIR) |
57 CONFIGURE_OPTIONS += --enable-threads=yes |
56 CONFIGURE_OPTIONS += --enable-threads |
58 CONFIGURE_OPTIONS += --enable-devpoll=yes |
57 CONFIGURE_OPTIONS += --enable-devpoll |
59 # - Enabled fixed [order] resource-record sets for backward compatibility. |
58 # - Enabled fixed [order] resource-record sets for backward compatibility. |
60 # - Requires more memory to store the sets so is not the default. |
59 # - Requires more memory to store the sets so is not the default. |
61 CONFIGURE_OPTIONS += --enable-fixed-rrset |
60 CONFIGURE_OPTIONS += --enable-fixed-rrset |
62 |
61 |
63 # Override / set specific pathnames: |
62 # Override / set specific pathnames: |
66 CONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib/dns/$(MACH64) |
65 CONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib/dns/$(MACH64) |
67 # - Traditionally all BIND executables are installed in sbin not bin. |
66 # - Traditionally all BIND executables are installed in sbin not bin. |
68 CONFIGURE_BINDIR.32 = $(CONFIGURE_SBINDIR.32) |
67 CONFIGURE_BINDIR.32 = $(CONFIGURE_SBINDIR.32) |
69 CONFIGURE_BINDIR.64 = $(CONFIGURE_SBINDIR.32) |
68 CONFIGURE_BINDIR.64 = $(CONFIGURE_SBINDIR.32) |
70 CONFIGURE_SBINDIR.64 = $(CONFIGURE_SBINDIR.32) |
69 CONFIGURE_SBINDIR.64 = $(CONFIGURE_SBINDIR.32) |
71 CONFIGURE_OPTIONS += --sysconfdir=/etc |
70 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
72 CONFIGURE_OPTIONS += --localstatedir=/var |
71 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR) |
73 CONFIGURE_OPTIONS += --with-randomdev=/dev/random |
72 CONFIGURE_OPTIONS += --with-randomdev=/dev/random |
74 CONFIGURE_OPTIONS += --with-gssapi=/usr |
73 CONFIGURE_OPTIONS += --with-gssapi=$(USRDIR) |
75 |
74 |
76 # Compiler and compiler options: |
75 # Compiler and compiler options: |
77 # - configure will add "-mt" to CC which is already set in CFLAGS, so override. |
76 # - configure will add "-mt" to CC which is already set in CFLAGS, so override. |
78 CONFIGURE_OPTIONS += CC="$(CC)" |
77 CONFIGURE_OPTIONS += CC="$(CC)" |
79 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
80 |
|
81 # Enable ASLR for this component |
|
82 ASLR_MODE = $(ASLR_ENABLE) |
|
83 |
78 |
84 # Test configuration / helper targets: |
79 # Test configuration / helper targets: |
85 COMPONENT_TEST_MASTER = \ |
80 COMPONENT_TEST_MASTER = \ |
86 $(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH).master |
81 $(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH).master |
87 |
82 |
165 $(RM) $(TEST_32_and_64) |
160 $(RM) $(TEST_32_and_64) |
166 |
161 |
167 # Common Command line targets |
162 # Common Command line targets |
168 .PHONY: configure build install test system-test |
163 .PHONY: configure build install test system-test |
169 |
164 |
170 configure: $(CONFIGURE_64) |
|
171 |
|
172 build: $(BUILD_64) |
|
173 |
|
174 install: $(INSTALL_64) |
|
175 |
|
176 test: $(TEST_64) |
|
177 |
|
178 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
|
179 |
|
180 # Package dependencies |
165 # Package dependencies |
181 # Created by 'gmake REQUIRED_PACKAGES', manually verified. |
166 # Created by 'gmake REQUIRED_PACKAGES', manually verified. |
182 REQUIRED_PACKAGES += library/libxml2 |
167 REQUIRED_PACKAGES += library/libxml2 |
183 REQUIRED_PACKAGES += library/security/openssl |
168 REQUIRED_PACKAGES += library/security/openssl |
184 REQUIRED_PACKAGES += library/security/openssl/openssl-fips-140 |
169 REQUIRED_PACKAGES += library/security/openssl/openssl-fips-140 |
185 REQUIRED_PACKAGES += network/dns/bind |
170 REQUIRED_PACKAGES += network/dns/bind |
186 REQUIRED_PACKAGES += service/security/kerberos-5 |
171 REQUIRED_PACKAGES += service/security/kerberos-5 |
187 REQUIRED_PACKAGES += shell/ksh93 |
172 REQUIRED_PACKAGES += shell/ksh93 |
188 REQUIRED_PACKAGES += system/core-os |
173 REQUIRED_PACKAGES += system/core-os |
189 REQUIRED_PACKAGES += system/library |
|
190 REQUIRED_PACKAGES += system/library/security/gss |
174 REQUIRED_PACKAGES += system/library/security/gss |