diff options
author | dougb <dougb@FreeBSD.org> | 2004-09-28 09:46:00 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2004-09-28 09:46:00 +0000 |
commit | a0c7847c5ba90a7ccc3ba1ea38781396bffaffe6 (patch) | |
tree | adec461a57e953379f28f1be08a23b3081ed6d6a /etc/Makefile | |
parent | d3ceec948f3a65b58d702b97a626bcd5a6120632 (diff) | |
download | FreeBSD-src-a0c7847c5ba90a7ccc3ba1ea38781396bffaffe6.zip FreeBSD-src-a0c7847c5ba90a7ccc3ba1ea38781396bffaffe6.tar.gz |
Create a named chroot directory structure in /var/named, and use it
by default when named is enabled. Also, improve our default directory
layout by creating /var/named/etc/namedb/{master|slave} directories,
and use the former for the generated localhost* files.
Rather than using pax to copy device entries, mount devfs in the
chroot directory.
There may be some corner cases where things need to be adjusted,
but overall this structure has been well tested on a production
network, and should serve the needs of the vast majority of users.
UPDATING has instructions on how to do the conversion for those
with existing configurations.
Diffstat (limited to 'etc/Makefile')
-rw-r--r-- | etc/Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/etc/Makefile b/etc/Makefile index aec71ff..6de3612 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -179,13 +179,18 @@ distrib-dirs: mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ -p ${DESTDIR}/usr/include -.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) +.if !defined(NO_BIND) +.if defined(WITH_BIND_LIBS) mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.include.dist \ -p ${DESTDIR}/usr/include .endif + mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.chroot.dist \ + -p ${DESTDIR}/var/named + ln -s ${DESTDIR}/var/named/etc/namedb ${DESTDIR}/etc/namedb +.endif +.if !defined(NO_SENDMAIL) + mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/ +.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; \ |