summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.inc14
-rw-r--r--etc/Makefile14
-rw-r--r--include/Makefile5
-rw-r--r--share/examples/etc/make.conf4
-rw-r--r--share/man/man5/make.conf.532
-rw-r--r--usr.bin/Makefile2
-rw-r--r--usr.sbin/Makefile4
7 files changed, 61 insertions, 4 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index abd5d62..b06b7b2 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -270,6 +270,10 @@ _worldtmp:
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \
-p ${WORLDTMP}/usr/include >/dev/null
ln -sf ${.CURDIR}/sys ${WORLDTMP}
+.if defined(WITH_BIND_LIBS) && !defined(NO_BIND)
+ mtree -deU -f ${.CURDIR}/etc/mtree/BIND.include.dist \
+ -p ${WORLDTMP}/usr/include >/dev/null
+.endif
_legacy:
@echo
@echo "--------------------------------------------------------------"
diff --git a/etc/Makefile b/etc/Makefile
index e7cea56..aec71ff 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -40,9 +40,17 @@ MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
.if !defined(NO_SENDMAIL)
MTREE+= BSD.sendmail.dist
.endif
+.if !defined(NO_BIND)
+MTREE+= BIND.chroot.dist
+.if defined(WITH_BIND_LIBS)
+MTREE+= BIND.include.dist
+.endif
+.endif
+.if !defined(NO_BIND_ETC) && !defined(NO_BIND)
NAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \
make-localhost
+.endif
PPPCNF= ppp.conf
@@ -114,8 +122,10 @@ distribution:
ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
${MTREE} ${DESTDIR}/etc/mtree
+.if !defined(NO_BIND_ETC) && !defined(NO_BIND)
cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
${NAMEDB} ${DESTDIR}/etc/namedb
+.endif
cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
${PPPCNF} ${DESTDIR}/etc/ppp
cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
@@ -172,6 +182,10 @@ distrib-dirs:
.if !defined(NO_SENDMAIL)
mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/
.endif
+.if defined(WITH_BIND_LIBS) && !defined(NO_BIND)
+ mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.include.dist \
+ -p ${DESTDIR}/usr/include
+.endif
cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* .
cd ${DESTDIR}/usr/share/man; \
diff --git a/include/Makefile b/include/Makefile
index f12dcb1..e2f2d60 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -98,6 +98,11 @@ compat:
mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \
-f ${.CURDIR}/../etc/mtree/BSD.include.dist \
-p ${DESTDIR}${INCLUDEDIR}
+.if defined(WITH_BIND_LIBS) && !defined(NO_BIND)
+ mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \
+ -f ${.CURDIR}/../etc/mtree/BIND.include.dist \
+ -p ${DESTDIR}${INCLUDEDIR}
+.endif
copies:
.for i in ${LDIRS} ${LSUBDIRS} crypto machine machine/pc
diff --git a/share/examples/etc/make.conf b/share/examples/etc/make.conf
index ab2e837..4a52626 100644
--- a/share/examples/etc/make.conf
+++ b/share/examples/etc/make.conf
@@ -146,7 +146,11 @@
# Variables to control whether parts of the base BIND are built.
# Defining NO_BIND makes all of the following BIND variables obsolete.
#NO_BIND= true # Do not build any part of BIND
+#NO_BIND_DNSSEC= true # Do not build dnssec-keygen, dnssec-signzone
+#NO_BIND_ETC= true # Do not install files to /etc/namedb
#NO_BIND_LIBS_LWRES= true # Do not install the lwres library
+#NO_BIND_NAMED= true # Do not build named, rndc, lwresd, etc.
+#NO_BIND_UTILS= true # Do not build dig, host, nslookup, nsupdate
#WITH_BIND_LIBS= true # Install the BIND libs and include files
#
# To build sys/modules when building the world (our old way of doing things)
diff --git a/share/man/man5/make.conf.5 b/share/man/man5/make.conf.5
index c03876f..7834436 100644
--- a/share/man/man5/make.conf.5
+++ b/share/man/man5/make.conf.5
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 25, 2004
+.Dd September 27, 2004
.Dt MAKE.CONF 5
.Os
.Sh NAME
@@ -603,11 +603,39 @@ subdir.
.Pq Vt bool
Setting this variable will prevent any part of BIND from being built,
regardless of the presence of any of the other *_BIND_* variables below.
+.It Va NO_BIND_DNSSEC
+.Pq Vt bool
+Set to avoid building or installing the DNSSEC related binaries,
+.Xr dnssec-keygen 8
+and
+.Xr dnssec-signzone 8 .
+.It Va NO_BIND_ETC
+.Pq Vt bool
+Set to avoid installing the default files to
+.Pa /etc/namedb .
.It Va NO_BIND_LIBS_LWRES
.Pq Vt bool
-Set to avoid installing the lwres library in
+Set to avoid installing the lightweight resolver library in
.Pa /usr/lib .
The library that is private to the build system may still be built as needed.
+.It Va NO_BIND_NAMED
+.Pq Vt bool
+Set to avoid building or installing
+.Xr named 8 ,
+.Xr named.reload 8 ,
+.Xr named-checkconf 8 ,
+.Xr named-checkzone 8 ,
+.Xr rndc 8 ,
+and
+.Xr rndc-confgen 8 .
+.It Va NO_BIND_UTILS
+.Pq Vt bool
+Set to avoid building or installing the BIND userland utilities,
+.Xr dig 1 ,
+.Xr host 1 ,
+.Xr nslookup 1 ,
+and
+.Xr nsupdate 8 .
.It Va WITH_BIND_LIBS
.Pq Vt bool
Set to install BIND libraries and include files.
diff --git a/usr.bin/Makefile b/usr.bin/Makefile
index d09f4b5..763ab4c 100644
--- a/usr.bin/Makefile
+++ b/usr.bin/Makefile
@@ -234,7 +234,7 @@ _truss= truss
#_atm= atm
.endif
-.if !defined(NO_BIND)
+.if !defined(NO_BIND) && !defined(NO_BIND_UTILS)
_dig= dig
_host= host
_nslookup= nslookup
diff --git a/usr.sbin/Makefile b/usr.sbin/Makefile
index fc70d49..a976e53 100644
--- a/usr.sbin/Makefile
+++ b/usr.sbin/Makefile
@@ -193,10 +193,11 @@ _atm= atm
.endif
.if !defined(NO_BIND)
-.if !defined(NOCRYPT)
+.if !defined(NO_BIND_DNSSEC) && !defined(NOCRYPT)
_dnssec-keygen= dnssec-keygen
_dnssec-signzone= dnssec-signzone
.endif
+.if !defined(NO_BIND_NAMED)
_named= named
_named.reload= named.reload
_named-checkconf= named-checkconf
@@ -204,6 +205,7 @@ _named-checkzone= named-checkzone
_rndc= rndc
_rndc-confgen= rndc-confgen
.endif
+.endif
.if !defined(NO_BLUETOOTH)
_bluetooth= bluetooth
OpenPOWER on IntegriCloud