git: 9c1720e59a6a - main - pkgbase: Create a FreeBSD-smbutils package

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Wed, 08 Feb 2023 07:54:12 UTC
The branch main has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=9c1720e59a6ab7bcae0ac71ef2ebc014ff5db7ad

commit 9c1720e59a6ab7bcae0ac71ef2ebc014ff5db7ad
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2023-01-27 09:45:21 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2023-02-08 07:48:28 +0000

    pkgbase: Create a FreeBSD-smbutils package
    
    And put smb related programs and lib in it.
    
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    Differential Revision:  https://reviews.freebsd.org/D38228
---
 lib/libsmb/Makefile               | 2 +-
 release/packages/Makefile.package | 2 ++
 usr.bin/smbutil/Makefile          | 1 +
 usr.sbin/mount_smbfs/Makefile     | 1 +
 4 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/libsmb/Makefile b/lib/libsmb/Makefile
index 3c310819f876..b9dcc060424c 100644
--- a/lib/libsmb/Makefile
+++ b/lib/libsmb/Makefile
@@ -4,7 +4,7 @@
 
 CONFS=	nsmb.conf
 CONFSMODE=	600
-PACKAGE=lib${LIB}
+PACKAGE=	smbutils
 CONTRIBDIR=	${SRCTOP}/contrib/smbfs
 .PATH: ${CONTRIBDIR}/lib/smb
 
diff --git a/release/packages/Makefile.package b/release/packages/Makefile.package
index 10f3dac80001..f9a3d1c45bdc 100644
--- a/release/packages/Makefile.package
+++ b/release/packages/Makefile.package
@@ -128,6 +128,8 @@ runtime-lib32-development_DESCR=32-bit Development Files
 runtime-lib32-profile_DESCR=32-bit Profiling Libraries
 sendmail_COMMENT= 	Sendmail Utilities
 sendmail_DESC= 		Sendmail Utilities
+smbutils_COMMENT=	SMB Utilities
+smbutils_DESC=		SMB Utilities
 ssh_COMMENT= 		Secure Shell Utilities
 ssh_DESC= 		Secure Shell Utilities
 svn_COMMENT= 		Subversion Version Control System
diff --git a/usr.bin/smbutil/Makefile b/usr.bin/smbutil/Makefile
index 7af710ac798d..2a735e619b5e 100644
--- a/usr.bin/smbutil/Makefile
+++ b/usr.bin/smbutil/Makefile
@@ -1,6 +1,7 @@
 # $FreeBSD$
 
 PROG=	smbutil
+PACKAGE=	smbutils
 SRCS=	smbutil.c dumptree.c login.c lookup.c view.c print.c
 
 LIBADD=	smb
diff --git a/usr.sbin/mount_smbfs/Makefile b/usr.sbin/mount_smbfs/Makefile
index 64f428035700..9f49cdbeac59 100644
--- a/usr.sbin/mount_smbfs/Makefile
+++ b/usr.sbin/mount_smbfs/Makefile
@@ -1,6 +1,7 @@
 # $FreeBSD$
 
 PROG=	mount_smbfs
+PACKAGE=	smbutils
 SRCS=	mount_smbfs.c getmntopts.c
 MAN=	mount_smbfs.8