git: 5abb10faa1ff - main - pkgbase: Put yellow pages programs to its own package

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Tue, 21 Dec 2021 09:17:58 UTC
The branch main has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=5abb10faa1ff471b45ac4f49ace2b79cc57d7c3c

commit 5abb10faa1ff471b45ac4f49ace2b79cc57d7c3c
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2021-09-28 09:49:50 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2021-12-21 09:17:22 +0000

    pkgbase: Put yellow pages programs to its own package
    
    YP is less and less used, split them to users have the choice to not
    install them.
    
    MFC after:      2 weeks
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    Differential Revision:  https://reviews.freebsd.org/D33441
---
 bin/domainname/Makefile           | 2 +-
 lib/libypclnt/Makefile            | 1 +
 libexec/ypxfr/Makefile            | 1 +
 release/packages/Makefile.package | 2 ++
 usr.bin/ypcat/Makefile            | 1 +
 usr.bin/ypmatch/Makefile          | 1 +
 usr.bin/ypwhich/Makefile          | 1 +
 usr.sbin/rpc.yppasswdd/Makefile   | 1 +
 usr.sbin/rpc.ypupdated/Makefile   | 1 +
 usr.sbin/rpc.ypxfrd/Makefile      | 1 +
 usr.sbin/yp_mkdb/Makefile         | 1 +
 usr.sbin/ypbind/Makefile          | 1 +
 usr.sbin/ypldap/Makefile          | 1 +
 usr.sbin/yppoll/Makefile          | 1 +
 usr.sbin/yppush/Makefile          | 1 +
 usr.sbin/ypserv/Makefile          | 1 +
 usr.sbin/ypset/Makefile           | 1 +
 17 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/bin/domainname/Makefile b/bin/domainname/Makefile
index d3bace8feef3..7275af2ac56f 100644
--- a/bin/domainname/Makefile
+++ b/bin/domainname/Makefile
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-PACKAGE=runtime
+PACKAGE=yp
 PROG=	domainname
 
 .include <bsd.prog.mk>
diff --git a/lib/libypclnt/Makefile b/lib/libypclnt/Makefile
index 636c9b6c81b9..41a4325e163b 100644
--- a/lib/libypclnt/Makefile
+++ b/lib/libypclnt/Makefile
@@ -1,5 +1,6 @@
 # $FreeBSD$
 
+PACKAGE=	yp
 LIB=	ypclnt
 SHLIB_MAJOR= 4
 SRCS=	ypclnt_connect.c \
diff --git a/libexec/ypxfr/Makefile b/libexec/ypxfr/Makefile
index c4472fb167ce..36dc65d28580 100644
--- a/libexec/ypxfr/Makefile
+++ b/libexec/ypxfr/Makefile
@@ -1,5 +1,6 @@
 # $FreeBSD$
 
+PACKAGE=	yp
 PROG=	ypxfr
 SRCS=	yp_dblookup.c yp_dbwrite.c yp_error.c \
 	ypxfr_getmap.c ypxfr_main.c ypxfr_misc.c \
diff --git a/release/packages/Makefile.package b/release/packages/Makefile.package
index 8abf7cbd5353..8c96f1f0b18e 100644
--- a/release/packages/Makefile.package
+++ b/release/packages/Makefile.package
@@ -118,3 +118,5 @@ vt_COMMENT=		VT fonts and keyboard files
 vt_DESC=		VT fonts and keyboard files
 wpa_COMMENT=		802.11 Supplicant
 wpa_DESC=		802.11 Supplicant
+yp_COMMENT=		Yellow Pages programs
+yp_DESC=		Yellow Pages programs
diff --git a/usr.bin/ypcat/Makefile b/usr.bin/ypcat/Makefile
index 782fdcc1a8d6..3c56dce0883b 100644
--- a/usr.bin/ypcat/Makefile
+++ b/usr.bin/ypcat/Makefile
@@ -1,6 +1,7 @@
 #	from: @(#)Makefile	5.8 (Berkeley) 7/28/90
 # $FreeBSD$
 
+PACKAGE=	yp
 PROG=	ypcat
 
 WARNS?=	3
diff --git a/usr.bin/ypmatch/Makefile b/usr.bin/ypmatch/Makefile
index d4a5b955e5c7..44c821791f29 100644
--- a/usr.bin/ypmatch/Makefile
+++ b/usr.bin/ypmatch/Makefile
@@ -1,6 +1,7 @@
 #	from: @(#)Makefile	5.8 (Berkeley) 7/28/90
 # $FreeBSD$
 
+PACKAGE=	yp
 PROG=	ypmatch
 
 WARNS?=	3
diff --git a/usr.bin/ypwhich/Makefile b/usr.bin/ypwhich/Makefile
index 0cc473d2d80e..ed160e20c2ad 100644
--- a/usr.bin/ypwhich/Makefile
+++ b/usr.bin/ypwhich/Makefile
@@ -4,6 +4,7 @@
 YPSERV=${SRCTOP}/usr.sbin/ypserv/common
 .PATH: ${YPSERV}
 
+PACKAGE=	yp
 PROG=	ypwhich
 SRCS=	yplib_host.c ypwhich.c
 
diff --git a/usr.sbin/rpc.yppasswdd/Makefile b/usr.sbin/rpc.yppasswdd/Makefile
index 22887fb0ec88..b31b34f4db3a 100644
--- a/usr.sbin/rpc.yppasswdd/Makefile
+++ b/usr.sbin/rpc.yppasswdd/Makefile
@@ -5,6 +5,7 @@ RPCDIR=	${DESTDIR}/usr/include/rpcsvc
 .PATH: ${SRCTOP}/usr.sbin/ypserv ${SRCTOP}/usr.bin/chpass \
        ${SRCTOP}/libexec/ypxfr ${RPCDIR}
 
+PACKAGE=yp
 PROG=	rpc.yppasswdd
 SCRIPTS=yppwupdate
 SCRIPTSDIR= ${LIBEXECDIR}
diff --git a/usr.sbin/rpc.ypupdated/Makefile b/usr.sbin/rpc.ypupdated/Makefile
index dc640d12b592..1f34a28914d7 100644
--- a/usr.sbin/rpc.ypupdated/Makefile
+++ b/usr.sbin/rpc.ypupdated/Makefile
@@ -2,6 +2,7 @@
 
 .PATH: ${SRCTOP}/usr.sbin/ypserv ${SRCTOP}/libexec/ypxfr
 
+PACKAGE=yp
 PROG=	rpc.ypupdated
 MAN=
 SRCS=	ypupdate_prot_svc.c ypupdate_prot.h ypupdated_main.c \
diff --git a/usr.sbin/rpc.ypxfrd/Makefile b/usr.sbin/rpc.ypxfrd/Makefile
index 0e98d83638e0..d07ee6d5c70c 100644
--- a/usr.sbin/rpc.ypxfrd/Makefile
+++ b/usr.sbin/rpc.ypxfrd/Makefile
@@ -2,6 +2,7 @@
 
 .PATH: ${SRCTOP}/usr.sbin/ypserv
 
+PACKAGE=yp
 PROG=	rpc.ypxfrd
 MAN=	rpc.ypxfrd.8
 SRCS=	ypxfrd_svc.c ypxfrd.h ypxfrd_server.c yp_error.c \
diff --git a/usr.sbin/yp_mkdb/Makefile b/usr.sbin/yp_mkdb/Makefile
index 681087e01d2c..6ddbfdfd9b09 100644
--- a/usr.sbin/yp_mkdb/Makefile
+++ b/usr.sbin/yp_mkdb/Makefile
@@ -2,6 +2,7 @@
 
 .PATH: ${SRCTOP}/libexec/ypxfr ${SRCTOP}/usr.sbin/ypserv
 
+PACKAGE=	yp
 PROG=	yp_mkdb
 MAN=	yp_mkdb.8
 SRCS=	yp_mkdb.c yp_dblookup.c yp_dbwrite.c
diff --git a/usr.sbin/ypbind/Makefile b/usr.sbin/ypbind/Makefile
index 8e9a231940c4..1a5844390810 100644
--- a/usr.sbin/ypbind/Makefile
+++ b/usr.sbin/ypbind/Makefile
@@ -1,6 +1,7 @@
 #	from: @(#)Makefile	5.8 (Berkeley) 7/28/90
 # $FreeBSD$
 
+PACKAGE=	yp
 PROG=	ypbind
 MAN=	ypbind.8
 SRCS=	ypbind.c yp_ping.c
diff --git a/usr.sbin/ypldap/Makefile b/usr.sbin/ypldap/Makefile
index 5c909e3d79fe..1fcaf238ca2a 100644
--- a/usr.sbin/ypldap/Makefile
+++ b/usr.sbin/ypldap/Makefile
@@ -1,6 +1,7 @@
 # $OpenBSD: Makefile,v 1.8 2015/09/09 15:33:18 deraadt Exp $
 # $FreeBSD$
 
+PACKAGE=	yp
 PROG=		ypldap
 SRCS=		parse.y ypldap.c log.c	\
 		ldapclient.c entries.c yp.c \
diff --git a/usr.sbin/yppoll/Makefile b/usr.sbin/yppoll/Makefile
index 701633ba086e..b865632fb82f 100644
--- a/usr.sbin/yppoll/Makefile
+++ b/usr.sbin/yppoll/Makefile
@@ -1,6 +1,7 @@
 #	from: @(#)Makefile	5.8 (Berkeley) 7/28/90
 # $FreeBSD$
 
+PACKAGE=	yp
 PROG=	yppoll
 MAN=	yppoll.8
 
diff --git a/usr.sbin/yppush/Makefile b/usr.sbin/yppush/Makefile
index a87be5bf956c..897e308c351c 100644
--- a/usr.sbin/yppush/Makefile
+++ b/usr.sbin/yppush/Makefile
@@ -3,6 +3,7 @@
 RPCDIR=	${SRCTOP}/include/rpcsvc
 .PATH: ${RPCDIR} ${SRCTOP}/usr.sbin/ypserv ${SRCTOP}/libexec/ypxfr
 
+PACKAGE=	yp
 PROG=	yppush
 MAN=	yppush.8
 SRCS=	ypxfr_getmap.c yp_dblookup.c yp_error.c ypxfr_misc.c yppush_main.c \
diff --git a/usr.sbin/ypserv/Makefile b/usr.sbin/ypserv/Makefile
index c229c4a34d83..6d5948554ec8 100644
--- a/usr.sbin/ypserv/Makefile
+++ b/usr.sbin/ypserv/Makefile
@@ -5,6 +5,7 @@
 RPCDIR=	${SRCTOP}/include/rpcsvc
 .PATH: ${RPCDIR} ${.CURDIR}/common
 
+PACKAGE=	yp
 PROG=	ypserv
 MAN=	ypserv.8 ypinit.8
 SRCS=	yp_svc.c yp_server.c yp_dblookup.c yp_dnslookup.c \
diff --git a/usr.sbin/ypset/Makefile b/usr.sbin/ypset/Makefile
index 708ff871e80c..4c6c86df556e 100644
--- a/usr.sbin/ypset/Makefile
+++ b/usr.sbin/ypset/Makefile
@@ -1,6 +1,7 @@
 #	from: @(#)Makefile	5.8 (Berkeley) 7/28/90
 # $FreeBSD$
 
+PACKAGE=	yp
 PROG=	ypset
 MAN=	ypset.8