components/bind/Makefile
author Stacey Marshall <Stacey.Marshall@Oracle.COM>
Thu, 16 Jun 2016 13:48:33 +0100
changeset 6227 a498cb624014
parent 6095 b6fe5d81e761
child 6511 d283aa33e131
permissions -rw-r--r--
PSARC/2016/261 BIND 9.10 21964863 Upgrade ISC BIND (named) to the most recent version (9.10.3) 22330192 Eradicate MD5 from Solaris: DNS server BIND 23033730 BIND Makefile has leftover 32-bit references 18398243 nslookup cores when kfcd isn't running
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
     1
#
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
     3
#
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
     7
#
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    12
#
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    18
#
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5669
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5669
diff changeset
    22
#
5298
2de3b6013893 22552124 Upgrade BIND to 9.6-ESV-R11-P5
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5200
diff changeset
    23
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5669
diff changeset
    25
BUILD_BITS= 64
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    27
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    28
COMPONENT_NAME=		bind
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    29
COMPONENT_VERSION=	9.10.3-P4
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    30
HUMAN_VERSION=		$(COMPONENT_VERSION)
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    31
IPS_COMPONENT_VERSION=	9.10.3.0.4
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 592
diff changeset
    32
COMPONENT_PROJECT_URL=	http://www.isc.org/software/bind/
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    33
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    34
# hash from: sha256sum $(COMPONENT_ARCHIVE) | sed 's/\(.[^ ]*\).*/sha256:\1/'
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    35
COMPONENT_ARCHIVE_HASH=	 \
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    36
	sha256:2ac044b5fbdf45fb45107af0df961b3b7cb5262a3bf1948ed3fe7a170dd13e3e
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    37
COMPONENT_ARCHIVE_URL=	\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    38
	http://ftp.isc.org/isc/bind9/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    39
COMPONENT_SIG_URL=	$(COMPONENT_ARCHIVE_URL).sha512.asc
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 1012
diff changeset
    40
COMPONENT_BUGDB=	service/dns-server
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    41
TPNO=			26279
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1809
diff changeset
    42
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5669
diff changeset
    43
include $(WS_MAKE_RULES)/common.mk
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    44
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    45
# PYVER is important for packaging and computing requisites.
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    46
PYTHON_VERSION =	3.4
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    47
PKG_MACROS +=		PYVER=$(PYTHON_VERSION)
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    48
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    49
# Specify "configure" options and features.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    50
# FYI, The configure options are displayed by 'named -V'.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    51
CONFIGURE_OPTIONS +=	--enable-full-report
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    52
# Python: specifying version helps with packaging.
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    53
CONFIGURE_OPTIONS +=	--with-python=$(PYTHON.$(PYTHON_VERSION))
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    54
# - libtool: Build dynamic libraries, static libraries are not shipped.
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    55
CONFIGURE_OPTIONS +=	--with-libtool
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    56
# - openssl: use openssl, required for DNSSEC features.
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    57
CONFIGURE_OPTIONS +=	--with-openssl
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    58
# - pkcs11: Use openSSL pkcs11 engine (KMIP/KMS)
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    59
CONFIGURE_OPTIONS +=	--with-pkcs11
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    60
# - Use xml2-config found uder /usr without checking its version.
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5669
diff changeset
    61
CONFIGURE_OPTIONS +=	--with-libxml2=$(USRDIR)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5669
diff changeset
    62
CONFIGURE_OPTIONS +=	--enable-threads
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5669
diff changeset
    63
CONFIGURE_OPTIONS +=	--enable-devpoll
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    64
# - Enabled fixed [order] resource-record sets for backward compatibility.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    65
# - Requires more memory to store the sets so is not the default.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    66
CONFIGURE_OPTIONS +=	--enable-fixed-rrset
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    67
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    68
# Override / set specific pathnames:
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    69
# - DNS libraries are in usr/lib/dns - Override settings from configure.mk
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    70
CONFIGURE_LIBDIR.64 =	$(CONFIGURE_PREFIX)/lib/dns/$(MACH64)
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5669
diff changeset
    71
CONFIGURE_OPTIONS +=	--sysconfdir=$(ETCDIR)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5669
diff changeset
    72
CONFIGURE_OPTIONS +=	--localstatedir=$(VARDIR)
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    73
CONFIGURE_OPTIONS +=	--with-randomdev=/dev/random
6095
b6fe5d81e761 23284073 bind fails to build with MIT kerberos
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5693
diff changeset
    74
CONFIGURE_OPTIONS +=	--with-gssapi=krb5-config
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    75
CONFIGURE_OPTIONS +=	--with-docbook-xsl=/usr/share/sgml/docbook
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    76
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    77
# Compiler and compiler options:
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    78
# - configure will add "-mt" to CC which is already set in CFLAGS, so override.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    79
CONFIGURE_OPTIONS +=	CC="$(CC)"
1138
6e1f85fa0151 15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents: 1074
diff changeset
    80
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    81
# Test configuration / helper targets:
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    82
COMPONENT_TEST_MASTER = \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    83
	$(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH).master
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    84
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    85
# Run BIND testing without test interfaces configured (limited testing).
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    86
COMPONENT_TEST_TARGETS = force-test
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    87
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    88
# Normalise results for comparison:
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    89
# Remove Date and time from Start and End lines.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    90
COMPONENT_TEST_TRANSFORMS += '-e "s|\(^[SE]:[^:]*:\).*|\1|"'
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    91
# Remove task Information lines as order of that output has been seen to change.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    92
COMPONENT_TEST_TRANSFORMS += '-e "/^I:/d"'
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    93
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    94
# Uncomment to display summary of tests at completion.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    95
# COMPONENT_POST_TEST_ACTION = $(NAWK) $(summarize) $(COMPONENT_TEST_OUTPUT)
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    96
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    97
.PHONY: test-named-version test-summary test-clean
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    98
# summarize is a nawk script:
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    99
# consumes the output generated by ISC's make target and provides an
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   100
# abridged summary.  It works by looking for key elements:
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   101
# /^T:/ = Start of a test.
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   102
# /^I:/ = Info from a test;  collected for possible use later.
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   103
# /^A:/ = About: summary of the test - not used here.
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   104
# /^S:/ = Start: pathname and date time - not used here.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   105
# /^E:/ = End: pathname and date time - not used here.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   106
# /^R:/ = Result:
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   107
#         When 'PASS' and report=1 (from command line) the result and
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   108
#         test name are displayed.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   109
#         For all other results (failures) the result, test name and
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   110
#         other collected info is displayed.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   111
#         Known issues may be accounted for by adding tests, for example:
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   112
#           /^R:UNTESTED/ && name ~ /^T:dst:2:A/ {known++;}\
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   113
#           /^R:UNRESOLVED/ && name ~ /^T:dst:1:A/ {known++;}\
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   114
#         Though with USERLAND automated test comparison the known
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   115
#         case is kind of obsolete now.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   116
# @ EOF = Display count of RESULTS:
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   117
# i.e. R:PASS=124 R:UNTESTED=26 Total=150 if not 100% pass rate and
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   118
# issue is not accounted for (known) the test 'issues!' is appended to
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   119
# resulting output.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   120
#
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   121
summarize=	'\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   122
		/^T:/ {name=$$0;info="";}\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   123
		/^I:/ {info=sprintf("%s%s\n", info, $$0);}\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   124
		/^R:/ {test++; result[$$1]++;}\
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   125
		/^R:PASS/ { if (report) printf("%s: %s\n", $$1, name); next}\
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   126
		/^R:UNRESOLVED/ && name ~ /^T:dst:2:A/ {known++;}\
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   127
		/^R:/ {printf("%s: %s\n%s\n", $$1, name, info);}\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   128
		END{for (item in result)\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   129
				printf("%s=%d ", item, result[item]);\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   130
			printf("(known=%d) Total=%d%s\n", known, test, \
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   131
				((result["R:PASS"] + known) < test)? \
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   132
				" issues!" : "");\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   133
		}'
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   134
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   135
#
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   136
# COMPONENT_TEST_OUTPUT is dependent on BITS which is set depending on
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   137
# the active build target and PYTHON_VERS!, so it's overridden here too for test-summary:
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   138
test-summary: BITS=64
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   139
test-summary:
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   140
	@echo Summary of $(COMPONENT_TEST_OUTPUT)
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   141
	@$(NAWK) $(summarize) $(COMPONENT_TEST_OUTPUT)
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   142
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   143
test-named-version: install
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   144
	@if [ -e $(PROTO_DIR)$(CONFIGURE_SBINDIR.64)/named ]; then \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   145
		echo '64bit version:'; \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   146
		file $(PROTO_DIR)$(CONFIGURE_SBINDIR.64)/named; \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   147
		LD_LIBRARY_PATH=$(PROTO_DIR)$(CONFIGURE_LIBDIR.64) \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   148
			$(PROTO_DIR)$(CONFIGURE_SBINDIR.64)/named -V; \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   149
	 else \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   150
		echo '64bit version not found.'; \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   151
	 fi;
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   152
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   153
test-clean:
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
   154
	$(RM) $(TEST_64)
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   155
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   156
# Package dependencies
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   157
# Created by 'gmake REQUIRED_PACKAGES', manually verified.
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
   158
REQUIRED_PACKAGES += library/json-c
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
   159
REQUIRED_PACKAGES += library/libedit
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3541
diff changeset
   160
REQUIRED_PACKAGES += library/libxml2
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3541
diff changeset
   161
REQUIRED_PACKAGES += library/security/openssl
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   162
REQUIRED_PACKAGES += library/security/openssl/openssl-fips-140
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3541
diff changeset
   163
REQUIRED_PACKAGES += network/dns/bind
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
   164
REQUIRED_PACKAGES += runtime/python-34
6095
b6fe5d81e761 23284073 bind fails to build with MIT kerberos
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5693
diff changeset
   165
REQUIRED_PACKAGES += security/kerberos-5
5669
4935ae25fd04 22894908 BIND should be built with gssapi support
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5668
diff changeset
   166
REQUIRED_PACKAGES += service/security/kerberos-5
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3541
diff changeset
   167
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3541
diff changeset
   168
REQUIRED_PACKAGES += system/core-os
5669
4935ae25fd04 22894908 BIND should be built with gssapi support
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5668
diff changeset
   169
REQUIRED_PACKAGES += system/library/security/gss