Print this page
XXX Remove nawk(1)

*** 92,106 **** fi; \ fi passwd.time: $(PWDIR)/passwd $(PWDIR)/shadow -@if [ -f $(PWDIR)/security/passwd.adjunct ]; then \ ! (nawk 'BEGIN { FS=":"; OFS=":" } /^[a-zA-Z0-9_]/ { $$2 = "##" $$1; printf "%s\t%s\n", $$1, $$0 }' $(PWDIR)/passwd $(CHKPIPE)) | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/passwd.byname; \ ! (nawk 'BEGIN { FS=":"; OFS=":" } /^[a-zA-Z0-9_]/ { $$2 = "##" $$1; printf "%-10d\t%s\n", $$3, $$0 }' $(PWDIR)/passwd $(CHKPIPE)) | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/passwd.byuid; \ elif [ -f $(PWDIR)/shadow ]; then \ ! (nawk 'BEGIN { FS=":"; OFS=":"; while ( getline < "$(PWDIR)/shadow" > 0) shadow[$$1] = $$2; } /^[a-zA-Z0-9_]/ { $$2 = shadow[$$1]; printf "%s\t%s\n",$$1,$$0 }' $(PWDIR)/passwd $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/passwd.byname; \ ! (nawk 'BEGIN { FS=":"; OFS=":"; while ( getline < "$(PWDIR)/shadow" > 0) shadow[$$1] = $$2; } /^[a-zA-Z0-9_]/ { $$2 = shadow[$$1]; printf "%-10d\t%s\n",$$3,$$0 }' $(PWDIR)/passwd $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/passwd.byuid; \ else \ (awk 'BEGIN { FS=":"; OFS="\t"; } /^[a-zA-Z0-9_]/ { print $$1, $$0 }' $(PWDIR)/passwd $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/passwd.byname; \ (awk 'BEGIN { FS=":"; OFS="\t"; } /^[a-zA-Z0-9_]/ { printf("%-10d ", $$3); print $$0 }' $(PWDIR)/passwd $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/passwd.byuid; \ fi @touch passwd.time; --- 92,106 ---- fi; \ fi passwd.time: $(PWDIR)/passwd $(PWDIR)/shadow -@if [ -f $(PWDIR)/security/passwd.adjunct ]; then \ ! (/usr/xpg4/bin/awk 'BEGIN { FS=":"; OFS=":" } /^[a-zA-Z0-9_]/ { $$2 = "##" $$1; printf "%s\t%s\n", $$1, $$0 }' $(PWDIR)/passwd $(CHKPIPE)) | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/passwd.byname; \ ! (/usr/xpg4/bin/awk 'BEGIN { FS=":"; OFS=":" } /^[a-zA-Z0-9_]/ { $$2 = "##" $$1; printf "%-10d\t%s\n", $$3, $$0 }' $(PWDIR)/passwd $(CHKPIPE)) | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/passwd.byuid; \ elif [ -f $(PWDIR)/shadow ]; then \ ! (/usr/xpg4/bin/awk 'BEGIN { FS=":"; OFS=":"; while ( getline < "$(PWDIR)/shadow" > 0) shadow[$$1] = $$2; } /^[a-zA-Z0-9_]/ { $$2 = shadow[$$1]; printf "%s\t%s\n",$$1,$$0 }' $(PWDIR)/passwd $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/passwd.byname; \ ! (/usr/xpg4/bin/awk 'BEGIN { FS=":"; OFS=":"; while ( getline < "$(PWDIR)/shadow" > 0) shadow[$$1] = $$2; } /^[a-zA-Z0-9_]/ { $$2 = shadow[$$1]; printf "%-10d\t%s\n",$$3,$$0 }' $(PWDIR)/passwd $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/passwd.byuid; \ else \ (awk 'BEGIN { FS=":"; OFS="\t"; } /^[a-zA-Z0-9_]/ { print $$1, $$0 }' $(PWDIR)/passwd $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/passwd.byname; \ (awk 'BEGIN { FS=":"; OFS="\t"; } /^[a-zA-Z0-9_]/ { printf("%-10d ", $$3); print $$0 }' $(PWDIR)/passwd $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/passwd.byuid; \ fi @touch passwd.time;
*** 287,297 **** # @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) passwd.adjunct.byname; fi # @if [ ! $(NOPUSH) ]; then echo "pushed passwd.adjunct"; fi passwd.adjunct.time: $(PWDIR)/security/passwd.adjunct $(PWDIR)/shadow -@if [ -f $(PWDIR)/shadow ]; then \ ! (nawk 'BEGIN { FS=":"; while (getline < "$(PWDIR)/shadow" > 0) shadow[$$1] = $$2; } /^[a-zA-Z0-9_]/ { $$2 = shadow[$$1]; OFS=":"; printf "%s\t%s\n", $$1, $$0 }' $(PWDIR)/security/passwd.adjunct $(CHKPIPE)) | $(MAKEDBM) -s - $(YPDBDIR)/$(DOM)/passwd.adjunct.byname; \ else \ (awk 'BEGIN { FS=":"; OFS="\t"; } /^[a-zA-Z0-9_]/ { print $$1, $$0 }' $(PWDIR)/security/passwd.adjunct $(CHKPIPE)) | \ $(MAKEDBM) -s - $(YPDBDIR)/$(DOM)/passwd.adjunct.byname; \ fi @chmod 600 $(YPDBDIR)/$(DOM)/passwd.adjunct.byname.dir; --- 287,297 ---- # @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) passwd.adjunct.byname; fi # @if [ ! $(NOPUSH) ]; then echo "pushed passwd.adjunct"; fi passwd.adjunct.time: $(PWDIR)/security/passwd.adjunct $(PWDIR)/shadow -@if [ -f $(PWDIR)/shadow ]; then \ ! (/usr/xpg4/bin/awk 'BEGIN { FS=":"; while (getline < "$(PWDIR)/shadow" > 0) shadow[$$1] = $$2; } /^[a-zA-Z0-9_]/ { $$2 = shadow[$$1]; OFS=":"; printf "%s\t%s\n", $$1, $$0 }' $(PWDIR)/security/passwd.adjunct $(CHKPIPE)) | $(MAKEDBM) -s - $(YPDBDIR)/$(DOM)/passwd.adjunct.byname; \ else \ (awk 'BEGIN { FS=":"; OFS="\t"; } /^[a-zA-Z0-9_]/ { print $$1, $$0 }' $(PWDIR)/security/passwd.adjunct $(CHKPIPE)) | \ $(MAKEDBM) -s - $(YPDBDIR)/$(DOM)/passwd.adjunct.byname; \ fi @chmod 600 $(YPDBDIR)/$(DOM)/passwd.adjunct.byname.dir;
*** 364,374 **** auth.attr.time: $(RBACDIR)/auth_attr -@if [ -f $(RBACDIR)/auth_attr ]; then \ sed -e "/^#/d" -e s/#.*$$// $(RBACDIR)/auth_attr \ |sed -e '/\\$$/{:l' -e 'N;s/\\\n//;t h' -e ':h' \ -e 's/\\$$/\\/;t l' -e } \ ! | (nawk 'BEGIN { FS=":"; OFS=":" } /^[a-zA-Z0-9_]/ \ {printf "%s:%s\n", $$1, $$0 }' $(CHKPIPE)) \ | $(MAKEDBM) -S ":" -E - $(YPDBDIR)/$(DOM)/auth_attr; \ touch auth.attr.time; \ echo "updated auth_attr"; \ if [ ! $(NOPUSH) ]; then \ --- 364,374 ---- auth.attr.time: $(RBACDIR)/auth_attr -@if [ -f $(RBACDIR)/auth_attr ]; then \ sed -e "/^#/d" -e s/#.*$$// $(RBACDIR)/auth_attr \ |sed -e '/\\$$/{:l' -e 'N;s/\\\n//;t h' -e ':h' \ -e 's/\\$$/\\/;t l' -e } \ ! | (/usr/xpg4/bin/awk 'BEGIN { FS=":"; OFS=":" } /^[a-zA-Z0-9_]/ \ {printf "%s:%s\n", $$1, $$0 }' $(CHKPIPE)) \ | $(MAKEDBM) -S ":" -E - $(YPDBDIR)/$(DOM)/auth_attr; \ touch auth.attr.time; \ echo "updated auth_attr"; \ if [ ! $(NOPUSH) ]; then \
*** 384,394 **** exec.attr.time: $(RBACDIR)/exec_attr -@if [ -f $(RBACDIR)/exec_attr ]; then \ sed -e "/^#/d" -e s/#.*$$// $(RBACDIR)/exec_attr \ |sed -e '/\\$$/{:l' -e 'N;s/\\\n//;t h' -e ':h' \ -e 's/\\$$/\\/;t l' -e } \ ! | (nawk 'BEGIN { FS=":"; OFS=":" } /^[a-zA-Z0-9_]/ \ {printf "%s:%s:%s:%s\n", $$1, $$2, $$6, $$0 }' $(CHKPIPE)) \ | $(MAKEDBM) -S ":" -E -D 2 - $(YPDBDIR)/$(DOM)/exec_attr; \ touch exec.attr.time; \ echo "updated exec_attr"; \ if [ ! $(NOPUSH) ]; then \ --- 384,394 ---- exec.attr.time: $(RBACDIR)/exec_attr -@if [ -f $(RBACDIR)/exec_attr ]; then \ sed -e "/^#/d" -e s/#.*$$// $(RBACDIR)/exec_attr \ |sed -e '/\\$$/{:l' -e 'N;s/\\\n//;t h' -e ':h' \ -e 's/\\$$/\\/;t l' -e } \ ! | (/usr/xpg4/bin/awk 'BEGIN { FS=":"; OFS=":" } /^[a-zA-Z0-9_]/ \ {printf "%s:%s:%s:%s\n", $$1, $$2, $$6, $$0 }' $(CHKPIPE)) \ | $(MAKEDBM) -S ":" -E -D 2 - $(YPDBDIR)/$(DOM)/exec_attr; \ touch exec.attr.time; \ echo "updated exec_attr"; \ if [ ! $(NOPUSH) ]; then \
*** 404,414 **** prof.attr.time: $(RBACDIR)/prof_attr -@if [ -f $(RBACDIR)/prof_attr ]; then \ sed -e "/^#/d" -e s/#.*$$// $(RBACDIR)/prof_attr \ |sed -e '/\\$$/{:l' -e 'N;s/\\\n//;t h' -e ':h' \ -e 's/\\$$/\\/;t l' -e } \ ! | (nawk 'BEGIN { FS=":"; OFS=":" } /^[a-zA-Z0-9_]/ \ {printf "%s:%s\n", $$1, $$0 }' $(CHKPIPE)) \ | $(MAKEDBM) -S ":" -E - $(YPDBDIR)/$(DOM)/prof_attr; \ touch prof.attr.time; \ echo "updated prof_attr"; \ if [ ! $(NOPUSH) ]; then \ --- 404,414 ---- prof.attr.time: $(RBACDIR)/prof_attr -@if [ -f $(RBACDIR)/prof_attr ]; then \ sed -e "/^#/d" -e s/#.*$$// $(RBACDIR)/prof_attr \ |sed -e '/\\$$/{:l' -e 'N;s/\\\n//;t h' -e ':h' \ -e 's/\\$$/\\/;t l' -e } \ ! | (/usr/xpg4/bin/awk 'BEGIN { FS=":"; OFS=":" } /^[a-zA-Z0-9_]/ \ {printf "%s:%s\n", $$1, $$0 }' $(CHKPIPE)) \ | $(MAKEDBM) -S ":" -E - $(YPDBDIR)/$(DOM)/prof_attr; \ touch prof.attr.time; \ echo "updated prof_attr"; \ if [ ! $(NOPUSH) ]; then \
*** 424,434 **** user.attr.time: $(DIR)/user_attr -@if [ -f $(DIR)/user_attr ]; then \ sed -e "/^#/d" -e s/#.*$$// $(DIR)/user_attr \ |sed -e '/\\$$/{:l' -e 'N;s/\\\n//;t h' -e ':h' \ -e 's/\\$$/\\/;t l' -e } \ ! | (nawk 'BEGIN { FS=":"; OFS=":" } /^[a-zA-Z0-9_]/ \ {printf "%s:%s\n", $$1, $$0 }' $(CHKPIPE)) \ | $(MAKEDBM) -S ":" -E - $(YPDBDIR)/$(DOM)/user_attr; \ touch user.attr.time; \ echo "updated user_attr"; \ if [ ! $(NOPUSH) ]; then \ --- 424,434 ---- user.attr.time: $(DIR)/user_attr -@if [ -f $(DIR)/user_attr ]; then \ sed -e "/^#/d" -e s/#.*$$// $(DIR)/user_attr \ |sed -e '/\\$$/{:l' -e 'N;s/\\\n//;t h' -e ':h' \ -e 's/\\$$/\\/;t l' -e } \ ! | (/usr/xpg4/bin/awk 'BEGIN { FS=":"; OFS=":" } /^[a-zA-Z0-9_]/ \ {printf "%s:%s\n", $$1, $$0 }' $(CHKPIPE)) \ | $(MAKEDBM) -S ":" -E - $(YPDBDIR)/$(DOM)/user_attr; \ touch user.attr.time; \ echo "updated user_attr"; \ if [ ! $(NOPUSH) ]; then \