mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
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.
This commit is contained in:
parent
e77fe975bb
commit
0a6205d8d0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9260
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user