Makefile revision 1273
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# CDDL HEADER START
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# The contents of this file are subject to the terms of the
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# Common Development and Distribution License (the "License").
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# You may not use this file except in compliance with the License.
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# See the License for the specific language governing permissions
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# and limitations under the License.
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# CDDL HEADER END
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan HuntCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan HuntCOMPONENT_PROJECT_URL= http://www.isc.org/software/bind/
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# hash from: sha256sum $(COMPONENT_ARCHIVE) | sed 's/\(.[^ ]*\).*/sha256:\1/'
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt sha256:a4fb8baa5c5018ef0ca7c1a035326efab32e84074daab82599fe5e63a562fa45
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt http://ftp.isc.org/isc/bind9/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# FYI, The configure options are displayed by 'named -V'. Previously
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# that was overriden by setting CONFIGARGS to hide build server
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# Traditionally all BIND executables are installed in sbin not bin.
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# DNS libraries are in usr/lib/dns - Override settings from configure.mk
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan HuntCONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_BINDIR.$(BITS))
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan HuntCONFIGURE_OPTIONS += --disable-openssl-version-check
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# Configure will add "-mt" to CC which is already set in CFLAGS, so override.
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# Currently manual pages are distributed from pkg:/system/manual@.
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# While there are some changes in our manuals, for example section
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# numbering and additions to named(1M) for SMF - that could be fixed
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# In addition to BIND deliverables we also deliver SMF files and
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# migration notes. There is no need to install these extras into the
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# prototype directory, they are simply referenced in relevant manifest
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# (p5m) file.
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# sumarize nawk script; reads ISC output which is of the form:
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# /^T:/ = Start of a test.
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# /^I:/ = Info from a test; colleced for possible use later.
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# /^A:/ = About: summary of the test - not used here.
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# /^R:/ = Result: If 'PASS' then continue, else print line and collected info.
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# Known issues may then be accounted for.
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# @ EOF = Display count of RESULTS: i.e. R:PASS=124 R:UNTESTED=26 Total=150
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# if not 100% pass rate and issue is not known the word 'issues!' is appended
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# to resulting string.
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt /^T:/ {name=$$0;info="";}\
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt /^I:/ {info=sprintf("%s%s\n", info, $$0);}\
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt /^R:/ {test++; result[$$1]++;}\
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt /^R:PASS/ {next;}\
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt /^R:/ {printf("%s: %s\n%s\n", $$1, name, info);}\
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt /^R:UNTESTED/ && name ~ /^T:dst:2:A/ {known++;}\
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt /^R:UNRESOLVED/ && name ~ /^T:dst:1:A/ {known++;}\
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt END{for (item in result)\
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt printf("%s=%d ", item, result[item]);\
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt printf("(known=%d) Total=%d%s\n", known, test, \
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt ((result["R:PASS"] + known) < test)? \
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt " issues!" : "");\
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# fulltest requires sufficient privileges to configures IP addresses
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# 10.53.0.1 through 10.53.0.5 as aliases on the loopback interface.
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt cd $(COMPONENT_SRC) && $(SHELL) $(isc_ifconfig) up
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt cd $(COMPONENT_SRC) && $(SHELL) $(isc_ifconfig) down
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# test-summary shows summary for targets test and fulltest. Use target
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt# test-clean to remove previous tests.
7cd8e7915afba7064c18c4bf74ecce0627c61027Evan Hunt if [ -f $$file ]; then \