* Ed Schouten <e...@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
@@ -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}/

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

Attachment: pgppwoSLXlx8G.pgp
Description: PGP signature

Reply via email to