git: ac36d4f03a49 - stable/13 - pkgbase: Create a FreeBSD-fetch package

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

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

commit ac36d4f03a49ed21345830a87f3a82cf3a12c464
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2021-12-15 11:00:47 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-01-05 17:23:53 +0000

    pkgbase: Create a FreeBSD-fetch package
    
    It's useful for small image to fetch some data but we don't want to
    install utilities nor bloat runtime.
    
    MFC after:      2 weeks
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    Differential Revision:  https://reviews.freebsd.org/D33463
    
    (cherry picked from commit 13ef8134efd1c0a39c2dab0197b5c4558101253e)
---
 lib/libfetch/Makefile             | 2 ++
 release/packages/Makefile.package | 2 ++
 usr.bin/fetch/Makefile            | 1 +
 3 files changed, 5 insertions(+)

diff --git a/lib/libfetch/Makefile b/lib/libfetch/Makefile
index 99c4ceea9dd9..607ff6e05c5e 100644
--- a/lib/libfetch/Makefile
+++ b/lib/libfetch/Makefile
@@ -2,6 +2,8 @@
 
 .include <src.opts.mk>
 
+PACKAGE=	fetch
+
 LIB=		fetch
 CFLAGS+=	-I.
 SRCS=		fetch.c common.c ftp.c http.c file.c \
diff --git a/release/packages/Makefile.package b/release/packages/Makefile.package
index 2f90307cfda2..fbad12dd56f4 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
+fetch_COMMENT=		Fetch Utility
+fetch_DESC=		Fetch Utility
 ftp_COMMENT=		FTP Utilities
 ftp_DESC=		FTP Utilities
 ftpd_COMMENT=		FTP Daemon
diff --git a/usr.bin/fetch/Makefile b/usr.bin/fetch/Makefile
index 1c2ea1d78595..37ddb7393904 100644
--- a/usr.bin/fetch/Makefile
+++ b/usr.bin/fetch/Makefile
@@ -1,5 +1,6 @@
 # $FreeBSD$
 
+PACKAGE=	fetch
 PROG=		fetch
 LIBADD=		fetch