diff options
author | ed <ed@FreeBSD.org> | 2011-08-05 17:33:12 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-08-05 17:33:12 +0000 |
commit | 88e6d9921175a655dbe7f070355eb11886af18d9 (patch) | |
tree | c9cfb761910bbbabd358ba57931f0a351d613f30 | |
parent | 2a01964ba4ab03bf32053fa467e3a0473af8e73f (diff) | |
download | FreeBSD-src-88e6d9921175a655dbe7f070355eb11886af18d9.zip FreeBSD-src-88e6d9921175a655dbe7f070355eb11886af18d9.tar.gz |
Remove NIS entries from /etc/nsswitch.conf for WITHOUT_NIS.
We already modify various configuration files in /etc based on build
configuration. This is not done for nsswitch.conf right now when setting
WITHOUT_NIS. This breaks various utilities, including crond, that depend
on working databases.
Approved by: re (kib)
MFC after: 1 month
-rw-r--r-- | etc/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/Makefile b/etc/Makefile index e7fa2d5..bfb5282 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -256,6 +256,10 @@ distribution: ${DESTDIR}/boot/device.hints .endif .endif +.if ${MK_NIS} == "no" + sed -i "" -e '/_compat:/d' -e 's/compat/files/' \ + ${DESTDIR}/etc/nsswitch.conf +.endif distrib-dirs: mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ |