Date: Fri, 23 Jul 2010 13:42:43 -0700 From: David Wolfskill <david@catwhisker.org> To: freebsd-questions@freebsd.org Subject: Setup for NIS master: make isn't seeing my sources Message-ID: <20100723204243.GD17210@albert.catwhisker.org>
next in thread | raw e-mail | index | archive | help
--sgneBHv3152wZ8jf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [I'm not subscribed to -questions, so please include me in responses. I've provided a valid Reply-To as a hint to your MUA.] For the last 14 years or so, my NIS server on the home network has been a SPARCstation 5/170 running Solaris 2.6; I'm finally getting around to decommissioning it. Accordingly, I'm configuring a new(-ish) machine running FreeBSD 8.1-PRERELEASE r210217 (as of Sunday last) as a new NIS master. (I had earlier configured it as a slave, so /var/yp/`domainname` was already populated.) The NIS domain is (for historical reasons) "lmdhw.com". The default in /var/yp/Makefile is for YPSRCDIR to be set to /etc; as I prefer my NIS source files to be completely separate from the content of /etc on any machine I fcreated /var/yp/Makefile.local: albert# pwd =20 /var/yp albert# cat Makefile.local=20 # Local tweaks to NIS make process # $Id: Makefile.local,v 1.1 2010/07/23 18:51:37 root Exp $ # As long as we still have non-FreeSBD NIS clients on the local net... UNSECURE =3D "True" # Keep our NIS sources separate from any machine's /etc. # While we're doing that, might as well make provision in case we want to # work with more than one NIS domain at the same time. YPSRCDIR =3D $(YPDIR)/etc/$(DOMAIN) I then populated /var/yp/etc/lmdhw.com by unpacking a tarball of the sources from the SS5: albert# domainname lmdhw.com albert# ls -lTa etc/lmdhw.com/ total 38 drwxr-xr-x 3 root daemon 512 Jul 23 11:53:52 2010 . drwxr-xr-x 3 root wheel 512 Jul 23 11:44:37 2010 .. drwxr-xr-x 2 root daemon 512 May 10 10:06:43 2010 RCS -rw-r--r-- 1 root kmem 50 Jan 12 20:09:53 1997 auto_home -rw-r--r-- 1 root kmem 94 Jan 12 20:10:08 1997 auto_master -rw-rw-r-- 1 root daemon 0 Sep 14 11:53:16 1997 bootparams -rw-rw-r-- 1 root daemon 0 Sep 14 11:53:16 1997 ethers -r--r--r-- 1 root daemon 428 Sep 2 18:19:02 2001 group -r--r--r-- 1 root daemon 273 Oct 25 15:33:32 2008 hosts -rw-rw-r-- 1 root daemon 0 Sep 14 11:53:16 1997 netgroup -r--r--r-- 1 root daemon 592 Aug 26 21:53:00 1999 netmasks -r--r--r-- 1 root sys 372 Mar 4 21:46:19 1997 networks -r--r--r-- 1 root daemon 855 Nov 30 21:51:03 2009 passwd -rw-r--r-- 1 root daemon 892 May 3 19:11:13 1998 passwd.install -r--r--r-- 1 root sys 980 Apr 4 18:14:32 1998 protocols -r-xr-xr-x 1 bin kmem 622 Mar 4 22:04:36 1997 publickey -rw-r--r-- 1 root sys 1481 Mar 4 21:46:29 1997 rpc -r--r--r-- 1 root daemon 2380 Jul 19 18:48:02 1998 services -r-------- 1 root daemon 364 Oct 6 16:31:39 2006 shadow -rw-r--r-- 1 root daemon 416 May 3 19:11:28 1998 shadow.install -rw-r--r-- 1 root daemon 21 Apr 4 23:32:06 1998 timezone albert#=20 But when I run "make", I see whines about /var/yp/etc/`/bin/domainname`/hosts being non-existent and having no sources: albert# make -d lm Examining target...non-existent...non-existent and no sources...out-of-date. if [ ! -d `/bin/domainname` ]; then mkdir `/bin/domainname`; fi; cd `/bin/= domainname` ; echo "NIS Map update started on `date` for domain `/bin/domai= nname`" ; make -f ../Makefile all; echo "NIS Map update completed." NIS Map update started on Fri Jul 23 13:37:30 PDT 2010 for domain lmdhw.com Examining /var/yp/ypservers...modified 11:53:28 Jul 23, 2010...up-to-date. Examining ypservers...modified 11:53:55 Jul 23, 2010...up-to-date. Examining servers...non-existent...modified before source (ypservers)...out= -of-date. update time: 13:37:30 Jul 23, 2010 Examining /var/yp/etc/`/bin/domainname`/hosts...non-existent...non-existent= and no sources...out-of-date. make: don't know how to make /var/yp/etc/`/bin/domainname`/hosts. Stop *** Error code 2 Stop in /var/yp. albert#=20 I've run with additional debugging flags, but that seemed to merely add to the clutter without actually providing useful information, so I figured I'd skip subjecting y'all to that for now. So what silly thing am I overlooking here? Is something doing a chroot(2) behind the scenes? Thanks.... Peace, david --=20 David H. Wolfskill david@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --sgneBHv3152wZ8jf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEARECAAYFAkxJ/sIACgkQmprOCmdXAD2g4gCeNNa5sH1x9FG64ran7S7LHJmG A0oAni93hvUOEzPxbjLT/LxAurrllSLF =K8Sk -----END PGP SIGNATURE----- --sgneBHv3152wZ8jf--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100723204243.GD17210>