Re: nsswitch.conf <-> WITHOUT_NIS

From: Ed Schouten <ed_at_80386.nl>
Date: Thu, 4 Aug 2011 20:57:06 +0200
* Ed Schouten <ed_at_80386.nl>, 20110804 19:30:
> But on the other hand, nsswitch.conf says it will default to `nis'
> anyway. So I suspect the lines shouldn't be removed, but changed to
> `files', right? Maybe we should consider modifying the configuration
> file accordingly?

After reading some more manpages and doing some testing, it seems we
must remove the _compat: lines and change the compat source to files.
Any comments on the following patch?

--- etc/Makefile
+++ etc/Makefile
_at__at_ -256,6 +256,10 _at__at_ 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}/

-- 
 Ed Schouten <ed_at_80386.nl>
 WWW: http://80386.nl/

Received on Thu Aug 04 2011 - 16:57:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:16 UTC