git: 317c92dd634b - stable/13 - pkgbase: Create a FreeBSD-mtree package

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Wed, 05 Jan 2022 17:24:28 UTC
The branch stable/13 has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=317c92dd634b8fe21c2bdb6e6876fba46a7c119f

commit 317c92dd634b8fe21c2bdb6e6876fba46a7c119f
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2021-12-14 16:19:30 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-01-05 17:23:52 +0000

    pkgbase: Create a FreeBSD-mtree package
    
    And put the mtree binary and files in it.
    Useful to create small mfsroot using /etc/rc.d/var without
    having to install FreeBSD-utilities.
    
    MFC after:      2 weeks
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    Differential Revision:  https://reviews.freebsd.org/D33442
    
    (cherry picked from commit dcf9d46a3fb8176651abd64afe17ad323fc318ea)
---
 etc/mtree/Makefile                | 2 ++
 release/packages/Makefile.package | 2 ++
 usr.sbin/nmtree/Makefile          | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/etc/mtree/Makefile b/etc/mtree/Makefile
index 27dfcc751ae5..22882b8826d6 100644
--- a/etc/mtree/Makefile
+++ b/etc/mtree/Makefile
@@ -2,6 +2,8 @@
 
 .include <src.opts.mk>
 
+PACKAGE=	mtree
+
 # NOTE: BSD.debug.dist is unconditionally installed for developer ease-of-use.
 FILES=	\
 	BSD.debug.dist \
diff --git a/release/packages/Makefile.package b/release/packages/Makefile.package
index d762e94b8a6d..c668a270133b 100644
--- a/release/packages/Makefile.package
+++ b/release/packages/Makefile.package
@@ -75,6 +75,8 @@ manuals_COMMENT= 	Manual Pages
 manuals_DESC= 		Manual Pages
 mlx-tools_COMMENT=	Mellanox Utilities
 mlx-tools_DESC=		Mellanox Utilities
+mtree_COMMENT=		MTREE Files
+mtree_DESC=		MTREE Files
 nfs_COMMENT=		NFS Utilities
 nfs_DESC= 		NFS Utilities
 openssl_COMMENT=	OpenSSL Library and Utility
diff --git a/usr.sbin/nmtree/Makefile b/usr.sbin/nmtree/Makefile
index 57705671f155..19a4bd9a1516 100644
--- a/usr.sbin/nmtree/Makefile
+++ b/usr.sbin/nmtree/Makefile
@@ -4,6 +4,8 @@
 
 .PATH: ${SRCTOP}/contrib/mtree
 
+PACKAGE=	mtree
+
 PROG=		mtree
 MAN=		mtree.5 mtree.8
 SRCS=		compare.c crc.c create.c excludes.c getid.c misc.c mtree.c \