xref: /illumos-gate/usr/src/cmd/ypcmd/net_files/Makefile (revision bcd524b5c10222cf2a1ef37ac7ea8bf1baa3a2ee)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*bcd524b5Sgww# Common Development and Distribution License (the "License").
6*bcd524b5Sgww# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
21*bcd524b5Sgww# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
227c478bd9Sstevel@tonic-gate# Use is subject to license terms.
237c478bd9Sstevel@tonic-gate#
247c478bd9Sstevel@tonic-gate#      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
257c478bd9Sstevel@tonic-gate#      All Rights Reserved
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate# Portions of this source code were derived from Berkeley
287c478bd9Sstevel@tonic-gate# under license from the Regents of the University of
297c478bd9Sstevel@tonic-gate# California.
307c478bd9Sstevel@tonic-gate#
317c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
327c478bd9Sstevel@tonic-gate#
337c478bd9Sstevel@tonic-gate#----
347c478bd9Sstevel@tonic-gate# It is somewhat confusing to note that Solaris 2.x uses /etc/auto_master
357c478bd9Sstevel@tonic-gate# instead of the 4.x /etc/auto.master file name because of NIS+ treating a
367c478bd9Sstevel@tonic-gate# "." in a special way.
377c478bd9Sstevel@tonic-gate#
387c478bd9Sstevel@tonic-gate# Set the following variable to "-b" to have NIS servers use the domain name
397c478bd9Sstevel@tonic-gate# resolver for hosts not in the current domain.
407c478bd9Sstevel@tonic-gate#B=-b
417c478bd9Sstevel@tonic-gateB=
427c478bd9Sstevel@tonic-gateDIR =/etc
437c478bd9Sstevel@tonic-gate#
447c478bd9Sstevel@tonic-gate# If the ipnodes (IPv6 hosts file) lives in a directory other than
457c478bd9Sstevel@tonic-gate# /etc/inet, then you'll need to change the following line.
467c478bd9Sstevel@tonic-gate#
477c478bd9Sstevel@tonic-gateINETDIR=/etc/inet
487c478bd9Sstevel@tonic-gate#
497c478bd9Sstevel@tonic-gate# If the audit_user, auth_attr, exec_attr, prof_attr files
507c478bd9Sstevel@tonic-gate# live in a directory other than /etc/security, then you'll
517c478bd9Sstevel@tonic-gate# need to change the following line.
527c478bd9Sstevel@tonic-gate#
537c478bd9Sstevel@tonic-gateRBACDIR=/etc/security
547c478bd9Sstevel@tonic-gate#
557c478bd9Sstevel@tonic-gate# If the passwd, shadow and/or adjunct files used by rpc.yppasswdd
567c478bd9Sstevel@tonic-gate# live in directory other than /etc then you'll need to change the
577c478bd9Sstevel@tonic-gate# following line.
587c478bd9Sstevel@tonic-gate# DO NOT indent the line, however, since /etc/init.d/yp attempts
597c478bd9Sstevel@tonic-gate# to find it with grep "^PWDIR" ...
607c478bd9Sstevel@tonic-gate#
617c478bd9Sstevel@tonic-gatePWDIR =/etc
627c478bd9Sstevel@tonic-gateDOM = `domainname`
637c478bd9Sstevel@tonic-gateNOPUSH = ""
647c478bd9Sstevel@tonic-gateALIASES = /etc/mail/aliases
657c478bd9Sstevel@tonic-gateYPDIR=/usr/lib/netsvc/yp
667c478bd9Sstevel@tonic-gateSBINDIR=/usr/sbin
677c478bd9Sstevel@tonic-gateYPDBDIR=/var/yp
687c478bd9Sstevel@tonic-gateYPPUSH=$(YPDIR)/yppush
697c478bd9Sstevel@tonic-gateMAKEDBM=$(SBINDIR)/makedbm
707c478bd9Sstevel@tonic-gateMULTI=$(YPDIR)/multi
717c478bd9Sstevel@tonic-gateREVNETGROUP=$(SBINDIR)/revnetgroup
727c478bd9Sstevel@tonic-gateSTDETHERS=$(YPDIR)/stdethers
737c478bd9Sstevel@tonic-gateSTDHOSTS=$(YPDIR)/stdhosts
747c478bd9Sstevel@tonic-gateMKNETID=$(SBINDIR)/mknetid
757c478bd9Sstevel@tonic-gateMKALIAS=$(YPDIR)/mkalias
767c478bd9Sstevel@tonic-gate
777c478bd9Sstevel@tonic-gateCHKPIPE=  || (  echo "NIS make terminated:" $@ 1>&2; kill -TERM 0 )
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gatek:
817c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(MAKE)  $(MFLAGS) -k all; \
827c478bd9Sstevel@tonic-gate	else $(MAKE) $(MFLAGS) -k all NOPUSH=$(NOPUSH);fi
837c478bd9Sstevel@tonic-gate
847c478bd9Sstevel@tonic-gateall: passwd group hosts ipnodes ethers networks rpc services protocols \
857c478bd9Sstevel@tonic-gate	netgroup bootparams aliases publickey netid netmasks c2secure \
867c478bd9Sstevel@tonic-gate	timezone auto.master auto.home ageing \
877c478bd9Sstevel@tonic-gate	auth.attr exec.attr prof.attr user.attr audit.user
887c478bd9Sstevel@tonic-gate
897c478bd9Sstevel@tonic-gatec2secure:
907c478bd9Sstevel@tonic-gate	-@if [ -f $(PWDIR)/security/passwd.adjunct ]; then \
917c478bd9Sstevel@tonic-gate		if [ ! $(NOPUSH) ]; then $(MAKE)  $(MFLAGS) -k \
927c478bd9Sstevel@tonic-gate		passwd.adjunct.time group.adjunct.time; \
937c478bd9Sstevel@tonic-gate		else $(MAKE) $(MFLAGS) -k NOPUSH=$(NOPUSH) \
947c478bd9Sstevel@tonic-gate		passwd.adjunct.time group.adjunct.time; \
957c478bd9Sstevel@tonic-gate		fi; \
967c478bd9Sstevel@tonic-gate	fi
977c478bd9Sstevel@tonic-gate
987c478bd9Sstevel@tonic-gatepasswd.time: $(PWDIR)/passwd $(PWDIR)/shadow
997c478bd9Sstevel@tonic-gate	-@if [ -f $(PWDIR)/security/passwd.adjunct ]; then \
1007c478bd9Sstevel@tonic-gate		(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; \
1017c478bd9Sstevel@tonic-gate		(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; \
1027c478bd9Sstevel@tonic-gate	elif [ -f $(PWDIR)/shadow ]; then \
1037c478bd9Sstevel@tonic-gate		(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; \
1047c478bd9Sstevel@tonic-gate		(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; \
1057c478bd9Sstevel@tonic-gate	else \
1067c478bd9Sstevel@tonic-gate		(awk 'BEGIN { FS=":"; OFS="\t"; } /^[a-zA-Z0-9_]/ { print $$1, $$0 }' $(PWDIR)/passwd  $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/passwd.byname; \
1077c478bd9Sstevel@tonic-gate		(awk 'BEGIN { FS=":"; OFS="\t"; } /^[a-zA-Z0-9_]/ { printf("%-10d ", $$3); print $$0 }' $(PWDIR)/passwd $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/passwd.byuid; \
1087c478bd9Sstevel@tonic-gate	fi
1097c478bd9Sstevel@tonic-gate	@touch passwd.time;
1107c478bd9Sstevel@tonic-gate	@echo "updated passwd";
1117c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) passwd.byname; fi
1127c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) passwd.byuid; fi
1137c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed passwd"; fi
1147c478bd9Sstevel@tonic-gate
1157c478bd9Sstevel@tonic-gategroup.time: $(DIR)/group
1167c478bd9Sstevel@tonic-gate	@(awk 'BEGIN { FS=":"; OFS="\t"; } /^[a-zA-Z0-9_]/ { print $$1, $$0 }' $(DIR)/group $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/group.byname;
1177c478bd9Sstevel@tonic-gate	@(awk 'BEGIN { FS=":"; OFS="\t"; } /^[a-zA-Z0-9_]/ { printf("%-10d ", $$3); print $$0 }' $(DIR)/group $(CHKPIPE)) | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/group.bygid;
1187c478bd9Sstevel@tonic-gate	@touch group.time;
1197c478bd9Sstevel@tonic-gate	@echo "updated group";
1207c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) group.byname; fi
1217c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) group.bygid; fi
1227c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed group"; fi
1237c478bd9Sstevel@tonic-gate
1247c478bd9Sstevel@tonic-gateproject.time: $(DIR)/project
1257c478bd9Sstevel@tonic-gate	@(awk 'BEGIN { FS=":"; OFS="\t"; } /^[a-zA-Z0-9_]/ { print $$1, $$0 }' $(DIR)/project $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/project.byname;
1267c478bd9Sstevel@tonic-gate	@(awk 'BEGIN { FS=":"; OFS="\t"; } /^[a-zA-Z0-9_]/ { printf("%-10d ", $$2); print $$0 }' $(DIR)/project $(CHKPIPE)) | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/project.byprojid;
1277c478bd9Sstevel@tonic-gate	@touch project.time;
1287c478bd9Sstevel@tonic-gate	@echo "updated project";
1297c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) project.byname; fi
1307c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) project.byprojid; fi
1317c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed project"; fi
1327c478bd9Sstevel@tonic-gate
1337c478bd9Sstevel@tonic-gateipnodes.time: $(INETDIR)/ipnodes
1347c478bd9Sstevel@tonic-gate	@($(MULTI) -n $(B) -l $(INETDIR)/ipnodes);
1357c478bd9Sstevel@tonic-gate	@($(STDHOSTS) -wn $(INETDIR)/ipnodes $(CHKPIPE))| \
1367c478bd9Sstevel@tonic-gate	(awk 'BEGIN { OFS="\t"; } $$1 !~ /^#/ { print $$1, $$0 }' $(CHKPIPE)) | \
1377c478bd9Sstevel@tonic-gate	$(MAKEDBM) $(B) - $(YPDBDIR)/$(DOM)/ipnodes.byaddr;
1387c478bd9Sstevel@tonic-gate	@touch ipnodes.time;
1397c478bd9Sstevel@tonic-gate	@echo "updated ipnodes";
1407c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) ipnodes.byname; fi
1417c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) ipnodes.byaddr; fi
1427c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed ipnodes"; fi
1437c478bd9Sstevel@tonic-gate
1447c478bd9Sstevel@tonic-gatehosts.time: $(DIR)/hosts
1457c478bd9Sstevel@tonic-gate	@($(MULTI) $(B) -l $(DIR)/hosts);
1467c478bd9Sstevel@tonic-gate	@($(STDHOSTS) -w $(DIR)/hosts $(CHKPIPE))| \
1477c478bd9Sstevel@tonic-gate	(awk 'BEGIN { OFS="\t"; } $$1 !~ /^#/ { print $$1, $$0 }' $(CHKPIPE)) | \
1487c478bd9Sstevel@tonic-gate	$(MAKEDBM) $(B) - $(YPDBDIR)/$(DOM)/hosts.byaddr;
1497c478bd9Sstevel@tonic-gate	@touch hosts.time;
1507c478bd9Sstevel@tonic-gate	@echo "updated hosts";
1517c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) hosts.byname; fi
1527c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) hosts.byaddr; fi
1537c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed hosts"; fi
1547c478bd9Sstevel@tonic-gate
1557c478bd9Sstevel@tonic-gateethers.time: $(DIR)/ethers
1567c478bd9Sstevel@tonic-gate	@($(STDETHERS) $(DIR)/ethers $(CHKPIPE)) \
1577c478bd9Sstevel@tonic-gate	|(awk '{print $$1, $$0; for (i = 3;i <= NF;i++) print $$i,$$0}' $(CHKPIPE)) \
1587c478bd9Sstevel@tonic-gate	| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/ethers.byaddr
1597c478bd9Sstevel@tonic-gate
1607c478bd9Sstevel@tonic-gate	@(awk 'BEGIN { OFS="\t"; } $$1 !~ /^#/ { print $$2, $$0 }' \
1617c478bd9Sstevel@tonic-gate	   $(DIR)/ethers $(CHKPIPE)) | \
1627c478bd9Sstevel@tonic-gate	$(MAKEDBM) - $(YPDBDIR)/$(DOM)/ethers.byname;
1637c478bd9Sstevel@tonic-gate	@touch ethers.time;
1647c478bd9Sstevel@tonic-gate	@echo "updated ethers";
1657c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) ethers.byname; fi
1667c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) ethers.byaddr; fi
1677c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed ethers"; fi
1687c478bd9Sstevel@tonic-gate
1697c478bd9Sstevel@tonic-gatenetworks.time: $(DIR)/networks
1707c478bd9Sstevel@tonic-gate	@(sed -e "/^#/d" -e s/#.*$$// $(DIR)/networks $(CHKPIPE)) |( awk \
1717c478bd9Sstevel@tonic-gate	    '{print $$1, $$0; for (i = 3;i <= NF;i++) print $$i,$$0}' \
1727c478bd9Sstevel@tonic-gate	    $(CHKPIPE) )| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/networks.byname;
1737c478bd9Sstevel@tonic-gate	@(awk 'BEGIN { OFS="\t"; } $$1 !~ /^#/ { print $$2, $$0 }' \
1747c478bd9Sstevel@tonic-gate	   $(DIR)/networks $(CHKPIPE)) | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/networks.byaddr;
1757c478bd9Sstevel@tonic-gate	@touch networks.time;
1767c478bd9Sstevel@tonic-gate	@echo "updated networks";
1777c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) networks.byname; fi
1787c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) networks.byaddr; fi
1797c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed networks"; fi
1807c478bd9Sstevel@tonic-gate
1817c478bd9Sstevel@tonic-gateservices.time: $(DIR)/services
1827c478bd9Sstevel@tonic-gate	@(awk 'BEGIN { OFS="\t"; } $$1 !~ /^#/ { print $$2, $$0 }' \
1837c478bd9Sstevel@tonic-gate	    $(DIR)/services $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/services.byname;
1847c478bd9Sstevel@tonic-gate	@(awk 'BEGIN { OFS="\t"; } \
1857c478bd9Sstevel@tonic-gate	$$1 !~ /^#/ { split($$2,pp,"/"); printf("%s/%s %s\n", $$1, pp[2], $$0);\
1867c478bd9Sstevel@tonic-gate		if (seen[$$1] == "") {\
1877c478bd9Sstevel@tonic-gate			printf("%s %s\n", $$1, $$0); seen[$$1]=$$1;} \
1887c478bd9Sstevel@tonic-gate		for (i = 3; i <= NF && $$i !~ /^#/; i++) {\
1897c478bd9Sstevel@tonic-gate			if (seen[$$i] == "") {\
1907c478bd9Sstevel@tonic-gate				printf("%s %s\n", $$i, $$0); seen[$$i]=$$i;} \
1917c478bd9Sstevel@tonic-gate			printf("%s/%s %s\n", $$i, pp[2], $$0)}}' \
1927c478bd9Sstevel@tonic-gate		$(DIR)/services $(CHKPIPE)) | \
1937c478bd9Sstevel@tonic-gate	$(MAKEDBM) $(B) - $(YPDBDIR)/$(DOM)/services.byservicename
1947c478bd9Sstevel@tonic-gate
1957c478bd9Sstevel@tonic-gate	@touch services.time;
1967c478bd9Sstevel@tonic-gate	@echo "updated services";
1977c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) services.byname; fi
1987c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) services.byservicename; fi
1997c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed services"; fi
2007c478bd9Sstevel@tonic-gate
2017c478bd9Sstevel@tonic-gaterpc.time: $(DIR)/rpc
2027c478bd9Sstevel@tonic-gate	@(awk 'BEGIN { OFS="\t"; } $$1 !~ /^#/ { print $$2, $$0 }' \
2037c478bd9Sstevel@tonic-gate	    $(DIR)/rpc $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/rpc.bynumber;
2047c478bd9Sstevel@tonic-gate	@touch rpc.time;
2057c478bd9Sstevel@tonic-gate	@echo "updated rpc";
2067c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) rpc.bynumber; fi
2077c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed rpc"; fi
2087c478bd9Sstevel@tonic-gate
2097c478bd9Sstevel@tonic-gateprotocols.time: $(DIR)/protocols
2107c478bd9Sstevel@tonic-gate	@(awk 'BEGIN { OFS="\t"; } $$1 !~ /^#/ { print $$2, $$0 }' \
2117c478bd9Sstevel@tonic-gate	    $(DIR)/protocols $(CHKPIPE)) | $(MAKEDBM) - \
2127c478bd9Sstevel@tonic-gate	    $(YPDBDIR)/$(DOM)/protocols.bynumber;
2137c478bd9Sstevel@tonic-gate
2147c478bd9Sstevel@tonic-gate	@(sed -e "/^#/d" -e s/#.*$$// $(DIR)/protocols $(CHKPIPE)) |( awk \
2157c478bd9Sstevel@tonic-gate	    '{print $$1,$$0; for (i = 3;i <= NF;i++) print $$i, $$0}' \
2167c478bd9Sstevel@tonic-gate	    $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/protocols.byname;
2177c478bd9Sstevel@tonic-gate
2187c478bd9Sstevel@tonic-gate	@touch protocols.time;
2197c478bd9Sstevel@tonic-gate	@echo "updated protocols";
2207c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) protocols.byname; fi
2217c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) protocols.bynumber; fi
2227c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed protocols"; fi
2237c478bd9Sstevel@tonic-gate
2247c478bd9Sstevel@tonic-gatenetgroup.time: $(DIR)/netgroup
2257c478bd9Sstevel@tonic-gate	@$(MAKEDBM) $(DIR)/netgroup $(YPDBDIR)/$(DOM)/netgroup
2267c478bd9Sstevel@tonic-gate	@($(REVNETGROUP) < $(DIR)/netgroup -u $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/netgroup.byuser
2277c478bd9Sstevel@tonic-gate	@($(REVNETGROUP) < $(DIR)/netgroup -h $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/netgroup.byhost
2287c478bd9Sstevel@tonic-gate	@touch netgroup.time;
2297c478bd9Sstevel@tonic-gate	@echo "updated netgroup";
2307c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) netgroup; fi
2317c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) netgroup.byuser; fi
2327c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) netgroup.byhost; fi
2337c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed netgroup"; fi
2347c478bd9Sstevel@tonic-gate
2357c478bd9Sstevel@tonic-gatebootparams.time: $(DIR)/bootparams
2367c478bd9Sstevel@tonic-gate	@(sed -e '/^#/d' -e s/#.*$$// -e 's/[	 ][	 ]*$$//' \
2377c478bd9Sstevel@tonic-gate	    -e '/\\$$/s/\\$$/ /' $(DIR)/bootparams $(CHKPIPE))\
2387c478bd9Sstevel@tonic-gate	|( awk '/ $$/ {printf "%s", $$0} !/ $$/ {print}' $(CHKPIPE))\
2397c478bd9Sstevel@tonic-gate	|( sed -e 's/[	 ][	 ]*/ /g' $(CHKPIPE))\
2407c478bd9Sstevel@tonic-gate	| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/bootparams;
2417c478bd9Sstevel@tonic-gate	@touch bootparams.time;
2427c478bd9Sstevel@tonic-gate	@echo "updated bootparams";
2437c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) bootparams; fi
2447c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed bootparams"; fi
2457c478bd9Sstevel@tonic-gate
2467c478bd9Sstevel@tonic-gatealiases.time: $(ALIASES)
2477c478bd9Sstevel@tonic-gate	@cp $(ALIASES) $(YPDBDIR)/$(DOM)/mail.aliases;
2487c478bd9Sstevel@tonic-gate	@/usr/lib/sendmail -bi -oA$(YPDBDIR)/$(DOM)/mail.aliases;
2497c478bd9Sstevel@tonic-gate	$(MKALIAS) $(YPDBDIR)/$(DOM)/mail.aliases $(YPDBDIR)/$(DOM)/mail.byaddr;
2507c478bd9Sstevel@tonic-gate	@rm $(YPDBDIR)/$(DOM)/mail.aliases;
2517c478bd9Sstevel@tonic-gate	@touch aliases.time;
2527c478bd9Sstevel@tonic-gate	@echo "updated aliases";
2537c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) mail.aliases; fi
2547c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) mail.byaddr; fi
2557c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed aliases"; fi
2567c478bd9Sstevel@tonic-gate
2577c478bd9Sstevel@tonic-gatenetmasks.time: $(DIR)/netmasks
2587c478bd9Sstevel@tonic-gate	$(MAKEDBM) $(DIR)/netmasks $(YPDBDIR)/$(DOM)/netmasks.byaddr;
2597c478bd9Sstevel@tonic-gate	@touch netmasks.time;
2607c478bd9Sstevel@tonic-gate	@echo "updated netmasks";
2617c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) netmasks.byaddr; fi
2627c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed netmasks"; fi
2637c478bd9Sstevel@tonic-gate
2647c478bd9Sstevel@tonic-gate
2657c478bd9Sstevel@tonic-gatepublickey.time: $(DIR)/publickey
2667c478bd9Sstevel@tonic-gate	@(sed "/^#/d" < $(DIR)/publickey $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/publickey.byname;
2677c478bd9Sstevel@tonic-gate	@touch publickey.time;
2687c478bd9Sstevel@tonic-gate	@echo "updated publickey";
2697c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) publickey.byname; fi
2707c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed publickey"; fi
2717c478bd9Sstevel@tonic-gate
2727c478bd9Sstevel@tonic-gatenetid.time: $(PWDIR)/passwd $(DIR)/group $(DIR)/hosts $(DIR)/netid
2737c478bd9Sstevel@tonic-gate	@$(MKNETID) -q -p $(PWDIR)/passwd -g $(DIR)/group -h $(DIR)/hosts -m $(DIR)/netid > .ypjunk;
2747c478bd9Sstevel@tonic-gate	@$(MAKEDBM) .ypjunk $(YPDBDIR)/$(DOM)/netid.byname;
2757c478bd9Sstevel@tonic-gate	@rm -f .ypjunk;
2767c478bd9Sstevel@tonic-gate	@touch netid.time;
2777c478bd9Sstevel@tonic-gate	@echo "updated netid";
2787c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) netid.byname; fi
2797c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed netid"; fi
2807c478bd9Sstevel@tonic-gate
2817c478bd9Sstevel@tonic-gate# Old way.  Could be restored by PSARC decision.
2827c478bd9Sstevel@tonic-gate#
2837c478bd9Sstevel@tonic-gate#passwd.adjunct.time: $(PWDIR)/security/passwd.adjunct
2847c478bd9Sstevel@tonic-gate#	@(awk 'BEGIN { FS=":"; OFS="\t"; } /^[a-zA-Z0-9_]/ { print $$1, $$0 }' $(PWDIR)/security/passwd.adjunct $(CHKPIPE)) | \
2857c478bd9Sstevel@tonic-gate#		$(MAKEDBM) -s - $(YPDBDIR)/$(DOM)/passwd.adjunct.byname;
2867c478bd9Sstevel@tonic-gate#	@chmod 600 $(YPDBDIR)/$(DOM)/passwd.adjunct.byname.dir;
2877c478bd9Sstevel@tonic-gate#	@chmod 600 $(YPDBDIR)/$(DOM)/passwd.adjunct.byname.pag;
2887c478bd9Sstevel@tonic-gate#	@touch passwd.adjunct.time
2897c478bd9Sstevel@tonic-gate#	@echo "updated passwd.adjunct";
2907c478bd9Sstevel@tonic-gate#	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) passwd.adjunct.byname; fi
2917c478bd9Sstevel@tonic-gate#	@if [ ! $(NOPUSH) ]; then echo "pushed passwd.adjunct"; fi
2927c478bd9Sstevel@tonic-gate
2937c478bd9Sstevel@tonic-gatepasswd.adjunct.time: $(PWDIR)/security/passwd.adjunct $(PWDIR)/shadow
2947c478bd9Sstevel@tonic-gate	-@if [ -f $(PWDIR)/shadow ]; then \
2957c478bd9Sstevel@tonic-gate		(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; \
2967c478bd9Sstevel@tonic-gate	else \
2977c478bd9Sstevel@tonic-gate		(awk 'BEGIN { FS=":"; OFS="\t"; } /^[a-zA-Z0-9_]/ { print $$1, $$0 }' $(PWDIR)/security/passwd.adjunct $(CHKPIPE)) | \
2987c478bd9Sstevel@tonic-gate		$(MAKEDBM) -s - $(YPDBDIR)/$(DOM)/passwd.adjunct.byname; \
2997c478bd9Sstevel@tonic-gate	fi
3007c478bd9Sstevel@tonic-gate	@chmod 600 $(YPDBDIR)/$(DOM)/passwd.adjunct.byname.dir;
3017c478bd9Sstevel@tonic-gate	@chmod 600 $(YPDBDIR)/$(DOM)/passwd.adjunct.byname.pag;
3027c478bd9Sstevel@tonic-gate	@touch passwd.adjunct.time
3037c478bd9Sstevel@tonic-gate	@echo "updated passwd.adjunct";
3047c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) passwd.adjunct.byname; fi
3057c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed passwd.adjunct"; fi
3067c478bd9Sstevel@tonic-gate
3077c478bd9Sstevel@tonic-gategroup.adjunct.time: $(PWDIR)/security/group.adjunct
3087c478bd9Sstevel@tonic-gate	@(awk 'BEGIN { FS=":"; OFS="\t"; } /^[a-zA-Z0-9_]/ { print $$1, $$0 }' $(PWDIR)/security/group.adjunct $(CHKPIPE)) | \
3097c478bd9Sstevel@tonic-gate	$(MAKEDBM) -s - $(YPDBDIR)/$(DOM)/group.adjunct.byname;
3107c478bd9Sstevel@tonic-gate	@chmod 600 $(YPDBDIR)/$(DOM)/group.adjunct.byname.dir;
3117c478bd9Sstevel@tonic-gate	@chmod 600 $(YPDBDIR)/$(DOM)/group.adjunct.byname.pag;
3127c478bd9Sstevel@tonic-gate	@touch group.adjunct.time
3137c478bd9Sstevel@tonic-gate	@echo "updated group.adjunct";
3147c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) group.adjunct.byname; fi
3157c478bd9Sstevel@tonic-gate	@if [ ! $(NOPUSH) ]; then echo "pushed group.adjunct"; fi
3167c478bd9Sstevel@tonic-gate
3177c478bd9Sstevel@tonic-gatetimezone.time:  $(DIR)/timezone
3187c478bd9Sstevel@tonic-gate	-@if [ -f $(DIR)/timezone ]; then \
3197c478bd9Sstevel@tonic-gate		sed -e "/^#/d" -e s/#.*$$// $(DIR)/timezone \
3207c478bd9Sstevel@tonic-gate		| awk '{for (i = 2; i<=NF; i++) print $$i, $$0}' \
3217c478bd9Sstevel@tonic-gate		| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/timezone.byname; \
3227c478bd9Sstevel@tonic-gate		touch timezone.time; \
3237c478bd9Sstevel@tonic-gate		echo "updated timezone"; \
3247c478bd9Sstevel@tonic-gate		if [ ! $(NOPUSH) ]; then \
3257c478bd9Sstevel@tonic-gate			$(YPPUSH) timezone.byname; \
3267c478bd9Sstevel@tonic-gate			echo "pushed timezone"; \
3277c478bd9Sstevel@tonic-gate		else \
3287c478bd9Sstevel@tonic-gate		: ; \
3297c478bd9Sstevel@tonic-gate		fi \
3307c478bd9Sstevel@tonic-gate	else \
3317c478bd9Sstevel@tonic-gate		echo "couldn't find $(DIR)/timezone"; \
3327c478bd9Sstevel@tonic-gate	fi
3337c478bd9Sstevel@tonic-gate
3347c478bd9Sstevel@tonic-gateauto.master.time:  $(DIR)/auto_master
3357c478bd9Sstevel@tonic-gate	-@if [ -f $(DIR)/auto_master ]; then \
3367c478bd9Sstevel@tonic-gate		sed -e "/^#/d" -e s/#.*$$// $(DIR)/auto_master \
3377c478bd9Sstevel@tonic-gate		| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/auto.master; \
3387c478bd9Sstevel@tonic-gate		touch auto.master.time; \
3397c478bd9Sstevel@tonic-gate		echo "updated auto.master"; \
3407c478bd9Sstevel@tonic-gate		if [ ! $(NOPUSH) ]; then \
3417c478bd9Sstevel@tonic-gate			$(YPPUSH) auto.master; \
3427c478bd9Sstevel@tonic-gate			echo "pushed auto.master"; \
3437c478bd9Sstevel@tonic-gate		else \
3447c478bd9Sstevel@tonic-gate		: ; \
3457c478bd9Sstevel@tonic-gate		fi \
3467c478bd9Sstevel@tonic-gate	else \
3477c478bd9Sstevel@tonic-gate		echo "couldn't find $(DIR)/auto_master"; \
3487c478bd9Sstevel@tonic-gate	fi
3497c478bd9Sstevel@tonic-gate
3507c478bd9Sstevel@tonic-gateauto.home.time:  $(DIR)/auto_home
3517c478bd9Sstevel@tonic-gate	-@if [ -f $(DIR)/auto_home ]; then \
3527c478bd9Sstevel@tonic-gate		sed -e "/^#/d" -e s/#.*$$// $(DIR)/auto_home \
3537c478bd9Sstevel@tonic-gate		| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/auto.home; \
3547c478bd9Sstevel@tonic-gate		touch auto.home.time; \
3557c478bd9Sstevel@tonic-gate		echo "updated auto.home"; \
3567c478bd9Sstevel@tonic-gate		if [ ! $(NOPUSH) ]; then \
3577c478bd9Sstevel@tonic-gate			$(YPPUSH) auto.home; \
3587c478bd9Sstevel@tonic-gate			echo "pushed auto.home"; \
3597c478bd9Sstevel@tonic-gate		else \
3607c478bd9Sstevel@tonic-gate		: ; \
3617c478bd9Sstevel@tonic-gate		fi \
3627c478bd9Sstevel@tonic-gate	else \
3637c478bd9Sstevel@tonic-gate		echo "couldn't find $(DIR)/auto_home"; \
3647c478bd9Sstevel@tonic-gate	fi
3657c478bd9Sstevel@tonic-gate
3667c478bd9Sstevel@tonic-gate
3677c478bd9Sstevel@tonic-gateauth.attr.time:  $(RBACDIR)/auth_attr
3687c478bd9Sstevel@tonic-gate	-@if [ -f $(RBACDIR)/auth_attr ]; then \
3697c478bd9Sstevel@tonic-gate		sed -e "/^#/d" -e s/#.*$$// $(RBACDIR)/auth_attr \
3707c478bd9Sstevel@tonic-gate		|sed -e '/\\$$/{:l' -e 'N;s/\\\n//;t h' -e ':h' \
3717c478bd9Sstevel@tonic-gate		-e 's/\\$$/\\/;t l' -e } \
3727c478bd9Sstevel@tonic-gate		| (nawk 'BEGIN { FS=":"; OFS=":" } /^[a-zA-Z0-9_]/ \
3737c478bd9Sstevel@tonic-gate		{printf "%s:%s\n", $$1, $$0 }' $(CHKPIPE)) \
3747c478bd9Sstevel@tonic-gate		| $(MAKEDBM) -S ":" -E - $(YPDBDIR)/$(DOM)/auth_attr; \
3757c478bd9Sstevel@tonic-gate		touch auth.attr.time; \
3767c478bd9Sstevel@tonic-gate		echo "updated auth_attr"; \
3777c478bd9Sstevel@tonic-gate		if [ ! $(NOPUSH) ]; then \
3787c478bd9Sstevel@tonic-gate			$(YPPUSH) auth_attr; \
3797c478bd9Sstevel@tonic-gate			echo "pushed auth_attr"; \
3807c478bd9Sstevel@tonic-gate		else \
3817c478bd9Sstevel@tonic-gate		: ; \
3827c478bd9Sstevel@tonic-gate		fi \
3837c478bd9Sstevel@tonic-gate	else \
3847c478bd9Sstevel@tonic-gate		echo "couldn't find $(RBACDIR)/auth_attr"; \
3857c478bd9Sstevel@tonic-gate	fi
3867c478bd9Sstevel@tonic-gate
3877c478bd9Sstevel@tonic-gateexec.attr.time:  $(RBACDIR)/exec_attr
3887c478bd9Sstevel@tonic-gate	-@if [ -f $(RBACDIR)/exec_attr ]; then \
3897c478bd9Sstevel@tonic-gate		sed -e "/^#/d" -e s/#.*$$// $(RBACDIR)/exec_attr \
3907c478bd9Sstevel@tonic-gate		|sed -e '/\\$$/{:l' -e 'N;s/\\\n//;t h' -e ':h' \
3917c478bd9Sstevel@tonic-gate		-e 's/\\$$/\\/;t l' -e } \
3927c478bd9Sstevel@tonic-gate		| (nawk 'BEGIN { FS=":"; OFS=":" } /^[a-zA-Z0-9_]/ \
3937c478bd9Sstevel@tonic-gate		{printf "%s:%s:%s:%s\n", $$1, $$2, $$6, $$0 }' $(CHKPIPE)) \
3947c478bd9Sstevel@tonic-gate		| $(MAKEDBM) -S ":" -E -D 2 - $(YPDBDIR)/$(DOM)/exec_attr; \
3957c478bd9Sstevel@tonic-gate		touch exec.attr.time; \
3967c478bd9Sstevel@tonic-gate		echo "updated exec_attr"; \
3977c478bd9Sstevel@tonic-gate		if [ ! $(NOPUSH) ]; then \
3987c478bd9Sstevel@tonic-gate			$(YPPUSH) exec_attr; \
3997c478bd9Sstevel@tonic-gate			echo "pushed exec_attr"; \
4007c478bd9Sstevel@tonic-gate		else \
4017c478bd9Sstevel@tonic-gate		: ; \
4027c478bd9Sstevel@tonic-gate		fi \
4037c478bd9Sstevel@tonic-gate	else \
4047c478bd9Sstevel@tonic-gate		echo "couldn't find $(RBACDIR)/exec_attr"; \
4057c478bd9Sstevel@tonic-gate	fi
4067c478bd9Sstevel@tonic-gate
4077c478bd9Sstevel@tonic-gateprof.attr.time:  $(RBACDIR)/prof_attr
4087c478bd9Sstevel@tonic-gate	-@if [ -f $(RBACDIR)/prof_attr ]; then \
4097c478bd9Sstevel@tonic-gate		sed -e "/^#/d" -e s/#.*$$// $(RBACDIR)/prof_attr \
4107c478bd9Sstevel@tonic-gate		|sed -e '/\\$$/{:l' -e 'N;s/\\\n//;t h' -e ':h' \
4117c478bd9Sstevel@tonic-gate		-e 's/\\$$/\\/;t l' -e } \
4127c478bd9Sstevel@tonic-gate		| (nawk 'BEGIN { FS=":"; OFS=":" } /^[a-zA-Z0-9_]/ \
4137c478bd9Sstevel@tonic-gate		{printf "%s:%s\n", $$1, $$0 }' $(CHKPIPE)) \
4147c478bd9Sstevel@tonic-gate		| $(MAKEDBM) -S ":" -E - $(YPDBDIR)/$(DOM)/prof_attr; \
4157c478bd9Sstevel@tonic-gate		touch prof.attr.time; \
4167c478bd9Sstevel@tonic-gate		echo "updated prof_attr"; \
4177c478bd9Sstevel@tonic-gate		if [ ! $(NOPUSH) ]; then \
4187c478bd9Sstevel@tonic-gate			$(YPPUSH) prof_attr; \
4197c478bd9Sstevel@tonic-gate			echo "pushed prof_attr"; \
4207c478bd9Sstevel@tonic-gate		else \
4217c478bd9Sstevel@tonic-gate		: ; \
4227c478bd9Sstevel@tonic-gate		fi \
4237c478bd9Sstevel@tonic-gate	else \
4247c478bd9Sstevel@tonic-gate		echo "couldn't find $(RBACDIR)/prof_attr"; \
4257c478bd9Sstevel@tonic-gate	fi
4267c478bd9Sstevel@tonic-gate
4277c478bd9Sstevel@tonic-gateuser.attr.time:  $(DIR)/user_attr
4287c478bd9Sstevel@tonic-gate	-@if [ -f $(DIR)/user_attr ]; then \
4297c478bd9Sstevel@tonic-gate		sed -e "/^#/d" -e s/#.*$$// $(DIR)/user_attr \
4307c478bd9Sstevel@tonic-gate		|sed -e '/\\$$/{:l' -e 'N;s/\\\n//;t h' -e ':h' \
4317c478bd9Sstevel@tonic-gate		-e 's/\\$$/\\/;t l' -e } \
4327c478bd9Sstevel@tonic-gate		| (nawk 'BEGIN { FS=":"; OFS=":" } /^[a-zA-Z0-9_]/ \
4337c478bd9Sstevel@tonic-gate		{printf "%s:%s\n", $$1, $$0 }' $(CHKPIPE)) \
4347c478bd9Sstevel@tonic-gate		| $(MAKEDBM) -S ":" -E - $(YPDBDIR)/$(DOM)/user_attr; \
4357c478bd9Sstevel@tonic-gate		touch user.attr.time; \
4367c478bd9Sstevel@tonic-gate		echo "updated user_attr"; \
4377c478bd9Sstevel@tonic-gate		if [ ! $(NOPUSH) ]; then \
4387c478bd9Sstevel@tonic-gate			$(YPPUSH) user_attr; \
4397c478bd9Sstevel@tonic-gate			echo "pushed user_attr"; \
4407c478bd9Sstevel@tonic-gate		else \
4417c478bd9Sstevel@tonic-gate		: ; \
4427c478bd9Sstevel@tonic-gate		fi \
4437c478bd9Sstevel@tonic-gate	else \
4447c478bd9Sstevel@tonic-gate		echo "couldn't find $(DIR)/user_attr"; \
4457c478bd9Sstevel@tonic-gate	fi
4467c478bd9Sstevel@tonic-gate
4477c478bd9Sstevel@tonic-gateaudit.user.time:  $(RBACDIR)/audit_user
4487c478bd9Sstevel@tonic-gate	-@if [ -f $(RBACDIR)/audit_user ]; then \
4497c478bd9Sstevel@tonic-gate		sed -e "/^#/d" -e s/#.*$$// $(RBACDIR)/audit_user \
4507c478bd9Sstevel@tonic-gate		|sed -e '/\\$$/{:l' -e 'N;s/\\\n//;t h' -e ':h' \
4517c478bd9Sstevel@tonic-gate		-e 's/\\$$/\\/;t l' -e } \
4527c478bd9Sstevel@tonic-gate		| (nawk 'BEGIN { FS=":"; OFS="\t" } /^[a-zA-Z0-9_]/ \
4537c478bd9Sstevel@tonic-gate		{print $$1, $$0 }' $(CHKPIPE)) \
454*bcd524b5Sgww		| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/audit_user; \
4557c478bd9Sstevel@tonic-gate		touch audit.user.time; \
4567c478bd9Sstevel@tonic-gate		echo "updated audit_user"; \
4577c478bd9Sstevel@tonic-gate		if [ ! $(NOPUSH) ]; then \
4587c478bd9Sstevel@tonic-gate			$(YPPUSH) audit_user; \
4597c478bd9Sstevel@tonic-gate			echo "pushed audit_user"; \
4607c478bd9Sstevel@tonic-gate		else \
4617c478bd9Sstevel@tonic-gate		: ; \
4627c478bd9Sstevel@tonic-gate		fi \
4637c478bd9Sstevel@tonic-gate	else \
4647c478bd9Sstevel@tonic-gate		echo "couldn't find $(RBACDIR)/audit_user"; \
4657c478bd9Sstevel@tonic-gate	fi
4667c478bd9Sstevel@tonic-gate
4677c478bd9Sstevel@tonic-gateageing.time:  $(PWDIR)/shadow
4687c478bd9Sstevel@tonic-gate	-@if [ -f $(PWDIR)/shadow ]; then \
4697c478bd9Sstevel@tonic-gate		(awk 'BEGIN {FS=":"; OFS=":"} $$1 !~ /^#/ {printf "%s\t%s:%s:%s:%s:%s:%s:%s:%s\n", $$1,$$1,$$3,$$4,$$5,$$6,$$7,$$8,$$9}' $(PWDIR)/shadow) | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/ageing.byname; \
4707c478bd9Sstevel@tonic-gate		touch ageing.time; \
4717c478bd9Sstevel@tonic-gate		echo "updated ageing"; \
4727c478bd9Sstevel@tonic-gate	else \
4737c478bd9Sstevel@tonic-gate		echo "couldn't find $(PWDIR)/shadow"; \
4747c478bd9Sstevel@tonic-gate	fi
4757c478bd9Sstevel@tonic-gate
4767c478bd9Sstevel@tonic-gate
4777c478bd9Sstevel@tonic-gate
4787c478bd9Sstevel@tonic-gatepasswd: passwd.time
4797c478bd9Sstevel@tonic-gategroup: group.time
4807c478bd9Sstevel@tonic-gateproject: project.time
4817c478bd9Sstevel@tonic-gatehosts: hosts.time
4827c478bd9Sstevel@tonic-gateipnodes: ipnodes.time
4837c478bd9Sstevel@tonic-gateethers: ethers.time
4847c478bd9Sstevel@tonic-gatenetworks: networks.time
4857c478bd9Sstevel@tonic-gaterpc: rpc.time
4867c478bd9Sstevel@tonic-gateservices: services.time
4877c478bd9Sstevel@tonic-gateprotocols: protocols.time
4887c478bd9Sstevel@tonic-gatenetgroup: netgroup.time
4897c478bd9Sstevel@tonic-gatebootparams: bootparams.time
4907c478bd9Sstevel@tonic-gatealiases: aliases.time
4917c478bd9Sstevel@tonic-gatepublickey: publickey.time
4927c478bd9Sstevel@tonic-gatenetid: netid.time
4937c478bd9Sstevel@tonic-gatepasswd.adjunct: passwd.adjunct.time
4947c478bd9Sstevel@tonic-gategroup.adjunct: group.adjunct.time
4957c478bd9Sstevel@tonic-gatenetmasks: netmasks.time
4967c478bd9Sstevel@tonic-gatetimezone: timezone.time
4977c478bd9Sstevel@tonic-gateauto.master: auto.master.time
4987c478bd9Sstevel@tonic-gateauto.home: auto.home.time
4997c478bd9Sstevel@tonic-gateauth.attr:auth.attr.time
5007c478bd9Sstevel@tonic-gateexec.attr:exec.attr.time
5017c478bd9Sstevel@tonic-gateprof.attr:prof.attr.time
5027c478bd9Sstevel@tonic-gateuser.attr:user.attr.time
5037c478bd9Sstevel@tonic-gateaudit.user:audit.user.time
5047c478bd9Sstevel@tonic-gate$(DIR)/netid:
5057c478bd9Sstevel@tonic-gate$(DIR)/timezone:
5067c478bd9Sstevel@tonic-gate$(DIR)/auto_master:
5077c478bd9Sstevel@tonic-gate$(DIR)/auto_home:
5087c478bd9Sstevel@tonic-gate$(PWDIR)/shadow:
5097c478bd9Sstevel@tonic-gate$(DIR)/auth_attr:
5107c478bd9Sstevel@tonic-gate$(DIR)/exec_attr:
5117c478bd9Sstevel@tonic-gate$(DIR)/prof_attr:
5127c478bd9Sstevel@tonic-gate$(DIR)/user_attr:
5137c478bd9Sstevel@tonic-gate$(DIR)/audit_user:
5147c478bd9Sstevel@tonic-gateageing: ageing.time
515