git: 880b9a8af690 - stable/13 - pkgbase: Create a FreeBSD-ftp package

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

URL: https://cgit.FreeBSD.org/src/commit/?id=880b9a8af690a13f07c15ee6d3e8f1bdd64b4074

commit 880b9a8af690a13f07c15ee6d3e8f1bdd64b4074
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2021-09-02 15:14:20 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-01-05 17:23:51 +0000

    pkgbase: Create a FreeBSD-ftp package
    
    ftp tools aren't that useful nowadays but some might want them.
    Create a FreeBSD-ftp package so users have a choice to have
    them or not.
    
    Differential Revision:  https://reviews.freebsd.org/D31794
    
    (cherry picked from commit b5be5c35dbaf38caaa9c70a83025f3535abbfd4f)
---
 lib/libpam/pam.d/Makefile         | 1 +
 release/packages/Makefile.package | 2 ++
 usr.bin/ftp/Makefile              | 2 ++
 3 files changed, 5 insertions(+)

diff --git a/lib/libpam/pam.d/Makefile b/lib/libpam/pam.d/Makefile
index 1a9caeef940f..ca9691714091 100644
--- a/lib/libpam/pam.d/Makefile
+++ b/lib/libpam/pam.d/Makefile
@@ -26,6 +26,7 @@ ATPACKAGE+=	at
 .if ${MK_FTP} != "no"
 CONFGROUPS+=	FTP
 FTP+=	ftpd
+FTPPACKAGE=	ftp
 
 afterinstallconfig:
 	${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}${CONFDIR}/ftpd ${DESTDIR}${CONFDIR}/ftp
diff --git a/release/packages/Makefile.package b/release/packages/Makefile.package
index 9037a5913f81..8abf7cbd5353 100644
--- a/release/packages/Makefile.package
+++ b/release/packages/Makefile.package
@@ -44,6 +44,8 @@ ee_COMMENT= 		Easy Editor Utilities
 ee_DESC= 		Easy Editor Utilities
 efi-tools_COMMENT=	UEFI Utilities
 efi-tools_DESC=		UEFI Utilities
+ftp_COMMENT=		FTP Utilities
+ftp_DESC=		FTP Utilities
 gdb_COMMENT= 		GDB Utilities
 gdb_DESC= 		GDB Utilities
 ggate_COMMENT=		GEOM Gate Utilities
diff --git a/usr.bin/ftp/Makefile b/usr.bin/ftp/Makefile
index e7de6e6c496c..3be674cfb2c6 100644
--- a/usr.bin/ftp/Makefile
+++ b/usr.bin/ftp/Makefile
@@ -8,6 +8,8 @@
 #
 #CFLAGS+=-DGATE_SERVER=\"ftp-gw.host\" # -DGATE_PORT=21
 
+PACKAGE=	ftp
+
 TNFTP=	${SRCTOP}/contrib/tnftp
 .PATH: ${TNFTP}/src