2 # Copyright (C) 2009-2019 Internet Systems Consortium, Inc. ("ISC")
4 # Permission to use, copy, modify, and/or distribute this software for any
5 # purpose with or without fee is hereby granted, provided that the above
6 # copyright notice and this permission notice appear in all copies.
8 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 # PERFORMANCE OF THIS SOFTWARE.
16 # Configure and build the bind libraries for use by DHCP
19 bindsrcdir
=@BINDSRCDIR@
22 exec_prefix = @
exec_prefix@
24 bindconfig
= --without-openssl
--without-libxml2
--without-libjson \
25 --without-gssapi
--disable-threads
--without-lmdb \
26 --includedir=@
includedir@
--libdir=@
libdir@
--without-python\
27 @BINDLT@ @BINDIOMUX@ @BINDCONFIG@
--enable-full-report
29 @BIND_ATF_FALSE@cleandirs
= .
/lib .
/include
30 @BIND_ATF_TRUE@cleandirs
= .
/lib .
/include .
/atf
31 cleanfiles
= .
/configure.log .
/build.log .
/install.log
33 bindlibs
= isc dns isccfg irs
34 installdirs = includedir=${binddir}/include libdir=${binddir}/lib
36 @BIND_ATF_FALSE@
all: bind1 bind2
37 @BIND_ATF_TRUE@
all: bind1 atf bind2
40 # Extract the source from the tarball, if it hasn't been already.
41 @if
test -d
${bindsrcdir} ; then \
42 echo
${bindsrcdir} already unpacked...
; \
44 gunzip
-c bind.
tar.gz |
tar xf
- ; \
47 # Configure the libraries
48 # Currently disable the epoll, devpoll and kqueue options as they
49 # don't interact well with the DHCP code.
50 # If the top-level Bind Makefile exists we skip the configuration step
51 # as we assume it's done and won't change. Doing a make clean will
52 # reset things if necessary.
53 @if
test -f
${bindsrcdir}/Makefile
; then \
54 echo Bind libraries already configured
; \
56 echo Configuring BIND libraries for DHCP.
; \
57 rm -rf
${cleandirs} ${cleanfiles} ; \
58 (cd
${bindsrcdir} && \
59 .
/configure
${bindconfig} > ${binddir}/configure.log
); \
63 # Build and copy the ATF support if not yet installed.
64 @if
test -d .
/atf
; then \
65 echo ATF support already installed
; \
67 echo Building ATF support
; \
68 (cd
${bindsrcdir}/unit
; \
69 $(MAKE
) atf
> ${binddir}/build.log
; \
70 cp
-rp atf
${binddir}) ; \
74 # Build and install the libraries
75 # No need to do anything if we already have something installed.
76 @if
test -d
${binddir}/lib
; then \
77 echo Bind libraries already installed
; \
79 echo Building BIND libraries
- this takes some time.
; \
80 for
libdir in
${bindlibs} ; do \
81 (cd
${bindsrcdir}/lib
/$$libdir ; \
82 echo Building
$$libdir library in
`pwd` ; \
83 $(MAKE
) all >> ${binddir}/build.log
) ; \
86 echo Installing BIND libraries to
${binddir}.
; \
87 for
libdir in
${bindlibs} ; do \
88 (cd
${bindsrcdir}/lib
/$$libdir ; \
89 MAKEDEFS
="${installdirs}"; export MAKEDEFS
; \
90 $(MAKE
) ${installdirs} LIBTOOL_MODE_INSTALL
= install >> \
91 ${binddir}/install.log
) ; \
96 @echo Cleaning BIND library.
97 rm -rf
${bindsrcdir} ${cleandirs} ${cleanfiles}
99 @INSTALL_BIND_FALSE@
install:
100 @INSTALL_BIND_TRUE@
install: install-bind
103 @for
libdir in
${bindlibs} ; do \
104 (cd
${bindsrcdir}/lib
/$$libdir ; \
108 @INSTALL_BIND_FALSE@
uninstall:
109 @INSTALL_BIND_TRUE@
uninstall: uninstall-bind
112 @for
libdir in
${bindlibs} ; do \
113 (cd
${bindsrcdir}/lib
/$$libdir ; \
114 $(MAKE
) uninstall) ; \
117 # Include the following so that this Makefile is happy when the parent
121 check distdir
distclean dvi installcheck: