Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk mk: Add a MKPPP flag to exclude pppd(8) and related...



details:   https://anonhg.NetBSD.org/src/rev/1fdd2e69a850
branches:  trunk
changeset: 366494:1fdd2e69a850
user:      nia <nia%NetBSD.org@localhost>
date:      Sun May 29 08:09:59 2022 +0000

description:
mk: Add a MKPPP flag to exclude pppd(8) and related utilities from
the build

diffstat:

 distrib/sets/lists/base/mi  |  12 ++++++------
 distrib/sets/lists/debug/mi |  10 +++++-----
 distrib/sets/lists/etc/mi   |   4 ++--
 distrib/sets/lists/man/mi   |  32 ++++++++++++++++----------------
 etc/rc.d/Makefile           |   8 ++++++--
 external/bsd/Makefile       |   7 +++++--
 share/mk/bsd.README         |   9 ++++++++-
 share/mk/bsd.own.mk         |   3 ++-
 8 files changed, 50 insertions(+), 35 deletions(-)

diffs (293 lines):

diff -r 839b2cdcf705 -r 1fdd2e69a850 distrib/sets/lists/base/mi
--- a/distrib/sets/lists/base/mi        Sun May 29 08:09:19 2022 +0000
+++ b/distrib/sets/lists/base/mi        Sun May 29 08:09:59 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1304 2022/05/28 14:31:11 nia Exp $
+# $NetBSD: mi,v 1.1305 2022/05/29 08:09:59 nia Exp $
 #
 # Note:        Don't delete entries from here - mark them as "obsolete" instead,
 #      unless otherwise stated below.
@@ -1445,7 +1445,7 @@
 ./usr/sbin/btpand                              base-sysutil-bin
 ./usr/sbin/btuartd                             base-obsolete           obsolete
 ./usr/sbin/catman                              base-man-bin
-./usr/sbin/chat                                        base-ppp-bin
+./usr/sbin/chat                                        base-ppp-bin            ppp
 ./usr/sbin/chown                               base-sysutil-bin
 ./usr/sbin/chroot                              base-sysutil-bin
 ./usr/sbin/chrtbl                              base-obsolete           obsolete
@@ -1668,10 +1668,10 @@
 ./usr/sbin/postsuper                           base-postfix-bin        postfix
 ./usr/sbin/posttls-finger                      base-postfix-bin        postfix
 ./usr/sbin/powerd                              base-sysutil-bin
-./usr/sbin/pppd                                        base-ppp-bin
-./usr/sbin/pppdump                             base-ppp-bin
+./usr/sbin/pppd                                        base-ppp-bin            ppp
+./usr/sbin/pppdump                             base-ppp-bin            ppp
 ./usr/sbin/pppoectl                            base-obsolete           obsolete
-./usr/sbin/pppstats                            base-ppp-bin
+./usr/sbin/pppstats                            base-ppp-bin            ppp
 ./usr/sbin/praliases                           base-obsolete           obsolete
 ./usr/sbin/procsystime                         base-debug-bin          dtrace
 ./usr/sbin/psrset                              base-sysutil-bin
@@ -1745,7 +1745,7 @@
 ./usr/sbin/setkey                              base-obsolete           obsolete
 ./usr/sbin/setobjstat                          base-sysutil-bin
 ./usr/sbin/sliplogin                           base-slip-bin
-./usr/sbin/slstats                             base-slip-bin
+./usr/sbin/slstats                             base-slip-bin           ppp
 ./usr/sbin/smrsh                               base-obsolete           obsolete
 ./usr/sbin/sntp                                        base-ntp-bin            ntp
 ./usr/sbin/spamdb                              base-obsolete           obsolete
diff -r 839b2cdcf705 -r 1fdd2e69a850 distrib/sets/lists/debug/mi
--- a/distrib/sets/lists/debug/mi       Sun May 29 08:09:19 2022 +0000
+++ b/distrib/sets/lists/debug/mi       Sun May 29 08:09:59 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.383 2022/05/28 14:31:12 nia Exp $
+# $NetBSD: mi,v 1.384 2022/05/29 08:09:59 nia Exp $
 ./etc/mtree/set.debug                           comp-sys-root
 ./usr/lib                                      comp-sys-usr            compatdir
 ./usr/lib/i18n/libBIG5_g.a                     comp-c-debuglib         debuglib,compatfile
@@ -1076,7 +1076,7 @@
 ./usr/libdata/debug/usr/sbin/btpand.debug      comp-sysutil-debug      debug
 ./usr/libdata/debug/usr/sbin/btuartd.debug     comp-obsolete           obsolete
 ./usr/libdata/debug/usr/sbin/catman.debug      comp-man-debug          debug
-./usr/libdata/debug/usr/sbin/chat.debug                comp-ppp-debug          debug
+./usr/libdata/debug/usr/sbin/chat.debug                comp-ppp-debug          ppp,debug
 ./usr/libdata/debug/usr/sbin/chown.debug       comp-obsolete           obsolete
 ./usr/libdata/debug/usr/sbin/chroot.debug      comp-sysutil-debug      debug
 ./usr/libdata/debug/usr/sbin/chrtbl.debug      comp-obsolete           obsolete
@@ -1248,9 +1248,9 @@
 ./usr/libdata/debug/usr/sbin/postsuper.debug   comp-postfix-debug      postfix,debug
 ./usr/libdata/debug/usr/sbin/posttls-finger.debug      comp-postfix-debug      postfix,debug
 ./usr/libdata/debug/usr/sbin/powerd.debug      comp-sysutil-debug      debug
-./usr/libdata/debug/usr/sbin/pppd.debug                comp-ppp-debug          debug
-./usr/libdata/debug/usr/sbin/pppdump.debug     comp-ppp-debug          debug
-./usr/libdata/debug/usr/sbin/pppstats.debug    comp-ppp-debug          debug
+./usr/libdata/debug/usr/sbin/pppd.debug                comp-ppp-debug          ppp,debug
+./usr/libdata/debug/usr/sbin/pppdump.debug     comp-ppp-debug          ppp,debug
+./usr/libdata/debug/usr/sbin/pppstats.debug    comp-ppp-debug          ppp,debug
 ./usr/libdata/debug/usr/sbin/psrset.debug      comp-sysutil-debug      debug
 ./usr/libdata/debug/usr/sbin/pstat.debug       comp-sysutil-debug      debug
 ./usr/libdata/debug/usr/sbin/pvcsif.debug      comp-obsolete           obsolete
diff -r 839b2cdcf705 -r 1fdd2e69a850 distrib/sets/lists/etc/mi
--- a/distrib/sets/lists/etc/mi Sun May 29 08:09:19 2022 +0000
+++ b/distrib/sets/lists/etc/mi Sun May 29 08:09:59 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.268 2022/05/28 11:17:36 nia Exp $
+# $NetBSD: mi,v 1.269 2022/05/29 08:09:59 nia Exp $
 #
 # Note: end-user configuration files that are moved to another location
 #      should not be marked "obsolete"; they should just be removed from
@@ -283,7 +283,7 @@
 ./etc/rc.d/poffd                               etc-obsolete            obsolete
 ./etc/rc.d/postfix                             etc-postfix-rc
 ./etc/rc.d/powerd                              etc-sysutil-rc
-./etc/rc.d/ppp                                 etc-ppp-rc
+./etc/rc.d/ppp                                 etc-ppp-rc              ppp
 ./etc/rc.d/pwcheck                             etc-sys-rc
 ./etc/rc.d/quota                               etc-sys-rc
 ./etc/rc.d/racoon                              etc-net-rc
diff -r 839b2cdcf705 -r 1fdd2e69a850 distrib/sets/lists/man/mi
--- a/distrib/sets/lists/man/mi Sun May 29 08:09:19 2022 +0000
+++ b/distrib/sets/lists/man/mi Sun May 29 08:09:59 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1745 2022/05/28 14:31:12 nia Exp $
+# $NetBSD: mi,v 1.1746 2022/05/29 08:09:59 nia Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -2514,7 +2514,7 @@
 ./usr/share/man/cat8/cesfic/MAKEDEV.0          man-obsolete            obsolete
 ./usr/share/man/cat8/cesfic/makedev.0          man-obsolete            obsolete
 ./usr/share/man/cat8/cgdconfig.0               man-sysutil-catman      .cat
-./usr/share/man/cat8/chat.0                    man-ppp-catman          .cat
+./usr/share/man/cat8/chat.0                    man-ppp-catman          ppp,.cat
 ./usr/share/man/cat8/chown.0                   man-sysutil-catman      .cat
 ./usr/share/man/cat8/chroot.0                  man-sysutil-catman      .cat
 ./usr/share/man/cat8/chrtbl.0                  man-obsolete            obsolete
@@ -3012,11 +3012,11 @@
 ./usr/share/man/cat8/postscreen.0              man-postfix-catman      postfix,.cat
 ./usr/share/man/cat8/powerd.0                  man-sysutil-catman      .cat
 ./usr/share/man/cat8/poweroff.0                        man-sysutil-catman      .cat
-./usr/share/man/cat8/pppd.0                    man-ppp-catman          .cat
+./usr/share/man/cat8/pppd.0                    man-ppp-catman          ppp,.cat
 ./usr/share/man/cat8/pppd.cbcp.0               man-obsolete            obsolete
-./usr/share/man/cat8/pppdump.0                 man-ppp-catman          .cat
+./usr/share/man/cat8/pppdump.0                 man-ppp-catman          ppp,.cat
 ./usr/share/man/cat8/pppoectl.0                        man-sysutil-catman      .cat
-./usr/share/man/cat8/pppstats.0                        man-ppp-catman          .cat
+./usr/share/man/cat8/pppstats.0                        man-ppp-catman          ppp,.cat
 ./usr/share/man/cat8/praliases.0               man-obsolete            obsolete
 ./usr/share/man/cat8/prep/MAKEDEV.0            man-obsolete            obsolete
 ./usr/share/man/cat8/prep/boot.0               man-sys-catman          .cat
@@ -3156,7 +3156,7 @@
 ./usr/share/man/cat8/slattach.0                        man-slip-catman         .cat
 ./usr/share/man/cat8/slip.0                    man-obsolete            obsolete
 ./usr/share/man/cat8/sliplogin.0               man-slip-catman         .cat
-./usr/share/man/cat8/slstats.0                 man-slip-catman         .cat
+./usr/share/man/cat8/slstats.0                 man-slip-catman         ppp,.cat
 ./usr/share/man/cat8/smrsh.0                   man-obsolete            obsolete
 ./usr/share/man/cat8/smtp.0                    man-postfix-catman      postfix,.cat
 ./usr/share/man/cat8/smtpd.0                   man-postfix-catman      postfix,.cat
@@ -5633,7 +5633,7 @@
 ./usr/share/man/html8/catman.html              man-man-htmlman         html
 ./usr/share/man/html8/ccdconfig.html           man-sysutil-htmlman     html
 ./usr/share/man/html8/cgdconfig.html           man-sysutil-htmlman     html
-./usr/share/man/html8/chat.html                        man-ppp-htmlman         html
+./usr/share/man/html8/chat.html                        man-ppp-htmlman         ppp,html
 ./usr/share/man/html8/chown.html               man-sysutil-htmlman     html
 ./usr/share/man/html8/chroot.html              man-sysutil-htmlman     html
 ./usr/share/man/html8/chrtbl.html              man-obsolete            obsolete
@@ -6023,10 +6023,10 @@
 ./usr/share/man/html8/postscreen.html          man-postfix-htmlman     postfix,html
 ./usr/share/man/html8/powerd.html              man-sysutil-htmlman     html
 ./usr/share/man/html8/poweroff.html            man-sysutil-htmlman     html
-./usr/share/man/html8/pppd.html                        man-ppp-htmlman         html
-./usr/share/man/html8/pppdump.html             man-ppp-htmlman         html
+./usr/share/man/html8/pppd.html                        man-ppp-htmlman         ppp,html
+./usr/share/man/html8/pppdump.html             man-ppp-htmlman         ppp,html
 ./usr/share/man/html8/pppoectl.html            man-sysutil-htmlman     html
-./usr/share/man/html8/pppstats.html            man-ppp-htmlman         html
+./usr/share/man/html8/pppstats.html            man-ppp-htmlman         ppp,html
 ./usr/share/man/html8/prep/boot.html           man-sys-htmlman         html
 ./usr/share/man/html8/prep/mkbootimage.html    man-sys-htmlman         html
 ./usr/share/man/html8/proxymap.html            man-postfix-htmlman     postfix,html
@@ -6150,7 +6150,7 @@
 ./usr/share/man/html8/shutdown.html            man-sysutil-htmlman     html
 ./usr/share/man/html8/slattach.html            man-slip-htmlman        html
 ./usr/share/man/html8/sliplogin.html           man-slip-htmlman        html
-./usr/share/man/html8/slstats.html             man-slip-htmlman        html
+./usr/share/man/html8/slstats.html             man-slip-htmlman        ppp,html
 ./usr/share/man/html8/smtp.html                        man-postfix-htmlman     postfix,html
 ./usr/share/man/html8/smtpd.html               man-postfix-htmlman     postfix,html
 ./usr/share/man/html8/sparc/binstall.html      man-sysutil-htmlman     html
@@ -8799,7 +8799,7 @@
 ./usr/share/man/man8/cesfic/MAKEDEV.8          man-obsolete            obsolete
 ./usr/share/man/man8/cesfic/makedev.8          man-obsolete            obsolete
 ./usr/share/man/man8/cgdconfig.8               man-sysutil-man         .man
-./usr/share/man/man8/chat.8                    man-ppp-man             .man
+./usr/share/man/man8/chat.8                    man-ppp-man             ppp,.man
 ./usr/share/man/man8/chown.8                   man-sysutil-man         .man
 ./usr/share/man/man8/chroot.8                  man-sysutil-man         .man
 ./usr/share/man/man8/chrtbl.8                  man-obsolete            obsolete
@@ -9298,11 +9298,11 @@
 ./usr/share/man/man8/postscreen.8              man-postfix-man         postfix,.man
 ./usr/share/man/man8/powerd.8                  man-sysutil-man         .man
 ./usr/share/man/man8/poweroff.8                        man-sysutil-man         .man
-./usr/share/man/man8/pppd.8                    man-ppp-man             .man
+./usr/share/man/man8/pppd.8                    man-ppp-man             ppp,.man
 ./usr/share/man/man8/pppd.cbcp.8               man-obsolete            obsolete
-./usr/share/man/man8/pppdump.8                 man-ppp-man             .man
+./usr/share/man/man8/pppdump.8                 man-ppp-man             ppp,.man
 ./usr/share/man/man8/pppoectl.8                        man-sysutil-man         .man
-./usr/share/man/man8/pppstats.8                        man-ppp-man             .man
+./usr/share/man/man8/pppstats.8                        man-ppp-man             ppp,.man
 ./usr/share/man/man8/praliases.8               man-obsolete            obsolete
 ./usr/share/man/man8/prep/MAKEDEV.8            man-obsolete            obsolete
 ./usr/share/man/man8/prep/boot.8               man-sys-man             .man
@@ -9442,7 +9442,7 @@
 ./usr/share/man/man8/slattach.8                        man-slip-man            .man
 ./usr/share/man/man8/slip.8                    man-obsolete            obsolete
 ./usr/share/man/man8/sliplogin.8               man-slip-man            .man
-./usr/share/man/man8/slstats.8                 man-slip-man            .man
+./usr/share/man/man8/slstats.8                 man-slip-man            ppp,.man
 ./usr/share/man/man8/smrsh.8                   man-obsolete            obsolete
 ./usr/share/man/man8/smtp.8                    man-postfix-man         postfix,.man
 ./usr/share/man/man8/smtpd.8                   man-postfix-man         postfix,.man
diff -r 839b2cdcf705 -r 1fdd2e69a850 etc/rc.d/Makefile
--- a/etc/rc.d/Makefile Sun May 29 08:09:19 2022 +0000
+++ b/etc/rc.d/Makefile Sun May 29 08:09:59 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.114 2022/05/28 11:17:35 nia Exp $
+# $NetBSD: Makefile,v 1.115 2022/05/29 08:10:00 nia Exp $
 
 .include <bsd.own.mk>
 
@@ -32,7 +32,7 @@
                mountcritlocal mountcritremote mountd moused \
                named ndbootd network newsyslog nfsd nfslocking npf npf_boot \
                npfd \
-               perusertmp pf pf_boot pflogd postfix powerd ppp pwcheck \
+               perusertmp pf pf_boot pflogd postfix powerd pwcheck \
                quota \
                racoon rpcbind raidframe raidframeparity random_seed rarpd \
                rbootd resize_root rndctl root route6d routed rtadvd \
@@ -52,6 +52,10 @@
 CONFIGFILES+=  ntpd ntpdate
 .endif
 
+.if ${MKPPP} != "no"
+CONFIGFILES+=  ppp
+.endif
+
 .if ${MKYP} != "no"
 CONFIGFILES+=  ypbind yppasswdd ypserv
 .endif
diff -r 839b2cdcf705 -r 1fdd2e69a850 external/bsd/Makefile
--- a/external/bsd/Makefile     Sun May 29 08:09:19 2022 +0000
+++ b/external/bsd/Makefile     Sun May 29 08:09:59 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.73 2022/05/28 11:17:35 nia Exp $
+#      $NetBSD: Makefile,v 1.74 2022/05/29 08:10:00 nia Exp $
 
 .include <bsd.own.mk>
 
@@ -39,6 +39,9 @@
 .if (${MKPCC} != "no")
 SUBDIR+= pcc
 .endif
+.if (${MKPPP} != "no")
+SUBDIR+= ppp
+.endif
 .if (${MKDTRACE} != "no")
 SUBDIR+= libproc
 SUBDIR+= librtld_db
@@ -50,6 +53,6 @@
 SUBDIR+= unbound
 .endif
 
-SUBDIR+= blocklist pdisk nvi ppp libnv
+SUBDIR+= blocklist pdisk nvi libnv
 
 .include <bsd.subdir.mk>
diff -r 839b2cdcf705 -r 1fdd2e69a850 share/mk/bsd.README
--- a/share/mk/bsd.README       Sun May 29 08:09:19 2022 +0000
+++ b/share/mk/bsd.README       Sun May 29 08:09:59 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.README,v 1.436 2022/05/28 14:31:12 nia Exp $
+#      $NetBSD: bsd.README,v 1.437 2022/05/29 08:10:00 nia Exp $
 #      @(#)bsd.README  8.2 (Berkeley) 4/2/94
 
 This is the README file for the make "include" files for the NetBSD
@@ -451,6 +451,13 @@
 MKPOSTFIX      If "no", don't build or install postfix(1).
                Default: yes
 
+MKPPP          If "no", disables building the Point-to-Point Protocol
+               daemon pppd(8), as well as related utilities chat(8),
+               pppdump(8), and pppstats(8).
+               This option has no effect on PPPoE (Point-to-Point over
+               Ethernet) support, but rather only affects serial links.
+               Default: yes
+
 MKPROFILE      If "no", don't build or install the profiling (*_p.a) libraries.
                Default: yes
 
diff -r 839b2cdcf705 -r 1fdd2e69a850 share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Sun May 29 08:09:19 2022 +0000
+++ b/share/mk/bsd.own.mk       Sun May 29 08:09:59 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.own.mk,v 1.1282 2022/05/28 14:31:12 nia Exp $
+#      $NetBSD: bsd.own.mk,v 1.1283 2022/05/29 08:10:00 nia Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1171,6 +1171,7 @@
        MKOBJ \
        MKPAM MKPERFUSE \
        MKPF MKPIC MKPICLIB MKPOSTFIX MKPROFILE \
+       MKPPP \
        MKRUMP \
        MKSHARE MKSKEY MKSTATICLIB \
        MKTALK \



Home | Main Index | Thread Index | Old Index