224N/A# The contents of this file are subject to the terms of the 224N/A# Common Development and Distribution License (the "License"). 224N/A# You may not use this file except in compliance with the License. 224N/A# See the License for the specific language governing permissions 224N/A# and limitations under the License. 224N/A# When distributing Covered Code, include this CDDL HEADER in each 224N/A# If applicable, add the following below this CDDL HEADER, with the 224N/A# fields enclosed by brackets "[]" replaced with your own identifying 224N/A# information: Portions Copyright [yyyy] [name of copyright owner] 5296N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 844N/A# hash from: sha256sum $(COMPONENT_ARCHIVE) | sed 's/\(.[^ ]*\).*/sha256:\1/' 6225N/A# PYVER is important for packaging and computing requisites. 6509N/A# Some patches need configure script re-creation. 5666N/A# Specify "configure" options and features. 5666N/A# FYI, The configure options are displayed by 'named -V'. 6225N/A# Python: specifying version helps with packaging. 6225N/A# - libtool: Build dynamic libraries, static libraries are not shipped. 6225N/A# - openssl: use openssl, required for DNSSEC features. 5666N/A# - Use xml2-config found uder /usr without checking its version. 5666N/A# - Enabled fixed [order] resource-record sets for backward compatibility. 5666N/A# - Requires more memory to store the sets so is not the default. 5666N/A# Override / set specific pathnames: 5666N/A# Compiler and compiler options: 5666N/A# - configure will add "-mt" to CC which is already set in CFLAGS, so override. 5666N/A# Test configuration / helper targets: 5666N/A# Run BIND testing without test interfaces configured (limited testing). 5666N/A# Normalise results for comparison: 5666N/A# Remove Date and time from Start and End lines. 5666N/A# Remove task Information lines as order of that output has been seen to change. 5666N/A# Uncomment to display summary of tests at completion. 5666N/A# COMPONENT_POST_TEST_ACTION = $(NAWK) $(summarize) $(COMPONENT_TEST_OUTPUT) 7243N/A# Enable adiheap and adistack security extensions 5666N/A# summarize is a nawk script: 5666N/A# consumes the output generated by ISC's make target and provides an 5666N/A# abridged summary. It works by looking for key elements: 224N/A# /^T:/ = Start of a test. 5666N/A# /^I:/ = Info from a test; collected for possible use later. 224N/A# /^A:/ = About: summary of the test - not used here. 5666N/A# /^S:/ = Start: pathname and date time - not used here. 5666N/A# /^E:/ = End: pathname and date time - not used here. 5666N/A# When 'PASS' and report=1 (from command line) the result and 5666N/A# For all other results (failures) the result, test name and 5666N/A# other collected info is displayed. 5666N/A# Known issues may be accounted for by adding tests, for example: 5666N/A# /^R:UNTESTED/ && name ~ /^T:dst:2:A/ {known++;}\ 5666N/A# /^R:UNRESOLVED/ && name ~ /^T:dst:1:A/ {known++;}\ 5666N/A# Though with USERLAND automated test comparison the known 5666N/A# case is kind of obsolete now. 5666N/A# @ EOF = Display count of RESULTS: 5666N/A# i.e. R:PASS=124 R:UNTESTED=26 Total=150 if not 100% pass rate and 5666N/A# issue is not accounted for (known) the test 'issues!' is appended to 224N/A /^T:/ {name=$$0;info="";}\ 224N/A /^I:/ {info=sprintf("%s%s\n", info, $$0);}\ 224N/A /^R:/ {test++; result[$$1]++;}\ 5666N/A /^R:PASS/ { if (report) printf("%s: %s\n", $$1, name); next}\ 5666N/A /^R:UNRESOLVED/ && name ~ /^T:dst:2:A/ {known++;}\ 224N/A /^R:/ {printf("%s: %s\n%s\n", $$1, name, info);}\ 224N/A END{for (item in result)\ 224N/A printf("%s=%d ", item, result[item]);\ 224N/A printf("(known=%d) Total=%d%s\n", known, test, \ 224N/A ((result["R:PASS"] + known) < test)? \ 5666N/A# COMPONENT_TEST_OUTPUT is dependent on BITS which is set depending on 5666N/A# the active build target and PYTHON_VERS!, so it's overridden here too for test-summary: 5666N/A echo '64bit version not found.'; \
5666N/A# Created by 'gmake REQUIRED_PACKAGES', manually verified.