1 --- ypserv-4.1/scripts/ypMakefile.in.orig 2019-03-12 15:50:51.000000000 +0100
2 +++ ypserv-4.1/scripts/ypMakefile.in 2020-08-23 18:20:41.080314280 +0200
5 # Should we merge the passwd file with the shadow file ?
6 # MERGE_PASSWD=true|false
10 # Should we merge the group file with the gshadow file ?
11 # MERGE_GROUP=true|false
15 # These are commands which this Makefile needs to properly rebuild the
16 # NIS databases. Don't change these unless you have a good reason.
18 TIMEZONE = $(YPSRCDIR)/timezone
19 LOCALE = $(YPSRCDIR)/locale
20 NETMASKS = $(YPSRCDIR)/netmasks
21 +OLDPASSWD = $(YPSRCDIR)/security/opasswd
22 AUTO_MAPS = auto.master auto.home auto.local
24 YPSERVERS = $(YPDIR)/ypservers # List of all NIS slave servers
26 # them out from this list.
28 all: passwd group hosts rpc services netid protocols netgrp mail \
29 - shadow publickey # networks ethers bootparams printcap \
30 + shadow opasswd # publickey networks ethers bootparams printcap \
31 # amd.home autofs passwd.adjunct \
32 # timezone locale netmasks
35 timezone: timezone.byname
37 netmasks: netmasks.byaddr
38 +opasswd: opasswd.byname opasswd.byuid
41 ypservers: $(YPSERVERS) $(YPDIR)/Makefile
43 }' | $(DBLOAD) -i $(AMD_HOME) -o $(YPMAPDIR)/$@ - $@
44 -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@
46 +opasswd.byname: $(OLDPASSWD) $(YPDIR)/Makefile
47 + @echo "Updating $@..."
49 + $(AWK) -F: '!/^[-+#]/ { if ($$1 != "" && $$2 >= $(MINUID) ) \
50 + print $$1"\t"$$0 }' $(OLDPASSWD) | $(DBLOAD) -i $(OLDPASSWD) \
51 + -o $(YPMAPDIR)/$@ - $@
52 + -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@
54 +opasswd.byuid: $(OLDPASSWD) $(YPDIR)/Makefile
55 + @echo "Updating $@..."
57 + $(AWK) -F: '!/^[-+#]/ { if ($$1 != "" && $$2 >= $(MINUID) ) \
58 + print $$2"\t"$$0 }' $(OLDPASSWD) | $(DBLOAD) -i $(OLDPASSWD) \
59 + -o $(YPMAPDIR)/$@ - $@
60 + -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@
62 timezone.byname: $(TIMEZONE) $(YPDIR)/Makefile
63 @echo "Updating $@..."
64 @$(AWK) '{ if ($$1 != "" && $$1 !~ "#") \