components/bind/Makefile
author Shawn Walker-Salas <shawn.walker@oracle.com>
Wed, 30 Mar 2016 13:33:31 -0700
changeset 5682 94c0ca64c022
parent 5669 4935ae25fd04
child 5693 dfccef2e9955
permissions -rw-r--r--
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh 22228656 remove redundant declarations and additions from makefiles 22252545 simplify build rules for components from common upstream 22378457 tclConfig.sh compiler settings are too specific 22727315 httping curses gui missing 22750630 procmail ignores userland cflags and may use private strstr function 22758725 wdiff uses diff from PATH instead of /usr/gnu/bin/diff 22926847 cloog Makefile typo when setting ASLR_MODE 22935090 tk config script has wrong linker flags
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
1809
79cf56012d11 remote: Warning: No xauth data; using fake authentication data for X11 forwarding.
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 1640
diff changeset
    29
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
    30
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
    31
IPS_COMPONENT_VERSION=	9.6.3.11.6
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=	 \
1809
79cf56012d11 remote: Warning: No xauth data; using fake authentication data for X11 forwarding.
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 1640
diff changeset
    36
    sha256:4f052195a62218c05a05033774452e6a9e329b865c01e594cc20a6adf11e0d0f
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)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 1012
diff changeset
    39
COMPONENT_BUGDB=	service/dns-server
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    40
5200
07b9fdb30f45 22338063 Upgrade BIND to 9.6-ESV-R11-P4
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 4980
diff changeset
    41
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
    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
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    45
# 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
    46
# 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
    47
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
    48
# - 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
    49
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
    50
# - 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
    51
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
    52
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
    53
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
    54
# - 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
    55
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
    56
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
    57
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
    58
# - 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
    59
# - 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
    60
CONFIGURE_OPTIONS +=	--enable-fixed-rrset
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    61
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    62
# 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
    63
# - 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
    64
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
    65
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
    66
# - 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
    67
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
    68
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
    69
CONFIGURE_SBINDIR.64 =	$(CONFIGURE_SBINDIR.32)
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5669
diff changeset
    70
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
    71
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
    72
CONFIGURE_OPTIONS +=	--with-randomdev=/dev/random
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5669
diff changeset
    73
CONFIGURE_OPTIONS +=	--with-gssapi=$(USRDIR)
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)"
1138
6e1f85fa0151 15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents: 1074
diff changeset
    78
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    79
# 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
    80
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
    81
	$(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
    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
# 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
    84
COMPONENT_TEST_TARGETS = force-test
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
    85
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    86
# 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
    87
# 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
    88
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
    89
# 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
    90
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
    91
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    92
# 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
    93
# 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
    94
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
    95
.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
    96
# 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
    97
# 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
    98
# 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
    99
# /^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
   100
# /^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
   101
# /^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
   102
# /^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
   103
# /^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
   104
# /^R:/ = Result:
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   105
#         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
   106
#         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
   107
#         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
   108
#         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
   109
#         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
   110
#           /^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
   111
#           /^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
   112
#         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
   113
#         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
   114
# @ 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
   115
# 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
   116
# 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
   117
# resulting output.
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   118
#
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   119
summarize=	'\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   120
		/^T:/ {name=$$0;info="";}\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   121
		/^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
   122
		/^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
   123
		/^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
   124
		/^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
   125
		/^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
   126
		END{for (item in result)\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   127
				printf("%s=%d ", item, result[item]);\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   128
			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
   129
				((result["R:PASS"] + known) < test)? \
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   130
				" issues!" : "");\
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   131
		}'
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   132
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   133
#
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   134
# 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
   135
# 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
   136
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
   137
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
	@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
   139
	@$(NAWK) $(summarize) $(COMPONENT_TEST_OUTPUT)
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   140
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   141
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
   142
	@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
   143
		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
   144
		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
   145
		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
   146
			$(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
   147
	 else \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   148
		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
   149
	 fi;
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   150
	@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
   151
		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
   152
		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
   153
		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
   154
			$(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
   155
	 else \
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   156
		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
   157
	 fi;
224
b0ca638fab1b 7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff changeset
   158
5668
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   159
test-clean:
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   160
	$(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
   161
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   162
# 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
   163
.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
   164
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   165
# Package dependencies
d5f739f94514 21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5298
diff changeset
   166
# 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
   167
REQUIRED_PACKAGES += library/libxml2
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3541
diff changeset
   168
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
   169
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
   170
REQUIRED_PACKAGES += network/dns/bind
5669
4935ae25fd04 22894908 BIND should be built with gssapi support
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents: 5668
diff changeset
   171
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
   172
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3541
diff changeset
   173
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
   174
REQUIRED_PACKAGES += system/library/security/gss