summaryrefslogtreecommitdiffstats
path: root/gnu/usr.sbin
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1995-06-18 16:08:15 +0000
committerwpaul <wpaul@FreeBSD.org>1995-06-18 16:08:15 +0000
commit32fda3f3ae59cece1c89f8daa9e7482516bd79ac (patch)
treec79bf79bb6e1dc390b8f57b95197e7fd573d75b7 /gnu/usr.sbin
parentdac9b56c4ea7975d14daa5276aa3e10df75810de (diff)
downloadFreeBSD-src-32fda3f3ae59cece1c89f8daa9e7482516bd79ac.zip
FreeBSD-src-32fda3f3ae59cece1c89f8daa9e7482516bd79ac.tar.gz
Fixed awk scripts for 'netgroup,' 'ethers.*' and 'bootparams' targets so that
corresponding map databases are created correctly. This fixes the problem Ken Wilcox noted on the freebsd-bugs list.
Diffstat (limited to 'gnu/usr.sbin')
-rw-r--r--gnu/usr.sbin/ypserv/Makefile.yp10
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/usr.sbin/ypserv/Makefile.yp b/gnu/usr.sbin/ypserv/Makefile.yp
index adc2143..7645e0e 100644
--- a/gnu/usr.sbin/ypserv/Makefile.yp
+++ b/gnu/usr.sbin/ypserv/Makefile.yp
@@ -26,7 +26,7 @@ NOPUSH = "True"
# passwords in them) to the superuser on other FreeBSD machines, but
# non-FreeBSD clients (e.g. SunOS, Solaris (without NIS+), IRIX, HP-UX,
# etc...) will only work properly in 'unsecure' mode.
-#
+#
#UNSECURE = "True"
# These are commands which this Makefile needs to properly rebuild the
@@ -118,7 +118,7 @@ ethers.byname: $(ETHERS)
$(RM) $@
$(CAT) $(ETHERS) | \
$(AWK) '{ if ($$1 != "" && $$1 != "#" && $$1 != "+") \
- print $$0"\t"$$0 }' $^ | $(DBLOAD) -i $(ETHERS) \
+ print $$2"\t"$$0 }' $^ | $(DBLOAD) -i $(ETHERS) \
-o $(YPMAPDIR)/$@ - $@
@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) -i $(ETHERS) $@; fi
@if [ ! $(NOPUSH) ]; then echo "Pushed $@ map." ; fi
@@ -129,7 +129,7 @@ ethers.byaddr: $(ETHERS)
$(RM) $@
$(CAT) $(ETHERS) | \
$(AWK) '{ if ($$1 != "" && $$1 != "#" && $$1 != "+") \
- print $$0"\t"$$0 }' $^ | $(DBLOAD) -i $(ETHERS) \
+ print $$1"\t"$$0 }' $^ | $(DBLOAD) -i $(ETHERS) \
-o $(YPMAPDIR)/$@ - $@
@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) $@; fi
@if [ ! $(NOPUSH) ]; then echo "Pushed $@ map." ; fi
@@ -140,7 +140,7 @@ bootparams: $(BOOTPARAMS)
$(RM) $@
$(CAT) $(BOOTPARAMS) | \
$(AWK) '{ if ($$1 != "" && $$1 != "#" && $$1 != "+") \
- print $$0"\t"$$0 }' $^ | $(DBLOAD) -i $(BOOTPARAMS) \
+ print $$0 }' $^ | $(DBLOAD) -i $(BOOTPARAMS) \
-o $(YPMAPDIR)/$@ - $@
@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) $@; fi
@if [ ! $(NOPUSH) ]; then echo "Pushed $@ map." ; fi
@@ -151,7 +151,7 @@ netgroup: $(NETGROUP)
$(RM) $@
$(CAT) $(NETGROUP) | \
$(AWK) '{ if ($$1 != "" && $$1 != "#" && $$1 != "+") \
- print $$0"\t"$$0 }' $^ | $(DBLOAD) -i $(NETGROUP) \
+ print $$0 }' $^ | $(DBLOAD) -i $(NETGROUP) \
-o $(YPMAPDIR)/$@ - $@
@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) $@; fi
@if [ ! $(NOPUSH) ]; then echo "Pushed $@ map." ; fi
OpenPOWER on IntegriCloud