From nobody Sat Nov 30 05:43:41 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y0f9T4wWmz5f6jC; Sat, 30 Nov 2024 05:43:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y0f9T3DMMz4m4L; Sat, 30 Nov 2024 05:43:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732945421; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=F8snz/3WzRrC5YNAnzU0Rj4OoDMxvHQXpvgHeQo8gGc=; b=HOZJnTyePIiG2R6/9dtn2EeYLnvHqGzbnE1Lc9wZcrboB0O2hDbgDj9TINlYG4hiO0PsX6 ztpWrlS4axqRqRnGMcZge2U/xeVb4YSnV0zVp+9QKTucXgTAy+vg3ttCfxPZrQglwKJ/rA Zli+sFHjVGSE93kuiptCoynvAWINPRi0dkagBF9no+F613Nj9MEeZ4XgZIIVLP8IJXCqsz NPVuf8QwAvgp0bzBzx4R79puTKU6oKCwRp87w7/0U3W0jq/U8ZIaKqCUQ2IHypJlL8//Vs z9TLOLMqq7aykozMHkIGtry3BevK3T8+SUHXYR86VjGlIpW1HQ2Vty8HrGlwyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732945421; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=F8snz/3WzRrC5YNAnzU0Rj4OoDMxvHQXpvgHeQo8gGc=; b=AFYVC74wzlpdN9MrdvhRGtnl+AxUc8HrM9L+3LBU31sU+RtOCZbMrCDTclTO9C13yZpGtt 9qlaY/IpEYKe9nRBz2TTMzUv2oSCUF1I2H6rT7yF74P5Y4fmUONva1pf6R5SCjddUARWCr wfFGHPgcald3RSAvTlEnFOHfzkG99Rpsf1S4pTSSFA5hjbrPuG3qF26YebAeEznwTmgRLc pCUhNvHDOm0+kL7VyibsaCWvDtgsQBxxvv3hjX5jXlQ89fOFzp8BLWehTvKILZUMA21yVt Gi/B3inpLKRcZsiReqnfxO2rLJwqlEBKfQPX1xlj3y8e4EV1gUGNFjM8LqTbbw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732945421; a=rsa-sha256; cv=none; b=q51ve0jlOITAFrKurWOoc5mHn5e6AM30BrEnvrlTg6VgYD1swwkiQAh3XNZDbHxPw8qljS L4RLutQXNnjyxv9PF8+Zs+qFi7v11dsBzFGaHqfT4UQjhRM7mQjLeuZRitxIShyZsUMgf+ aLKWaMPQajlNcyYx1LsaECNGfwGPDOKFN0EGKsC34raJ8YJCa3Tj+8AEk9wBl2GTASvs5p ImE/USzHEAe2WAdNVX+8++TGMSolhkb3SOGLoidgIvlG2a2AcoW3XRppKQiENeAcMGIjrJ Qww5D4Kvxuil8KCrJ25+MEs6FmzNmFUcpDKaYLZ/3feNOanuyUCwGkinbUMd8w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y0f9T2Q6RzvfC; Sat, 30 Nov 2024 05:43:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AU5hfZR003902; Sat, 30 Nov 2024 05:43:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AU5hf6A003899; Sat, 30 Nov 2024 05:43:41 GMT (envelope-from git) Date: Sat, 30 Nov 2024 05:43:41 GMT Message-Id: <202411300543.4AU5hf6A003899@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Gabriel M. Dutra" Subject: git: 114e0e7b3be6 - main - sysutils/cilium: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dutra X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 114e0e7b3be6e2e440011a88200a975e5edb1f06 Auto-Submitted: auto-generated The branch main has been updated by dutra: URL: https://cgit.FreeBSD.org/ports/commit/?id=114e0e7b3be6e2e440011a88200a975e5edb1f06 commit 114e0e7b3be6e2e440011a88200a975e5edb1f06 Author: Gabriel M. Dutra AuthorDate: 2024-11-30 05:40:15 +0000 Commit: Gabriel M. Dutra CommitDate: 2024-11-30 05:42:46 +0000 sysutils/cilium: Add new port CLI to manage Kubernetes clusters running cilium --- sysutils/Makefile | 1 + sysutils/cilium/Makefile | 23 ++++++++++++++++++++++ sysutils/cilium/distinfo | 5 +++++ ....com_cilium_hive_script_makeraw__unsupported.go | 10 ++++++++++ sysutils/cilium/pkg-descr | 1 + 5 files changed, 40 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index da1a71587d18..93ab1d876ea4 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -197,6 +197,7 @@ SUBDIR += chgrep SUBDIR += choria SUBDIR += chyves + SUBDIR += cilium SUBDIR += cinnamon-control-center SUBDIR += cinnamon-settings-daemon SUBDIR += ciso diff --git a/sysutils/cilium/Makefile b/sysutils/cilium/Makefile new file mode 100644 index 000000000000..f71f36ebc48f --- /dev/null +++ b/sysutils/cilium/Makefile @@ -0,0 +1,23 @@ +PORTNAME= cilium +DISTVERSIONPREFIX= v +DISTVERSION= 0.16.20 +CATEGORIES= sysutils + +MAINTAINER= dutra@FreeBSD.org +COMMENT= Manage Kubernetes clusters running Cilium +WWW= https://github.com/cilium/cilium-cli + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:1.23,modules + +GO_MODULE= github.com/cilium/cilium-cli +GO_BUILDFLAGS= -ldflags="\ + -X github.com/cilium/cilium/cilium-cli/defaults.CLIVersion=${DISTVERSION}" + +GO_TARGET= ./cmd/${PORTNAME} + +PLIST_FILES= bin/${PORTNAME} + +.include diff --git a/sysutils/cilium/distinfo b/sysutils/cilium/distinfo new file mode 100644 index 000000000000..b235dff09c51 --- /dev/null +++ b/sysutils/cilium/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1732942246 +SHA256 (go/sysutils_cilium/cilium-v0.16.20/v0.16.20.mod) = d211ea1105e7d6fce3e6417fa868c9f4f1fd4eae6be1dbb94940e42c77069bdf +SIZE (go/sysutils_cilium/cilium-v0.16.20/v0.16.20.mod) = 11415 +SHA256 (go/sysutils_cilium/cilium-v0.16.20/v0.16.20.zip) = 0fa37f743e72b0ab911913ec8f57ba3e33246595cded8b3eefbfa02a8e550a85 +SIZE (go/sysutils_cilium/cilium-v0.16.20/v0.16.20.zip) = 108730 diff --git a/sysutils/cilium/files/patch-vendor_github.com_cilium_hive_script_makeraw__unsupported.go b/sysutils/cilium/files/patch-vendor_github.com_cilium_hive_script_makeraw__unsupported.go new file mode 100644 index 000000000000..3847347e883a --- /dev/null +++ b/sysutils/cilium/files/patch-vendor_github.com_cilium_hive_script_makeraw__unsupported.go @@ -0,0 +1,10 @@ +--- vendor/github.com/cilium/hive/script/makeraw_unsupported.go.orig 2024-11-30 05:14:56 UTC ++++ vendor/github.com/cilium/hive/script/makeraw_unsupported.go +@@ -11,6 +11,6 @@ import ( + "runtime" + ) + +-func MakeRaw(fd int) (restore func(), err error) { ++func MakeRawUnsupported(fd int) (restore func(), err error) { + return func() {}, fmt.Errorf("MakeRaw: not supported on %s", runtime.GOOS) + } diff --git a/sysutils/cilium/pkg-descr b/sysutils/cilium/pkg-descr new file mode 100644 index 000000000000..d5c7e0f1f6aa --- /dev/null +++ b/sysutils/cilium/pkg-descr @@ -0,0 +1 @@ +CLI to install, manage & troubleshoot Kubernetes clusters running Cilium