git: 872aa9c8a6fd - stable/13 - pkgbase: Create a FreeBSD-telnet package

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

URL: https://cgit.FreeBSD.org/src/commit/?id=872aa9c8a6fd5045dbc24fb96b16e5345c61a117

commit 872aa9c8a6fd5045dbc24fb96b16e5345c61a117
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2021-09-01 17:02:00 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-01-05 17:23:49 +0000

    pkgbase: Create a FreeBSD-telnet package
    
    both telnet and telnetd aren't that useful nowadays but some
    might want them.
    Create a FreeBSD-telnet package so users have a choice to have
    them or not.
    
    Differential Revision:  https://reviews.freebsd.org/D31791
    Reviewed by: emaste
    
    (cherry picked from commit c7fd29f0f29ae3eb9d86cc019f6c1bab35634548)
---
 lib/libpam/pam.d/Makefile         | 1 +
 libexec/telnetd/Makefile          | 2 ++
 release/packages/Makefile.package | 2 ++
 usr.bin/telnet/Makefile           | 2 ++
 4 files changed, 7 insertions(+)

diff --git a/lib/libpam/pam.d/Makefile b/lib/libpam/pam.d/Makefile
index 43e43780ee33..1a9caeef940f 100644
--- a/lib/libpam/pam.d/Makefile
+++ b/lib/libpam/pam.d/Makefile
@@ -34,6 +34,7 @@ afterinstallconfig:
 .if ${MK_TELNET} != "no"
 CONFGROUPS+=	TELNET
 TELNET+=	telnetd
+TELNETPACKAGE=	telnet
 .endif
 
 .include <bsd.prog.mk>
diff --git a/libexec/telnetd/Makefile b/libexec/telnetd/Makefile
index 24119797ec8b..15dc0af01f0b 100644
--- a/libexec/telnetd/Makefile
+++ b/libexec/telnetd/Makefile
@@ -5,6 +5,8 @@
 
 .include <src.opts.mk>
 
+PACKAGE=	telnet
+
 TELNETDIR=	${SRCTOP}/contrib/telnet
 .PATH:		${TELNETDIR}/telnetd
 
diff --git a/release/packages/Makefile.package b/release/packages/Makefile.package
index 425592531fda..703cb91eae81 100644
--- a/release/packages/Makefile.package
+++ b/release/packages/Makefile.package
@@ -88,6 +88,8 @@ svn_COMMENT= 		Subversion Version Control System
 svn_DESC= 		Subversion Version Control System
 syscons_COMMENT= 	Syscons Console
 syscons_DESC= 		Syscons Console
+telnet_COMMENT=		Telnet and telnetd
+telnet_DESC=		Telnet and telnetd
 tests_COMMENT= 		Test Suite
 tests_DESC= 		Test Suite
 unbound_COMMENT= 	Unbound DNS Resolver
diff --git a/usr.bin/telnet/Makefile b/usr.bin/telnet/Makefile
index cb5d886e9d36..33c8b9cba193 100644
--- a/usr.bin/telnet/Makefile
+++ b/usr.bin/telnet/Makefile
@@ -2,6 +2,8 @@
 
 .include <src.opts.mk>
 
+PACKAGE=	telnet
+
 TELNETDIR=	${SRCTOP}/contrib/telnet
 .PATH:		${TELNETDIR}/telnet