From owner-freebsd-current@FreeBSD.ORG Thu Aug 4 18:57:07 2011 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4317106566B for ; Thu, 4 Aug 2011 18:57:07 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 657148FC15 for ; Thu, 4 Aug 2011 18:57:07 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id A18052A28CDE; Thu, 4 Aug 2011 20:57:06 +0200 (CEST) Date: Thu, 4 Aug 2011 20:57:06 +0200 From: Ed Schouten To: current@FreeBSD.org Message-ID: <20110804185706.GE1787@hoeg.nl> References: <20110804173056.GD1787@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mJm6k4Vb/yFcL9ZU" Content-Disposition: inline In-Reply-To: <20110804173056.GD1787@hoeg.nl> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Subject: Re: nsswitch.conf <-> WITHOUT_NIS X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2011 18:57:07 -0000 --mJm6k4Vb/yFcL9ZU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Ed Schouten , 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 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--