1 # 2 # CDDL HEADER START 3 # 4 # The contents of this file are subject to the terms of the 5 # Common Development and Distribution License (the "License"). 6 # You may not use this file except in compliance with the License. 7 # 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 # or http://www.opensolaris.org/os/licensing. 10 # See the License for the specific language governing permissions 11 # and limitations under the License. 12 # 13 # When distributing Covered Code, include this CDDL HEADER in each 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 # If applicable, add the following below this CDDL HEADER, with the 16 # fields enclosed by brackets "[]" replaced with your own identifying 17 # information: Portions Copyright [yyyy] [name of copyright owner] 18 # 19 # CDDL HEADER END 20 # 21 22 # 23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24 # Use is subject to license terms. 25 # 26 27 #pragma ident "@(#)Makefile.sfw 1.21 09/07/12 SMI" 28 # 29 30 VER = $(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh) 31 32 TARBALL = $(VER).tar.gz 33 34 # Ideally no patches should be required, where they are needed for a 35 # release they should be incorporated or obsoleted in the next ISC 36 # release. 37 # 38 # PATCHES:sh = echo Patches/*.patch 39 40 include ../Makefile.cmd 41 42 # the ISC tarball is not /usr/bin/tar-friendly 43 $(VER)/.patched:= UNPACKARCHIVE=$(GTAR) xfz 44 45 all: $(VER)/config.status 46 (cd $(VER); env - \ 47 LD_OPTIONS="-M $(SRC)/cmd/mapfile_noexstk" \ 48 PATH=$(SFW_PATH) \ 49 MAKE=$(CCSMAKE) \ 50 $(CCSMAKE) -e) 51 52 config_ip=$(POUND_SIGN) 53 fulltest := config_ip = cd $(VER); $(SHELL) ./bin/tests/system/ifconfig.sh 54 55 test fulltest: all 56 -$(config_ip) up 57 -(cd $(VER); env \ 58 PATH=$(SFW_PATH) \ 59 MAKE=$(CCSMAKE) \ 60 $(CCSMAKE) -e test) 61 -$(config_ip) down 62 63 64 65 # Install binaries included in package into ROOT 66 install: all 67 $(SH) ./install-bind $(VER) 68 69 CONFIGURE_OPTIONS += --with-libtool 70 CONFIGURE_OPTIONS += --bindir=$(CFGBIN) 71 CONFIGURE_OPTIONS += --sbindir=$(CFGUSRSBIN) 72 CONFIGURE_OPTIONS += --libdir="$(CFGLIB)/dns" 73 CONFIGURE_OPTIONS += --sysconfdir="/etc" 74 CONFIGURE_OPTIONS += --localstatedir="/var" 75 CONFIGURE_OPTIONS += --with-openssl 76 CONFIGURE_OPTIONS += --enable-threads=yes 77 CONFIGURE_OPTIONS += --enable-devpoll=yes 78 CONFIGURE_OPTIONS += --disable-openssl-version-check 79 80 # Configure BIND ready for compilation. 81 # The openssl version check is disabled as we rely on dynamic SSL library 82 # which is independent of BIND. 83 $(VER)/config.status: $(VER)/.patched 84 (cd $(VER); env - \ 85 CC=$(CC) CXX=$(CCC) \ 86 LDFLAGS="-L${ROOT}/usr/lib/dns" \ 87 PATH=$(SFW_PATH) \ 88 MAKE=$(CCSMAKE) \ 89 LD_LIBRARY_PATH=/usr/lib/dns \ 90 $(SHELL) ./configure $(CONFIGURE_OPTIONS) ) 91 92 clean: 93 -$(RM) -r ${VER} 94 95 prog= dig dnssec-dsfromkey dnssec-keyfromlabel dnssec-keygen dnssec-signzone \ 96 host in.named named named-checkconf named-checkzone ndc nslookup \ 97 nsupdate rndc rndc-confgen 98 lib= libisc libisccc libdns libisccfg liblwres libbind9 99 100 CLOBBERFILES=$(prog:%=$(ROOT)/usr/sbin/%) $(lib:%=$(ROOT)/usr/lib/dns/%.*) 101 102 include ../Makefile.targ 103 104 FRC: 105