diff options
| author | Bill Paul <wpaul@FreeBSD.org> | 1995-12-09 19:25:00 +0000 |
|---|---|---|
| committer | Bill Paul <wpaul@FreeBSD.org> | 1995-12-09 19:25:00 +0000 |
| commit | 5028f8616a133dfc8c0a4a35d68d5de077f3e0e4 (patch) | |
| tree | 6744ab818c9b7048267c1d7f96de9e2a3b68c1c0 /gnu/usr.sbin | |
| parent | 44440ae8b292fd3a72ee6bc1339d5e14839d7566 (diff) | |
Notes
Diffstat (limited to 'gnu/usr.sbin')
| -rw-r--r-- | gnu/usr.sbin/ypserv/Makefile.yp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gnu/usr.sbin/ypserv/Makefile.yp b/gnu/usr.sbin/ypserv/Makefile.yp index beb46e83b3e1..b69707083136 100644 --- a/gnu/usr.sbin/ypserv/Makefile.yp +++ b/gnu/usr.sbin/ypserv/Makefile.yp @@ -1,7 +1,7 @@ # # Makefile for the NIS databases # -# $Id: Makefile.yp,v 1.7.4.1 1995/08/25 11:18:36 davidg Exp $ +# $Id: Makefile.yp,v 1.12 1995/10/26 18:00:35 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 @@ -293,9 +293,8 @@ services.byname: $(SERVICES) $(RM) $@ $(CAT) $(SERVICES) | \ $(AWK) \ - '$$1 !~ "#" { print $$1"\t"$$0; \ - for (n=3; n<=NF && $$n !~ "#"; n++) \ - print $$n"\t"$$0 \ + '$$1 !~ "#" { if (index($$2,"udp")) { printf("%s/udp",$$1) } \ + else { printf("%s/tcp",$$1) }; print "\t"$$0 \ }' $^ | $(DBLOAD) -i $(SERVICES) -o $(YPMAPDIR)/$@ - $@ @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) $@; fi @if [ ! $(NOPUSH) ]; then echo "Pushed $@ map." ; fi |
