0
|
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 |
#
|
13
|
23 |
# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
|
0
|
24 |
#
|
|
25 |
|
13
|
26 |
#pragma ident "@(#)Makefile.sfw 1.23 10/04/15 SMI"
|
0
|
27 |
#
|
|
28 |
|
|
29 |
VER = $(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
|
|
30 |
|
|
31 |
TARBALL = $(VER).tar.gz
|
|
32 |
|
5
|
33 |
#
|
|
34 |
# Environment settings.
|
|
35 |
#
|
|
36 |
TARGET_ENV = CC="$(CC)" CXX="$(CCC)"
|
|
37 |
TARGET_ENV += PATH="$(SFW_PATH)"
|
|
38 |
TARGET_ENV += LD_OPTIONS="-M $(SRC)/cmd/mapfile_noexstk"
|
|
39 |
TARGET_ENV += LDFLAGS="-L$(ROOTLIB)/dns"
|
|
40 |
TARGET_ENV += MAKE="$(CCSMAKE)"
|
|
41 |
$(VER)/config.status:= \
|
|
42 |
TARGET_ENV += LD_LIBRARY_PATH="$(CFGLIB)/dns"
|
|
43 |
|
0
|
44 |
# Ideally no patches should be required, where they are needed for a
|
|
45 |
# release they should be incorporated or obsoleted in the next ISC
|
|
46 |
# release.
|
|
47 |
#
|
5
|
48 |
PATCHES:sh= test -f Patches/*.patch && echo Patches/*.patch || echo ${VER}
|
0
|
49 |
|
|
50 |
include ../Makefile.cmd
|
|
51 |
|
|
52 |
# the ISC tarball is not /usr/bin/tar-friendly
|
|
53 |
$(VER)/.patched:= UNPACKARCHIVE=$(GTAR) xfz
|
|
54 |
|
5
|
55 |
# CONFIGARGS is printed by 'named -V' and logged at startup too.
|
0
|
56 |
all: $(VER)/config.status
|
5
|
57 |
(cd $(VER); pwd;\
|
|
58 |
env - $(TARGET_ENV) $(CCSMAKE) -e \
|
|
59 |
CONFIGARGS='$(CONFIGURE_OPTIONS)')
|
0
|
60 |
|
5
|
61 |
#
|
|
62 |
# test & fulltest. The latter configures IP addresses.
|
|
63 |
#
|
0
|
64 |
config_ip=$(POUND_SIGN)
|
|
65 |
fulltest := config_ip = cd $(VER); $(SHELL) ./bin/tests/system/ifconfig.sh
|
|
66 |
|
|
67 |
test fulltest: all
|
5
|
68 |
-$(config_ip) up
|
|
69 |
-(cd $(VER); pwd; env \
|
0
|
70 |
PATH=$(SFW_PATH) \
|
|
71 |
MAKE=$(CCSMAKE) \
|
|
72 |
$(CCSMAKE) -e test)
|
|
73 |
-$(config_ip) down
|
|
74 |
|
5
|
75 |
#
|
0
|
76 |
# Install binaries included in package into ROOT
|
5
|
77 |
#
|
0
|
78 |
install: all
|
|
79 |
$(SH) ./install-bind $(VER)
|
|
80 |
|
|
81 |
CONFIGURE_OPTIONS += --with-libtool
|
|
82 |
CONFIGURE_OPTIONS += --bindir=$(CFGBIN)
|
|
83 |
CONFIGURE_OPTIONS += --sbindir=$(CFGUSRSBIN)
|
|
84 |
CONFIGURE_OPTIONS += --libdir="$(CFGLIB)/dns"
|
|
85 |
CONFIGURE_OPTIONS += --sysconfdir="/etc"
|
|
86 |
CONFIGURE_OPTIONS += --localstatedir="/var"
|
|
87 |
CONFIGURE_OPTIONS += --with-openssl
|
|
88 |
CONFIGURE_OPTIONS += --enable-threads=yes
|
|
89 |
CONFIGURE_OPTIONS += --enable-devpoll=yes
|
|
90 |
CONFIGURE_OPTIONS += --disable-openssl-version-check
|
5
|
91 |
CONFIGURE_OPTIONS += --enable-fixed-rrset
|
13
|
92 |
CONFIGURE_OPTIONS += --disable-getifaddrs
|
0
|
93 |
|
|
94 |
# Configure BIND ready for compilation.
|
|
95 |
# The openssl version check is disabled as we rely on dynamic SSL library
|
|
96 |
# which is independent of BIND.
|
5
|
97 |
$(VER)/config.status: $(VER)/$(SFW_STAMP_PATCHED)
|
|
98 |
(cd $(VER); pwd; env - $(TARGET_ENV) \
|
|
99 |
$(SHELL) ./configure $(CONFIGURE_OPTIONS) )
|
0
|
100 |
|
|
101 |
clean:
|
|
102 |
-$(RM) -r ${VER}
|
|
103 |
|
|
104 |
prog= dig dnssec-dsfromkey dnssec-keyfromlabel dnssec-keygen dnssec-signzone \
|
|
105 |
host in.named named named-checkconf named-checkzone ndc nslookup \
|
|
106 |
nsupdate rndc rndc-confgen
|
|
107 |
lib= libisc libisccc libdns libisccfg liblwres libbind9
|
|
108 |
|
|
109 |
CLOBBERFILES=$(prog:%=$(ROOT)/usr/sbin/%) $(lib:%=$(ROOT)/usr/lib/dns/%.*)
|
|
110 |
|
|
111 |
include ../Makefile.targ
|
|
112 |
|
|
113 |
FRC:
|