From f0662c2435d3c09b6b7af55f66bc45033d6ee4ec Mon Sep 17 00:00:00 2001 From: dougb Date: Wed, 10 Aug 2011 20:52:02 +0000 Subject: Revert r224760, and enhance the sed patterns from r224659 to comment out the _compat entries in the WITHOUT_NIS case rather then delete them. Approved by: re (kib) --- etc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc/Makefile') diff --git a/etc/Makefile b/etc/Makefile index e7fa2d5..42d6959 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 's/.*_compat:/# &/' -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