aboutsummaryrefslogtreecommitdiff
path: root/sysutils/docker-cli
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/docker-cli')
-rw-r--r--sysutils/docker-cli/Makefile30
-rw-r--r--sysutils/docker-cli/distinfo3
-rw-r--r--sysutils/docker-cli/files/patch-cli_config_credentials_default__store__freebsd.go16
-rw-r--r--sysutils/docker-cli/files/patch-cli_config_credentials_default__store__unsupported.go8
-rw-r--r--sysutils/docker-cli/pkg-descr6
-rw-r--r--sysutils/docker-cli/pkg-message8
6 files changed, 71 insertions, 0 deletions
diff --git a/sysutils/docker-cli/Makefile b/sysutils/docker-cli/Makefile
new file mode 100644
index 000000000000..a304c11b1f40
--- /dev/null
+++ b/sysutils/docker-cli/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= docker-cli
+DISTVERSIONPREFIX= v
+DISTVERSION= 29.4.2
+CATEGORIES= sysutils
+
+MAINTAINER= leafoliage@FreeBSD.org
+COMMENT= Open-source application container engine
+WWW= https://www.docker.com/
+
+LICENSE= APACHE20
+
+USES= cpe go
+USE_GITHUB= yes
+GH_ACCOUNT= docker
+GH_PROJECT= cli
+
+GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT}
+GO_TARGET= ${GO_PKGNAME}/cmd/docker
+#TAG_HASH!= fetch -qo - https://api.github.com/repos/docker/cli/git/ref/tags/${DISTVERSIONPREFIX}${PORTVERSION} | grep -oE '"[a-f0-9]*"' | cut -c 2-41
+#COMMIT_HASH!= fetch -qo - https://api.github.com/repos/docker/cli/git/tags/${TAG_HASH} | grep -oE '"object":\{"sha":"[a-f0-9]*"' | grep -oE '"[a-f0-9]*"' | cut -c 2-8
+COMMIT_HASH= 055a478
+GO_BUILDFLAGS= -ldflags "\
+ -X github.com/docker/cli/cli/version.Version=${PORTVERSION} \
+ -X github.com/docker/cli/cli/version.GitCommit=${COMMIT_HASH}"
+
+CONFLICTS_INSTALL= docker-tray # bin/docker
+
+PLIST_FILES= bin/docker
+
+.include <bsd.port.mk>
diff --git a/sysutils/docker-cli/distinfo b/sysutils/docker-cli/distinfo
new file mode 100644
index 000000000000..7245529e3977
--- /dev/null
+++ b/sysutils/docker-cli/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1778076574
+SHA256 (docker-cli-v29.4.2_GH0.tar.gz) = 87d5f01a880bdd329af5fb57120b83b7e3bd215d8046b67a0b6d303293e91a1f
+SIZE (docker-cli-v29.4.2_GH0.tar.gz) = 7052248
diff --git a/sysutils/docker-cli/files/patch-cli_config_credentials_default__store__freebsd.go b/sysutils/docker-cli/files/patch-cli_config_credentials_default__store__freebsd.go
new file mode 100644
index 000000000000..aa4f8cc91737
--- /dev/null
+++ b/sysutils/docker-cli/files/patch-cli_config_credentials_default__store__freebsd.go
@@ -0,0 +1,16 @@
+--- /dev/null 2026-05-06 21:47:11.530097000 +0800
++++ cli/config/credentials/default_store_freebsd.go 2026-05-06 21:47:00.912081000 +0800
+@@ -0,0 +1,13 @@
++package credentials
++
++import (
++ "os/exec"
++)
++
++func defaultCredentialsStore() string {
++ if _, err := exec.LookPath("pass"); err == nil {
++ return "pass"
++ }
++
++ return "secretservice"
++}
diff --git a/sysutils/docker-cli/files/patch-cli_config_credentials_default__store__unsupported.go b/sysutils/docker-cli/files/patch-cli_config_credentials_default__store__unsupported.go
new file mode 100644
index 000000000000..635079ddc212
--- /dev/null
+++ b/sysutils/docker-cli/files/patch-cli_config_credentials_default__store__unsupported.go
@@ -0,0 +1,8 @@
+--- cli/config/credentials/default_store_unsupported.go.orig 2026-05-06 21:53:08.203888000 +0800
++++ cli/config/credentials/default_store_unsupported.go 2026-05-06 21:53:28.419333000 +0800
+@@ -1,4 +1,4 @@
+-//go:build !windows && !darwin && !linux
++//go:build !windows && !darwin && !linux && !freebsd
+
+ package credentials
+
diff --git a/sysutils/docker-cli/pkg-descr b/sysutils/docker-cli/pkg-descr
new file mode 100644
index 000000000000..b3d214eebd2a
--- /dev/null
+++ b/sysutils/docker-cli/pkg-descr
@@ -0,0 +1,6 @@
+Docker is the world's leading software container platform. Developers use
+Docker to eliminate "works on my machine" problems when collaborating on code
+with co-workers. Operators use Docker to run and manage apps side-by-side in
+isolated containers to get better compute density. Enterprises use Docker to
+build agile software delivery pipelines to ship new features faster, more
+securely and with confidence for both Linux and Windows Server apps.
diff --git a/sysutils/docker-cli/pkg-message b/sysutils/docker-cli/pkg-message
new file mode 100644
index 000000000000..ceaa00075c1f
--- /dev/null
+++ b/sysutils/docker-cli/pkg-message
@@ -0,0 +1,8 @@
+[
+{ type: install
+ message: <<EOM
+This port contains Docker client only.
+For Docker server support, install docker-machine.
+EOM
+}
+]