git: 4ea0896cd288 - main - sysutils/kustomize: Add new port

From: Gabriel M. Dutra <dutra_at_FreeBSD.org>
Date: Fri, 25 Oct 2024 12:04:18 UTC
The branch main has been updated by dutra:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4ea0896cd2882356e7b3ab90c45bca38e913064f

commit 4ea0896cd2882356e7b3ab90c45bca38e913064f
Author:     Gabriel M. Dutra <dutra@FreeBSD.org>
AuthorDate: 2024-10-23 01:47:01 +0000
Commit:     Gabriel M. Dutra <dutra@FreeBSD.org>
CommitDate: 2024-10-25 12:03:43 +0000

    sysutils/kustomize: Add new port
    
    Kustomize simplifies resource management with customizable overlays
---
 sysutils/Makefile            |  1 +
 sysutils/kustomize/Makefile  | 25 +++++++++++++++++++++++++
 sysutils/kustomize/distinfo  |  5 +++++
 sysutils/kustomize/pkg-descr |  4 ++++
 4 files changed, 35 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index 02f8dafd93ba..9310cc8d6df8 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -655,6 +655,7 @@
     SUBDIR += kubectl
     SUBDIR += kubie
     SUBDIR += kubo-go
+    SUBDIR += kustomize
     SUBDIR += kvmclock-kmod
     SUBDIR += lava
     SUBDIR += lbl-cf
diff --git a/sysutils/kustomize/Makefile b/sysutils/kustomize/Makefile
new file mode 100644
index 000000000000..45234b5bafdd
--- /dev/null
+++ b/sysutils/kustomize/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	kustomize
+DISTVERSIONPREFIX=	v
+DISTVERSION=	5.5.0
+CATEGORIES=	sysutils
+
+MAINTAINER=	dutra@FreeBSD.org
+COMMENT=	Kustomize simplifies resource management with customizable overlays
+WWW=		https://github.com/kubernetes-sigs/kustomize
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:1.23,modules
+
+_BUILD_DATE=	$$(date -u +"%FT%T%z")
+
+GO_MODULE=	sigs.k8s.io/kustomize/kustomize/v5
+
+GO_BUILDFLAGS=	-ldflags="\
+		-X sigs.k8s.io/kustomize/api/provenance.version=${DISTVERSIONPREFIX}${PORTVERSION} \
+		-X sigs.k8s.io/kustomize/api/provenance.buildDate=${_BUILD_DATE}"
+
+PLIST_FILES=	bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/sysutils/kustomize/distinfo b/sysutils/kustomize/distinfo
new file mode 100644
index 000000000000..ce6274212269
--- /dev/null
+++ b/sysutils/kustomize/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1729644747
+SHA256 (go/sysutils_kustomize/kustomize-v5.5.0/v5.5.0.mod) = db353379fb058ff92df57fc6fa7c8855a7ff1fcb88e3dba86f47471f5e956282
+SIZE (go/sysutils_kustomize/kustomize-v5.5.0/v5.5.0.mod) = 1611
+SHA256 (go/sysutils_kustomize/kustomize-v5.5.0/v5.5.0.zip) = a4b83e2079404577599d3e6f5c77c1c3ff4f82e62b344668e86d0abd33cdb4ca
+SIZE (go/sysutils_kustomize/kustomize-v5.5.0/v5.5.0.zip) = 134222
diff --git a/sysutils/kustomize/pkg-descr b/sysutils/kustomize/pkg-descr
new file mode 100644
index 000000000000..54027f6d1986
--- /dev/null
+++ b/sysutils/kustomize/pkg-descr
@@ -0,0 +1,4 @@
+Kubernetes Kustomize is a tool that helps customize Kubernetes configurations
+without changing the original files. It lets you create overlays for different
+environments and manage settings easily. Kustomize makes deploying complex
+Kubernetes applications simpler and more organized.