SUMMARY: Make hanging on adding new NIS map

From: <>
Date: Fri Feb 23 2007 - 14:09:50 EST
I set up NIS on a Solaris 9 box using all the defaults.  That appeared to run and start fine.  I now wish to add another map database.
The name of the map is auto.rfnfs.  I first ran makedbm auto.rfnfs.asc, edited the .asc file with vi, and put in the nfs shares I want to automount.  I then reran the makedbm command on the map.  That went ok.  The /etc/auto.master has the map name in it as well, I believe it looks ok. 
In the /var/yp/Makefile, I added it to the all line as follows:
all: passwd group hosts ipnodes ethers networks rpc services protocols \
        netgroup bootparams aliases publickey netid netmasks c2secure \
        timezone auto.master auto.home auto.rfnfs ageing \
        auth.attr exec.attr prof.attr user.attr audit.user
I also added the line auto.rfnfs: auto.rfnfs.time to the end of the file. 
I also added the following in the middle, using auto.master.time as a template:
auto.rfnfs.time:  $(DIR)/auto_rfnfs
        -@if [ -f $(DIR)/auto_rfnfs ]; then \
                sed -e "/^#/d" -e s/#.*$$// $(DIR)/auto_rfnfs \
                | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/auto.rfnfs; \
                touch auto.rfnfs.time; \
                echo "updated auto.rfnfs"; \
                if [ ! $(NOPUSH) ]; then \
                        $(YPPUSH) auto.rfnfs; \
                        echo "pushed auto.rfnfs"; \
                else \
                : ; \
                fi \
        else \
                echo "couldn't find $(DIR)/auto_rfnfs"; \
When I run make from /var/yp, I get the following:
losbd066# make
updated netid
pushed netid
make: Warning: Don't know how to make target `/etc/auto_rfnfs'
Current working directory /var/yp
make: Warning: Target `all' not remade because of errors
Current working directory /var/yp
*** Error code 1
make: Fatal error: Command failed for target `k'
If I copy /var/yp/auto.rfnfs.asc to /etc/auto_rfnfs and then rerun make, it then hangs after updated auto.rfnfs.
If anyone has any suggestions, please let me know.  Thanks in advance.
sunmanagers mailing list
Received on Fri Feb 23 14:10:29 2007

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:04 EST