components/bind/Makefile
author Stacey Marshall <Stacey.Marshall@Oracle.COM>
Tue, 29 Mar 2016 09:21:13 +0100
changeset 5668 d5f739f94514
parent 5298 2de3b6013893
child 5669 4935ae25fd04
permissions -rw-r--r--
21239234 BIND should have some master test results to compare against 22834854 BIND should be 64-bit
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
#
5298
2de3b6013893 22552124 Upgrade BIND to 9.6-ESV-R11-P5
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5200
diff changeset
    21
# 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
    22
#
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    24
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    25
COMPONENT_NAME=		bind
1809
79cf56012d11 remote: Warning: No xauth data; using fake authentication data for X11 forwarding.
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 1640
diff changeset
    26
COMPONENT_VERSION=	9.6-ESV-R11
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    27
HUMAN_VERSION=		$(COMPONENT_VERSION)-P6
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    28
IPS_COMPONENT_VERSION=	9.6.3.11.6
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
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
    31
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
    32
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
    33
# 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
    34
COMPONENT_ARCHIVE_HASH=	 \
1809
79cf56012d11 remote: Warning: No xauth data; using fake authentication data for X11 forwarding.
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 1640
diff changeset
    35
    sha256:4f052195a62218c05a05033774452e6a9e329b865c01e594cc20a6adf11e0d0f
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    36
COMPONENT_ARCHIVE_URL=	\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    37
	http://ftp.isc.org/isc/bind9/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 1012
diff changeset
    38
COMPONENT_BUGDB=	service/dns-server
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    39
5200
07b9fdb30f45 22338063 Upgrade BIND to 9.6-ESV-R11-P4
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 4980
diff changeset
    40
TPNO=			25905
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1809
diff changeset
    41
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3541
diff changeset
    42
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3541
diff changeset
    43
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3541
diff changeset
    44
include $(WS_MAKE_RULES)/ips.mk
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    45
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    46
# 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
    47
# 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
    48
CONFIGURE_OPTIONS +=	--enable-full-report
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    49
# - Build dynamic libraries, static libraries are not shipped.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    50
CONFIGURE_OPTIONS +=	--with-libtool
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    51
# - Use openssl, but don't check version as that is also delivered dynamically.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    52
CONFIGURE_OPTIONS +=	--with-openssl
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    53
CONFIGURE_OPTIONS +=	--disable-openssl-version-check
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    54
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
    55
# - Use xml2-config found uder /usr without checking its version.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    56
CONFIGURE_OPTIONS +=	--with-libxml2=/usr
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 +=	--enable-threads=yes
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    58
CONFIGURE_OPTIONS +=	--enable-devpoll=yes
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    59
# - 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
    60
# - 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
    61
CONFIGURE_OPTIONS +=	--enable-fixed-rrset
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    62
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    63
# 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
    64
# - DNS libraries are in usr/lib/dns - Override settings from configure.mk
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    65
CONFIGURE_LIBDIR.32 =	$(CONFIGURE_PREFIX)/lib/dns
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    66
CONFIGURE_LIBDIR.64 =	$(CONFIGURE_PREFIX)/lib/dns/$(MACH64)
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    67
# - Traditionally all BIND executables are installed in sbin not bin.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    68
CONFIGURE_BINDIR.32 =	$(CONFIGURE_SBINDIR.32)
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    69
CONFIGURE_BINDIR.64 =	$(CONFIGURE_SBINDIR.32)
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    70
CONFIGURE_SBINDIR.64 =	$(CONFIGURE_SBINDIR.32)
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    71
CONFIGURE_OPTIONS +=	--sysconfdir=/etc
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    72
CONFIGURE_OPTIONS +=	--localstatedir=/var
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
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    74
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    75
# 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
    76
# - 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
    77
CONFIGURE_OPTIONS +=	CC="$(CC)"
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    78
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    79
1138
6e1f85fa0151 15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents: 1074
diff changeset
    80
# Enable ASLR for this component
6e1f85fa0151 15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents: 1074
diff changeset
    81
ASLR_MODE = $(ASLR_ENABLE)
6e1f85fa0151 15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents: 1074
diff changeset
    82
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    83
# 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
    84
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
    85
	$(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
    86
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    87
# 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
    88
COMPONENT_TEST_TARGETS = force-test
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    89
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    90
# 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
    91
# 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
    92
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
    93
# 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
    94
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
    95
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    96
# 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
    97
# 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
    98
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    99
.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
   100
# 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
   101
# 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
   102
# 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
   103
# /^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
   104
# /^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
   105
# /^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
   106
# /^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
   107
# /^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
   108
# /^R:/ = Result:
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   109
#         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
   110
#         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
   111
#         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
   112
#         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
   113
#         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
   114
#           /^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
   115
#           /^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
   116
#         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
   117
#         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
   118
# @ 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
   119
# 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
   120
# 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
   121
# resulting output.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   122
#
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   123
summarize=	'\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   124
		/^T:/ {name=$$0;info="";}\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   125
		/^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
   126
		/^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
   127
		/^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
   128
		/^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
   129
		/^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
   130
		END{for (item in result)\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   131
				printf("%s=%d ", item, result[item]);\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   132
			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
   133
				((result["R:PASS"] + known) < test)? \
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   134
				" issues!" : "");\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   135
		}'
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   136
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   137
#
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   138
# 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
   139
# 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
   140
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
   141
test-summary:
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   142
	@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
   143
	@$(NAWK) $(summarize) $(COMPONENT_TEST_OUTPUT)
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   144
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   145
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
   146
	@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
   147
		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
   148
		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
   149
		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
   150
			$(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
   151
	 else \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   152
		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
   153
	 fi;
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   154
	@if [ -e $(PROTO_DIR)$(CONFIGURE_SBINDIR.32)/named ]; then \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   155
		echo '32bit version:'; \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   156
		file $(PROTO_DIR)$(CONFIGURE_SBINDIR.32)/named; \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   157
		LD_LIBRARY_PATH=$(PROTO_DIR)$(CONFIGURE_LIBDIR.32) \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   158
			$(PROTO_DIR)$(CONFIGURE_SBINDIR.32)/named -V; \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   159
	 else \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   160
		echo '32bit 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
   161
	 fi;
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   162
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   163
test-clean:
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   164
	$(RM) $(TEST_32_and_64)
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   165
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   166
# Common Command line targets
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   167
.PHONY: configure build install test system-test
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   168
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   169
configure:	$(CONFIGURE_64)
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   170
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   171
build:		$(BUILD_64)
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   172
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   173
install:	$(INSTALL_64)
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   174
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   175
test:		$(TEST_64)
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   176
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   177
system-test:	$(SYSTEM_TESTS_NOT_IMPLEMENTED)
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   178
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   179
# Package dependencies
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   180
# Created by 'gmake REQUIRED_PACKAGES', manually verified.
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3541
diff changeset
   181
REQUIRED_PACKAGES += library/libxml2
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3541
diff changeset
   182
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
   183
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
   184
REQUIRED_PACKAGES += network/dns/bind
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3541
diff changeset
   185
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3541
diff changeset
   186
REQUIRED_PACKAGES += system/core-os
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3541
diff changeset
   187
REQUIRED_PACKAGES += system/library