Makefile.yp (1fff226dba12ca1f80e19a243b009ac2f67b544c) | Makefile.yp (920491cf83b8329918ad46d15cd605f31d4ecf43) |
---|---|
1# 2# Makefile for the NIS databases 3# | 1# 2# Makefile for the NIS databases 3# |
4# $Id: Makefile.yp,v 1.1.1.1 1995/12/16 20:54:17 wpaul Exp $ | 4# $Id: Makefile.yp,v 1.2 1996/01/12 07:07:18 wpaul 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# --- 24 unchanged lines hidden (view full) --- 37AWK = /usr/bin/awk 38RM = @/bin/rm -f 39RCAT = /bin/cat 40CAT = @$(RCAT) 41 42DBLOAD = /usr/sbin/yp_mkdb -m `hostname` 43MKNETID = /usr/libexec/mknetid 44YPPUSH = /usr/sbin/yppush | 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# --- 24 unchanged lines hidden (view full) --- 37AWK = /usr/bin/awk 38RM = @/bin/rm -f 39RCAT = /bin/cat 40CAT = @$(RCAT) 41 42DBLOAD = /usr/sbin/yp_mkdb -m `hostname` 43MKNETID = /usr/libexec/mknetid 44YPPUSH = /usr/sbin/yppush |
45.if !defined(UPDATE_DOMAIN) |
|
45DOMAIN = `/bin/domainname` | 46DOMAIN = `/bin/domainname` |
47.else 48DOMAIN = $(UPDATE_DOMAIN) 49.endif |
|
46REVNETGROUP = /usr/libexec/revnetgroup 47 48YPSRCDIR = /etc 49YPDIR = /var/yp 50YPMAPDIR = $(YPDIR)/$(DOMAIN) 51 52# These are the files from which the NIS databases are built. You may edit 53# these to taste in the event that you wish to keep your NIS source files --- 31 unchanged lines hidden (view full) --- 85.else 86MASTER = $(MASTER_PASSWD) 87.endif 88YPSERVERS = $(YPDIR)/ypservers # List of all NIS servers for a domain 89PUBLICKEY = $(YPSRCDIR)/publickey 90 91target: 92 @if [ ! -d $(DOMAIN) ]; then mkdir $(DOMAIN); fi; \ | 50REVNETGROUP = /usr/libexec/revnetgroup 51 52YPSRCDIR = /etc 53YPDIR = /var/yp 54YPMAPDIR = $(YPDIR)/$(DOMAIN) 55 56# These are the files from which the NIS databases are built. You may edit 57# these to taste in the event that you wish to keep your NIS source files --- 31 unchanged lines hidden (view full) --- 89.else 90MASTER = $(MASTER_PASSWD) 91.endif 92YPSERVERS = $(YPDIR)/ypservers # List of all NIS servers for a domain 93PUBLICKEY = $(YPSRCDIR)/publickey 94 95target: 96 @if [ ! -d $(DOMAIN) ]; then mkdir $(DOMAIN); fi; \ |
93 cd $(DOMAIN) ; echo "NIS Map update started on `date`" ; \ | 97 cd $(DOMAIN) ; echo "NIS Map update started on `date` for domain $(DOMAIN)" ; \ |
94 make -f ../Makefile all; echo "NIS Map update completed." 95 96# If you don't want some of these maps built, feel free to comment 97# them out from this list. 98# Note that we don't build the ethers or boorparams maps by default 99# since /etc/ethers and /etc/bootparams are not likely to be present 100# on all systems. 101# --- 293 unchanged lines hidden --- | 98 make -f ../Makefile all; echo "NIS Map update completed." 99 100# If you don't want some of these maps built, feel free to comment 101# them out from this list. 102# Note that we don't build the ethers or boorparams maps by default 103# since /etc/ethers and /etc/bootparams are not likely to be present 104# on all systems. 105# --- 293 unchanged lines hidden --- |