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