]> git.pld-linux.org Git - packages/ypserv.git/blob - ypserv-ypMakefile.patch
- updated to 4.1
[packages/ypserv.git] / ypserv-ypMakefile.patch
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
3 @@ -42,11 +42,11 @@
4  
5  # Should we merge the passwd file with the shadow file ?
6  # MERGE_PASSWD=true|false
7 -MERGE_PASSWD=true
8 +MERGE_PASSWD=false
9  
10  # Should we merge the group file with the gshadow file ?
11  # MERGE_GROUP=true|false
12 -MERGE_GROUP=true
13 +MERGE_GROUP=false
14  
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.
17 @@ -94,6 +94,7 @@
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
23  
24  YPSERVERS = $(YPDIR)/ypservers # List of all NIS slave servers
25 @@ -108,7 +109,7 @@
26  # them out from this list.
27  
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
33  
34 @@ -145,6 +146,7 @@
35  timezone:      timezone.byname
36  locale:                locale.byname
37  netmasks:      netmasks.byaddr
38 +opasswd:       opasswd.byname opasswd.byuid
39  autofs:        $(AUTO_MAPS)
40  
41  ypservers: $(YPSERVERS) $(YPDIR)/Makefile
42 @@ -450,6 +452,22 @@
43                 }' | $(DBLOAD) -i $(AMD_HOME) -o $(YPMAPDIR)/$@ - $@
44         -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@
45  
46 +opasswd.byname: $(OLDPASSWD) $(YPDIR)/Makefile
47 +       @echo "Updating $@..."
48 +       @$(UMASK); \
49 +       $(AWK) -F: '!/^[-+#]/ { if ($$1 != "" && $$2 >= $(MINUID) ) \
50 +               print $$1"\t"$$0 }' $(OLDPASSWD) | $(DBLOAD) -i $(OLDPASSWD) \
51 +               -o $(YPMAPDIR)/$@ - $@
52 +       -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@
53 +
54 +opasswd.byuid: $(OLDPASSWD) $(YPDIR)/Makefile
55 +       @echo "Updating $@..."
56 +       @$(UMASK); \
57 +       $(AWK) -F: '!/^[-+#]/ { if ($$1 != "" && $$2 >= $(MINUID) ) \
58 +       print $$2"\t"$$0 }' $(OLDPASSWD) | $(DBLOAD) -i $(OLDPASSWD) \
59 +       -o $(YPMAPDIR)/$@ - $@
60 +       -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@
61 +
62  timezone.byname: $(TIMEZONE) $(YPDIR)/Makefile
63         @echo "Updating $@..."
64         @$(AWK) '{ if ($$1 != "" && $$1 !~ "#") \
This page took 0.052943 seconds and 3 git commands to generate.