components/bind/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Tue, 02 May 2017 17:33:26 -0700
changeset 7964 d9801318ed3d
parent 7921 6a18ab514c01
permissions -rw-r--r--
25981468 Build ilmbase and openexr with the GNU compilers
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
#
7564
f958607559a6 25371161 Upgrade Solaris to BIND 9.10.4-P5
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 7286
diff changeset
    23
# Copyright (c) 2011, 2017, 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
7921
6a18ab514c01 25699559 Upgrade Solaris' BIND to BIND 9.10.4-P8
William.D.Johnston <William.D.Johnston@oracle.com>
parents: 7829
diff changeset
    29
COMPONENT_VERSION=	9.10.4-P8
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    30
HUMAN_VERSION=		$(COMPONENT_VERSION)
7921
6a18ab514c01 25699559 Upgrade Solaris' BIND to BIND 9.10.4-P8
William.D.Johnston <William.D.Johnston@oracle.com>
parents: 7829
diff changeset
    31
IPS_COMPONENT_VERSION=	9.10.4.0.8
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/
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7662
diff changeset
    33
COMPONENT_ANITYA_ID=	187
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    34
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
    35
# 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
    36
COMPONENT_ARCHIVE_HASH=	 \
7921
6a18ab514c01 25699559 Upgrade Solaris' BIND to BIND 9.10.4-P8
William.D.Johnston <William.D.Johnston@oracle.com>
parents: 7829
diff changeset
    37
    sha256:7dd356ab466ead8124d645f83719e620686998c81ce1d4eb0c52daffca7566eb
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    38
COMPONENT_ARCHIVE_URL=	\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    39
	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
    40
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
    41
COMPONENT_BUGDB=	service/dns-server
7921
6a18ab514c01 25699559 Upgrade Solaris' BIND to BIND 9.10.4-P8
William.D.Johnston <William.D.Johnston@oracle.com>
parents: 7829
diff changeset
    42
TPNO=			34637
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1809
diff changeset
    43
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5669
diff changeset
    44
include $(WS_MAKE_RULES)/common.mk
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    45
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    46
# 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
    47
PYTHON_VERSION =	3.4
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    48
PKG_MACROS +=		PYVER=$(PYTHON_VERSION)
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    49
6511
d283aa33e131 24336470 Upgrade Solaris to BIND 9.10.4-P2
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6227
diff changeset
    50
# Some patches need configure script re-creation.
d283aa33e131 24336470 Upgrade Solaris to BIND 9.10.4-P2
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6227
diff changeset
    51
COMPONENT_PREP_ACTION +=(cd $(@D); autoreconf -vfi);
d283aa33e131 24336470 Upgrade Solaris to BIND 9.10.4-P2
Ben Chang <Benjamin.Chang@Oracle.COM>
parents: 6227
diff changeset
    52
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    53
# 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
    54
# 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
    55
CONFIGURE_OPTIONS +=	--enable-full-report
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    56
# Python: specifying version helps with packaging.
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    57
CONFIGURE_OPTIONS +=	--with-python=$(PYTHON.$(PYTHON_VERSION))
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    58
# - 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
    59
CONFIGURE_OPTIONS +=	--with-libtool
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    60
# - 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
    61
CONFIGURE_OPTIONS +=	--with-openssl
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    62
# - 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
    63
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
    64
# - 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
    65
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
    66
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
    67
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
    68
# - 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
    69
# - 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
    70
CONFIGURE_OPTIONS +=	--enable-fixed-rrset
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    71
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    72
# 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
    73
# - 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
    74
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
    75
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
    76
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
    77
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
    78
CONFIGURE_OPTIONS +=	--with-gssapi=krb5-config
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
    79
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
    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
# 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
    82
# - 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
    83
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
    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
# 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
    86
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
    87
	$(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
    88
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    89
# 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
    90
COMPONENT_TEST_TARGETS = force-test
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    91
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    92
# 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
    93
# 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
    94
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
    95
# 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
    96
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
    97
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    98
# 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
    99
# 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
   100
7245
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 7028
diff changeset
   101
# Enable adiheap and adistack security extensions
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 7028
diff changeset
   102
ADIHEAP_MODE =	$(ADIHEAP_ENABLE)
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 7028
diff changeset
   103
ADISTACK_MODE = $(ADISTACK_ENABLE)
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 7028
diff changeset
   104
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   105
.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
   106
# 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
   107
# 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
   108
# 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
   109
# /^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
   110
# /^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
   111
# /^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
   112
# /^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
   113
# /^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
   114
# /^R:/ = Result:
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   115
#         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
   116
#         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
   117
#         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
   118
#         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
   119
#         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
   120
#           /^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
   121
#           /^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
   122
#         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
   123
#         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
   124
# @ 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
   125
# 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
   126
# 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
   127
# resulting output.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   128
#
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   129
summarize=	'\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   130
		/^T:/ {name=$$0;info="";}\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   131
		/^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
   132
		/^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
   133
		/^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
   134
		/^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
   135
		/^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
   136
		END{for (item in result)\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   137
				printf("%s=%d ", item, result[item]);\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   138
			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
   139
				((result["R:PASS"] + known) < test)? \
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   140
				" issues!" : "");\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   141
		}'
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
#
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   144
# 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
   145
# 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
   146
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
   147
test-summary:
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   148
	@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
   149
	@$(NAWK) $(summarize) $(COMPONENT_TEST_OUTPUT)
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   150
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   151
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
   152
	@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
   153
		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
   154
		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
   155
		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
   156
			$(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
   157
	 else \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   158
		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
   159
	 fi;
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   160
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   161
test-clean:
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
   162
	$(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
   163
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   164
# Package dependencies
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   165
# 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
   166
REQUIRED_PACKAGES += library/json-c
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
   167
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
   168
REQUIRED_PACKAGES += library/libxml2
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3541
diff changeset
   169
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
   170
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
   171
REQUIRED_PACKAGES += network/dns/bind
6227
a498cb624014 PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 6095
diff changeset
   172
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
   173
REQUIRED_PACKAGES += security/kerberos-5
7829
2de4f4ace09c 25766761 prepare Userland for 11.4
John Beck <John.Beck@Oracle.COM>
parents: 7687
diff changeset
   174
$(SOLARIS_11_3_ONLY)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
   175
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3541
diff changeset
   176
REQUIRED_PACKAGES += system/core-os
7829
2de4f4ace09c 25766761 prepare Userland for 11.4
John Beck <John.Beck@Oracle.COM>
parents: 7687
diff changeset
   177
$(SOLARIS_11_3_ONLY)REQUIRED_PACKAGES += system/library/security/gss