Makefile.yp (17266) | Makefile.yp (17268) |
---|---|
1# 2# Makefile for the NIS databases 3# | 1# 2# Makefile for the NIS databases 3# |
4# $Id: Makefile.yp,v 1.8 1996/07/18 23:48:13 adam Exp $ | 4# $Id: Makefile.yp,v 1.9 1996/07/24 10:48:07 peter Exp $ |
5# 6# This Makefile should only be run on the NIS master server of a domain. 7# All updated maps will be pushed to all NIS slave servers listed in the 8# /var/yp/ypservers file. Please make sure that the hostnames of all 9# NIS servers in your domain are listed in /var/yp/ypservers. 10# 11# This Makefile can be modified to support more NIS maps if desired. 12# --- 100 unchanged lines hidden (view full) --- 113# If you don't want some of these maps built, feel free to comment 114# them out from this list. 115# Note that we don't build the ethers or boorparams maps by default 116# since /etc/ethers and /etc/bootparams are not likely to be present 117# on all systems. 118# 119 120all: master.passwd passwd hosts group networks protocols rpc \ | 5# 6# This Makefile should only be run on the NIS master server of a domain. 7# All updated maps will be pushed to all NIS slave servers listed in the 8# /var/yp/ypservers file. Please make sure that the hostnames of all 9# NIS servers in your domain are listed in /var/yp/ypservers. 10# 11# This Makefile can be modified to support more NIS maps if desired. 12# --- 100 unchanged lines hidden (view full) --- 113# If you don't want some of these maps built, feel free to comment 114# them out from this list. 115# Note that we don't build the ethers or boorparams maps by default 116# since /etc/ethers and /etc/bootparams are not likely to be present 117# on all systems. 118# 119 120all: master.passwd passwd hosts group networks protocols rpc \ |
121 services servers netid # aliases publickey netgrp ethers bootparam \ 122 amd.host | 121 services servers netid 122 # aliases publickey netgrp ethers bootparam amd.host |
123 124ethers: ethers.byname ethers.byaddr 125bootparam: bootparams 126hosts: hosts.byname hosts.byaddr 127networks: networks.byaddr networks.byname 128protocols: protocols.bynumber protocols.byname 129rpc: rpc.byname rpc.bynumber 130services: services.byname --- 49 unchanged lines hidden (view full) --- 180 @echo "Updating $@..." 181 @echo $@.$$$$ > $(NFILE) 182 $(CAT) $(ETHERS) | \ 183 $(AWK) '{ if ($$1 != "" && $$1 != "#" && $$1 != "+") \ 184 print $$2"\t"$$0 }' $^ | $(DBLOAD) -i $(ETHERS) \ 185 -o $(YPMAPDIR)/$@ - $(TMP) 186 @$(MV) $(TMP) $@ 187 @$(DBLOAD) -c | 123 124ethers: ethers.byname ethers.byaddr 125bootparam: bootparams 126hosts: hosts.byname hosts.byaddr 127networks: networks.byaddr networks.byname 128protocols: protocols.bynumber protocols.byname 129rpc: rpc.byname rpc.bynumber 130services: services.byname --- 49 unchanged lines hidden (view full) --- 180 @echo "Updating $@..." 181 @echo $@.$$$$ > $(NFILE) 182 $(CAT) $(ETHERS) | \ 183 $(AWK) '{ if ($$1 != "" && $$1 != "#" && $$1 != "+") \ 184 print $$2"\t"$$0 }' $^ | $(DBLOAD) -i $(ETHERS) \ 185 -o $(YPMAPDIR)/$@ - $(TMP) 186 @$(MV) $(TMP) $@ 187 @$(DBLOAD) -c |
188 @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) -i $(ETHERS) $@; fi | 188 @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) $@; fi |
189 @if [ ! $(NOPUSH) ]; then echo "Pushed $@ map." ; fi 190 191 192ethers.byaddr: $(ETHERS) 193 @echo "Updating $@..." 194 @echo $@.$$$$ > $(NFILE) 195 $(CAT) $(ETHERS) | \ 196 $(AWK) '{ if ($$1 != "" && $$1 != "#" && $$1 != "+") \ --- 315 unchanged lines hidden --- | 189 @if [ ! $(NOPUSH) ]; then echo "Pushed $@ map." ; fi 190 191 192ethers.byaddr: $(ETHERS) 193 @echo "Updating $@..." 194 @echo $@.$$$$ > $(NFILE) 195 $(CAT) $(ETHERS) | \ 196 $(AWK) '{ if ($$1 != "" && $$1 != "#" && $$1 != "+") \ --- 315 unchanged lines hidden --- |