Date: Thu, 4 Aug 2011 20:57:06 +0200 From: Ed Schouten <ed@80386.nl> To: current@FreeBSD.org Subject: Re: nsswitch.conf <-> WITHOUT_NIS Message-ID: <20110804185706.GE1787@hoeg.nl> In-Reply-To: <20110804173056.GD1787@hoeg.nl> References: <20110804173056.GD1787@hoeg.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
--mJm6k4Vb/yFcL9ZU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Ed Schouten <ed@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} =3D=3D "no" + sed -i "" -e '/_compat:/d' -e 's/compat/files/' \ + ${DESTDIR}/etc/nsswitch.conf +.endif =20 distrib-dirs: mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p = ${DESTDIR}/ --=20 Ed Schouten <ed@80386.nl> WWW: http://80386.nl/ --mJm6k4Vb/yFcL9ZU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQIcBAEBAgAGBQJOOuuCAAoJEG5e2P40kaK7X30P/0LyQDweAkPHzSNkdVMLTOrb gl9cNgIqYarycpj2y7oJUmSfHtN/mJ2yzNoJ7Tbk0NIxZfD6O+c+6MOSWqS0ovp3 etzlT4Kt+M4EjAw5jMH7z8tU6Cfr1F3utSurv+QzwhFPmQ3G8V+vlru2hjiSTcLW 3ymAkHuny3xvmnI0T0beU7jmiAVTR7+ViNjk9HERGnHP+TRRtxcg1AFk/LtshJ39 lBJMuVOjLC5dduwfF1gnRGSk1xwMfaCJFja7NJ3msmqsiovwzTyvbic5xf6qh+Uf i26JLuyj3uG9GKJxBGTyP52S5qjaZadpsH8958mPlN1S8uHjcoqU8wm2oddcH1XY FeNkATIsMj5Yo4GaGgZRm/A5DlO64peqW1Wxn0Wlbz75ip8iooKQCxkUA/oKB7mO b4NgFvSFckL/vDfPfbVjkZrst+olcnCOY7UxzV4EhaJ6kuOgzi1//9rNgQJuxm5F h/wUJJ5iySZcIuD3wfRvvZbI8eb8WLikMSh0QI2+ObGZFLSb44P3JZlXUR44jenL 4utdpZvkI9Ich1L81YHIpyzNpJSGZZGDJuAsiEQA1zsl4XI+otl1+aKBsbeZueQE p7GiYboDSw9vyqtq0x5q9bmTlBRncq4yHO1LnDMK1q/IOP20c/CXHCZ8LcMopyVx Pyf3tuXyu1p5gfNOQ1Pz =MBAh -----END PGP SIGNATURE----- --mJm6k4Vb/yFcL9ZU--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110804185706.GE1787>