Setup for NIS master: make isn't seeing my sources

David Wolfskill david at catwhisker.org
Fri Jul 23 21:00:50 UTC 2010


[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              
/var/yp
albert# cat Makefile.local 
# 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 = "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 =  $(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# 

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/domainname`" ;  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# 

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
-- 
David H. Wolfskill				david at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100723/8b142294/attachment.pgp


More information about the freebsd-questions mailing list