Deleted Added
full compact
Makefile.yp (16044) Makefile.yp (16118)
1#
2# Makefile for the NIS databases
3#
1#
2# Makefile for the NIS databases
3#
4# $Id: Makefile.yp,v 1.4 1996/04/28 04:38:46 wpaul Exp $
4# $Id: Makefile.yp,v 1.5 1996/06/03 16:24:32 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#

--- 118 unchanged lines hidden (view full) ---

131netgrp: netgroup
132netid: netid.byname
133servers: ypservers
134publickey: publickey.byname
135aliases: mail.aliases
136
137master.passwd: master.passwd.byname master.passwd.byuid
138
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#

--- 118 unchanged lines hidden (view full) ---

131netgrp: netgroup
132netid: netid.byname
133servers: ypservers
134publickey: publickey.byname
135aliases: mail.aliases
136
137master.passwd: master.passwd.byname master.passwd.byuid
138
139#
140# This is a special target used only when doing in-place updates with
141# rpc.yppasswdd. In this case, the maps will be updated by the rpc.yppasswdd
142# server and won't need to be remade. They will have to be pushed to the
143# slaves however. Calling this target implicitly insures that this will
144# happen.
145#
146pushpw:
147 @$(DBLOAD) -c
148 @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) master.passwd.byname ; fi
149 @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) master.passwd.byuid ; fi
150 @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) passwd.byname ; fi
151 @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) passwd.byuid ; fi
152
139mail.aliases: $(ALIASES)
140 @echo "Updating $@..."
141 @echo $@.$$$$ > $(NFILE)
142 $(CAT) $(ALIASES) | \
143 $(SED) -e "/^#/d" -e s/#.*$$// -e "/^ *$$/d" |\
144 $(MKALIASES) \
145 | $(DBLOAD) -i $(ALIASES) -o $(YPMAPDIR)/$@ - $(TMP)
146 @$(MV) $(TMP) $@

--- 204 unchanged lines hidden (view full) ---

351
352
353services.byname: $(SERVICES)
354 @echo "Updating $@..."
355 @echo $@.$$$$ > $(NFILE)
356 $(CAT) $(SERVICES) | \
357 $(AWK) \
358 '$$1 !~ "#" { if (index($$2,"udp")) { printf("%s/udp",$$1) } \
153mail.aliases: $(ALIASES)
154 @echo "Updating $@..."
155 @echo $@.$$$$ > $(NFILE)
156 $(CAT) $(ALIASES) | \
157 $(SED) -e "/^#/d" -e s/#.*$$// -e "/^ *$$/d" |\
158 $(MKALIASES) \
159 | $(DBLOAD) -i $(ALIASES) -o $(YPMAPDIR)/$@ - $(TMP)
160 @$(MV) $(TMP) $@

--- 204 unchanged lines hidden (view full) ---

365
366
367services.byname: $(SERVICES)
368 @echo "Updating $@..."
369 @echo $@.$$$$ > $(NFILE)
370 $(CAT) $(SERVICES) | \
371 $(AWK) \
372 '$$1 !~ "#" { if (index($$2,"udp")) { printf("%s/udp",$$1) } \
359 else { printf("%s/tcp",$$1) }; print "\t"$$0 \
373 else { printf("%s/tcp",$$1) }; print "\t"$$0 ; \
374 print $$2"\t"$$0 ; \
360 }' $^ | $(DBLOAD) -i $(SERVICES) -o $(YPMAPDIR)/$@ - $(TMP)
361 @$(MV) $(TMP) $@
362 @$(DBLOAD) -c
363 @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) $@; fi
364 @if [ ! $(NOPUSH) ]; then echo "Pushed $@ map." ; fi
365
366
367publickey.byname: $(PUBLICKEY)

--- 107 unchanged lines hidden ---
375 }' $^ | $(DBLOAD) -i $(SERVICES) -o $(YPMAPDIR)/$@ - $(TMP)
376 @$(MV) $(TMP) $@
377 @$(DBLOAD) -c
378 @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) $@; fi
379 @if [ ! $(NOPUSH) ]; then echo "Pushed $@ map." ; fi
380
381
382publickey.byname: $(PUBLICKEY)

--- 107 unchanged lines hidden ---