From 88e6d9921175a655dbe7f070355eb11886af18d9 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 5 Aug 2011 17:33:12 +0000 Subject: 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 --- etc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc/Makefile') 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}/ -- cgit v1.1