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