24 # |
24 # |
25 BUILD_BITS= 64 |
25 BUILD_BITS= 64 |
26 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 |
27 |
28 COMPONENT_NAME= bind |
28 COMPONENT_NAME= bind |
29 COMPONENT_VERSION= 9.6-ESV-R11 |
29 COMPONENT_VERSION= 9.10.3-P4 |
30 HUMAN_VERSION= $(COMPONENT_VERSION)-P6 |
30 HUMAN_VERSION= $(COMPONENT_VERSION) |
31 IPS_COMPONENT_VERSION= 9.6.3.11.6 |
31 IPS_COMPONENT_VERSION= 9.10.3.0.4 |
32 COMPONENT_PROJECT_URL= http://www.isc.org/software/bind/ |
32 COMPONENT_PROJECT_URL= http://www.isc.org/software/bind/ |
33 |
33 |
34 # hash from: sha256sum $(COMPONENT_ARCHIVE) | sed 's/\(.[^ ]*\).*/sha256:\1/' |
34 # hash from: sha256sum $(COMPONENT_ARCHIVE) | sed 's/\(.[^ ]*\).*/sha256:\1/' |
35 COMPONENT_ARCHIVE_HASH= \ |
35 COMPONENT_ARCHIVE_HASH= \ |
36 sha256:4f052195a62218c05a05033774452e6a9e329b865c01e594cc20a6adf11e0d0f |
36 sha256:2ac044b5fbdf45fb45107af0df961b3b7cb5262a3bf1948ed3fe7a170dd13e3e |
37 COMPONENT_ARCHIVE_URL= \ |
37 COMPONENT_ARCHIVE_URL= \ |
38 http://ftp.isc.org/isc/bind9/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
38 http://ftp.isc.org/isc/bind9/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
|
39 COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).sha512.asc |
39 COMPONENT_BUGDB= service/dns-server |
40 COMPONENT_BUGDB= service/dns-server |
40 |
41 TPNO= 26279 |
41 TPNO= 25905 |
|
42 |
42 |
43 include $(WS_MAKE_RULES)/common.mk |
43 include $(WS_MAKE_RULES)/common.mk |
|
44 |
|
45 # PYVER is important for packaging and computing requisites. |
|
46 PYTHON_VERSION = 3.4 |
|
47 PKG_MACROS += PYVER=$(PYTHON_VERSION) |
44 |
48 |
45 # Specify "configure" options and features. |
49 # Specify "configure" options and features. |
46 # FYI, The configure options are displayed by 'named -V'. |
50 # FYI, The configure options are displayed by 'named -V'. |
47 CONFIGURE_OPTIONS += --enable-full-report |
51 CONFIGURE_OPTIONS += --enable-full-report |
48 # - Build dynamic libraries, static libraries are not shipped. |
52 # Python: specifying version helps with packaging. |
|
53 CONFIGURE_OPTIONS += --with-python=$(PYTHON.$(PYTHON_VERSION)) |
|
54 # - libtool: Build dynamic libraries, static libraries are not shipped. |
49 CONFIGURE_OPTIONS += --with-libtool |
55 CONFIGURE_OPTIONS += --with-libtool |
50 # - Use openssl, but don't check version as that is also delivered dynamically. |
56 # - openssl: use openssl, required for DNSSEC features. |
51 CONFIGURE_OPTIONS += --with-openssl |
57 CONFIGURE_OPTIONS += --with-openssl |
52 CONFIGURE_OPTIONS += --disable-openssl-version-check |
58 # - pkcs11: Use openSSL pkcs11 engine (KMIP/KMS) |
53 CONFIGURE_OPTIONS += --with-pkcs11 |
59 CONFIGURE_OPTIONS += --with-pkcs11 |
54 # - Use xml2-config found uder /usr without checking its version. |
60 # - Use xml2-config found uder /usr without checking its version. |
55 CONFIGURE_OPTIONS += --with-libxml2=$(USRDIR) |
61 CONFIGURE_OPTIONS += --with-libxml2=$(USRDIR) |
56 CONFIGURE_OPTIONS += --enable-threads |
62 CONFIGURE_OPTIONS += --enable-threads |
57 CONFIGURE_OPTIONS += --enable-devpoll |
63 CONFIGURE_OPTIONS += --enable-devpoll |
59 # - Requires more memory to store the sets so is not the default. |
65 # - Requires more memory to store the sets so is not the default. |
60 CONFIGURE_OPTIONS += --enable-fixed-rrset |
66 CONFIGURE_OPTIONS += --enable-fixed-rrset |
61 |
67 |
62 # Override / set specific pathnames: |
68 # Override / set specific pathnames: |
63 # - DNS libraries are in usr/lib/dns - Override settings from configure.mk |
69 # - DNS libraries are in usr/lib/dns - Override settings from configure.mk |
64 CONFIGURE_LIBDIR.32 = $(CONFIGURE_PREFIX)/lib/dns |
|
65 CONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib/dns/$(MACH64) |
70 CONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib/dns/$(MACH64) |
66 # - Traditionally all BIND executables are installed in sbin not bin. |
|
67 CONFIGURE_BINDIR.64 = $(CONFIGURE_SBINDIR.64) |
|
68 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
71 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
69 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR) |
72 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR) |
70 CONFIGURE_OPTIONS += --with-randomdev=/dev/random |
73 CONFIGURE_OPTIONS += --with-randomdev=/dev/random |
71 CONFIGURE_OPTIONS += --with-gssapi=krb5-config |
74 CONFIGURE_OPTIONS += --with-gssapi=krb5-config |
|
75 CONFIGURE_OPTIONS += --with-docbook-xsl=/usr/share/sgml/docbook |
72 |
76 |
73 # Compiler and compiler options: |
77 # Compiler and compiler options: |
74 # - configure will add "-mt" to CC which is already set in CFLAGS, so override. |
78 # - configure will add "-mt" to CC which is already set in CFLAGS, so override. |
75 CONFIGURE_OPTIONS += CC="$(CC)" |
79 CONFIGURE_OPTIONS += CC="$(CC)" |
76 |
80 |
143 LD_LIBRARY_PATH=$(PROTO_DIR)$(CONFIGURE_LIBDIR.64) \ |
147 LD_LIBRARY_PATH=$(PROTO_DIR)$(CONFIGURE_LIBDIR.64) \ |
144 $(PROTO_DIR)$(CONFIGURE_SBINDIR.64)/named -V; \ |
148 $(PROTO_DIR)$(CONFIGURE_SBINDIR.64)/named -V; \ |
145 else \ |
149 else \ |
146 echo '64bit version not found.'; \ |
150 echo '64bit version not found.'; \ |
147 fi; |
151 fi; |
148 @if [ -e $(PROTO_DIR)$(CONFIGURE_SBINDIR.32)/named ]; then \ |
|
149 echo '32bit version:'; \ |
|
150 file $(PROTO_DIR)$(CONFIGURE_SBINDIR.32)/named; \ |
|
151 LD_LIBRARY_PATH=$(PROTO_DIR)$(CONFIGURE_LIBDIR.32) \ |
|
152 $(PROTO_DIR)$(CONFIGURE_SBINDIR.32)/named -V; \ |
|
153 else \ |
|
154 echo '32bit version not found.'; \ |
|
155 fi; |
|
156 |
152 |
157 test-clean: |
153 test-clean: |
158 $(RM) $(TEST_32_and_64) |
154 $(RM) $(TEST_64) |
159 |
155 |
160 # Package dependencies |
156 # Package dependencies |
161 # Created by 'gmake REQUIRED_PACKAGES', manually verified. |
157 # Created by 'gmake REQUIRED_PACKAGES', manually verified. |
|
158 REQUIRED_PACKAGES += library/json-c |
|
159 REQUIRED_PACKAGES += library/libedit |
162 REQUIRED_PACKAGES += library/libxml2 |
160 REQUIRED_PACKAGES += library/libxml2 |
163 REQUIRED_PACKAGES += library/security/openssl |
161 REQUIRED_PACKAGES += library/security/openssl |
164 REQUIRED_PACKAGES += library/security/openssl/openssl-fips-140 |
162 REQUIRED_PACKAGES += library/security/openssl/openssl-fips-140 |
165 REQUIRED_PACKAGES += network/dns/bind |
163 REQUIRED_PACKAGES += network/dns/bind |
|
164 REQUIRED_PACKAGES += runtime/python-34 |
166 REQUIRED_PACKAGES += security/kerberos-5 |
165 REQUIRED_PACKAGES += security/kerberos-5 |
167 REQUIRED_PACKAGES += service/security/kerberos-5 |
166 REQUIRED_PACKAGES += service/security/kerberos-5 |
168 REQUIRED_PACKAGES += shell/ksh93 |
167 REQUIRED_PACKAGES += shell/ksh93 |
169 REQUIRED_PACKAGES += system/core-os |
168 REQUIRED_PACKAGES += system/core-os |
170 REQUIRED_PACKAGES += system/library/security/gss |
169 REQUIRED_PACKAGES += system/library/security/gss |