git: c2991243dbb2 - main - sysutils/zli: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 27 Sep 2025 12:25:25 UTC
The branch main has been updated by decke:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c2991243dbb2dfc9f932d1560af12061ed998cf2
commit c2991243dbb2dfc9f932d1560af12061ed998cf2
Author: Bernhard Froehlich <decke@FreeBSD.org>
AuthorDate: 2025-09-27 12:23:43 +0000
Commit: Bernhard Froehlich <decke@FreeBSD.org>
CommitDate: 2025-09-27 12:23:43 +0000
sysutils/zli: Add new port
zli is a binary that implements a set of command line commands for interacting
with the zot registry server.
Reported by: dch@
Event: EuroBSDCon 2025
---
sysutils/Makefile | 1 +
sysutils/zli/Makefile | 28 ++++++++++++++++++++++++++++
sysutils/zli/distinfo | 5 +++++
sysutils/zli/pkg-descr | 2 ++
4 files changed, 36 insertions(+)
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 1ee72e8eb6c0..8652b26f837a 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1632,6 +1632,7 @@
SUBDIR += zetaback
SUBDIR += zetaback-devel
SUBDIR += zidrav
+ SUBDIR += zli
SUBDIR += znapzend
SUBDIR += zogftw
SUBDIR += zot
diff --git a/sysutils/zli/Makefile b/sysutils/zli/Makefile
new file mode 100644
index 000000000000..b8917c94b856
--- /dev/null
+++ b/sysutils/zli/Makefile
@@ -0,0 +1,28 @@
+PORTNAME= zli
+DISTVERSIONPREFIX=v
+DISTVERSION= 2.1.8
+CATEGORIES= sysutils
+
+MAINTAINER= decke@FreeBSD.org
+COMMENT= Command line tool for zot servers
+WWW= https://zotregistry.dev/
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= go:modules
+USE_GITHUB= yes
+GH_ACCOUNT= project-zot
+GH_PROJECT= zot
+
+GO_MODULE= zotproject.dev/zot
+GO_MOD_DIST= https://raw.githubusercontent.com/project-zot/zot/refs/tags/v${DISTVERSION}/
+GO_TARGET= ./cmd/zli
+GO_BUILDFLAGS= -tags search -ldflags " \
+ -X zotregistry.dev/zot/pkg/api/config.ReleaseTag=${DISTVERSION} \
+ -X zotregistry.dev/zot/pkg/api/config.BinaryType=minimal \
+ -X zotregistry.dev/zot/pkg/api/config.GoVersion=${GO_VERSION}"
+
+PLIST_FILES= bin/zli
+
+.include <bsd.port.mk>
diff --git a/sysutils/zli/distinfo b/sysutils/zli/distinfo
new file mode 100644
index 000000000000..156043acad85
--- /dev/null
+++ b/sysutils/zli/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1758973640
+SHA256 (go/sysutils_zli/project-zot-zot-v2.1.8_GH0/go.mod) = 62e652f73d60e5edb6a8a0aacc3d3d5f907f16a5066799869348aef02075ac4c
+SIZE (go/sysutils_zli/project-zot-zot-v2.1.8_GH0/go.mod) = 29780
+SHA256 (go/sysutils_zli/project-zot-zot-v2.1.8_GH0/project-zot-zot-v2.1.8_GH0.tar.gz) = cd04f1eebd1157d6e6041d5c4369c27d3b03c3eb6d3d8e8e34014bd24712e9b4
+SIZE (go/sysutils_zli/project-zot-zot-v2.1.8_GH0/project-zot-zot-v2.1.8_GH0.tar.gz) = 1215366
diff --git a/sysutils/zli/pkg-descr b/sysutils/zli/pkg-descr
new file mode 100644
index 000000000000..167bf68ffb9d
--- /dev/null
+++ b/sysutils/zli/pkg-descr
@@ -0,0 +1,2 @@
+zli is a binary that implements a set of command line commands for interacting
+with the zot registry server.