diff options
author | wpaul <wpaul@FreeBSD.org> | 1996-06-05 02:01:31 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1996-06-05 02:01:31 +0000 |
commit | cf31622e837736537d53be8762523f3fecb07ae6 (patch) | |
tree | 8366e6ebd8e180952579e3ace571fee8de12afba /usr.sbin/ypserv/Makefile.yp | |
parent | f12d02958af4923cccf62583718f39baa06fa941 (diff) | |
download | FreeBSD-src-cf31622e837736537d53be8762523f3fecb07ae6.zip FreeBSD-src-cf31622e837736537d53be8762523f3fecb07ae6.tar.gz |
Makefile.yp:
- Add a 'pushpw' target that only yppushes the various passwd maps
and sends a YPPROC_CLEAR to the local ypserv. This will be used by
rpc.yppasswdd once I merge in the in-place update changes.
yp_access.c:
- Make the yp_access() function print RPC program and procedure numbers
that it doesn't know about in literal form. This will allow it to work
with other prgrams that it doesn't know about, like rpc.ypxfrd I'm going
to import shortly.
yp_dblookup.c:
- Take out the __inline keywords. They weren't really helping me anyway.
- Somehow I broke yp_next() when DB_CACHE wasn't #defined. Fix it.
- Also fix potential case where yp_next() might loop forever; make sure
it checks the return values of all the (dbp->seq)()/R_NEXT calls that
it does as well as comparing keys.
Diffstat (limited to 'usr.sbin/ypserv/Makefile.yp')
-rw-r--r-- | usr.sbin/ypserv/Makefile.yp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/usr.sbin/ypserv/Makefile.yp b/usr.sbin/ypserv/Makefile.yp index 0d85712..b8f474c 100644 --- a/usr.sbin/ypserv/Makefile.yp +++ b/usr.sbin/ypserv/Makefile.yp @@ -1,7 +1,7 @@ # # Makefile for the NIS databases # -# $Id: Makefile.yp,v 1.4 1996/04/28 04:38:46 wpaul Exp $ +# $Id: Makefile.yp,v 1.5 1996/06/03 16:24:32 wpaul Exp $ # # This Makefile should only be run on the NIS master server of a domain. # All updated maps will be pushed to all NIS slave servers listed in the @@ -136,6 +136,20 @@ aliases: mail.aliases master.passwd: master.passwd.byname master.passwd.byuid +# +# This is a special target used only when doing in-place updates with +# rpc.yppasswdd. In this case, the maps will be updated by the rpc.yppasswdd +# server and won't need to be remade. They will have to be pushed to the +# slaves however. Calling this target implicitly insures that this will +# happen. +# +pushpw: + @$(DBLOAD) -c + @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) master.passwd.byname ; fi + @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) master.passwd.byuid ; fi + @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) passwd.byname ; fi + @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) passwd.byuid ; fi + mail.aliases: $(ALIASES) @echo "Updating $@..." @echo $@.$$$$ > $(NFILE) @@ -356,7 +370,8 @@ services.byname: $(SERVICES) $(CAT) $(SERVICES) | \ $(AWK) \ '$$1 !~ "#" { if (index($$2,"udp")) { printf("%s/udp",$$1) } \ - else { printf("%s/tcp",$$1) }; print "\t"$$0 \ + else { printf("%s/tcp",$$1) }; print "\t"$$0 ; \ + print $$2"\t"$$0 ; \ }' $^ | $(DBLOAD) -i $(SERVICES) -o $(YPMAPDIR)/$@ - $(TMP) @$(MV) $(TMP) $@ @$(DBLOAD) -c |