diff --git a/sysutils/docker-cli/Makefile b/sysutils/docker-cli/Makefile new file mode 100644 index 00000000000..a7fbe60ea60 --- /dev/null +++ b/sysutils/docker-cli/Makefile @@ -0,0 +1,31 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2020/10/03 20:38:46 solene Exp $ + +COMMENT = command-line tool for controlling Docker + +V = 19.03.13 +PKGNAME = docker-${V} + +GH_ACCOUNT = docker +GH_PROJECT = cli +GH_TAGNAME = v${V} + + +CATEGORIES = sysutils + +HOMEPAGE = https://docs.docker.com/engine/reference/commandline/cli/ + +MAINTAINER = Muhammad Kaisar Arkhan + +# Apache 2.0 +PERMIT_PACKAGE = Yes + +WANTLIB += c pthread + +MODULES = lang/go +MODGO_LDFLAGS = -X github.com/docker/cli/cli/version.Version=${V} + +GO_PKGNAME = github.com/docker/cli +WRKSRC = ${MODGO_WORKSPACE}/src/${GO_PKGNAME} +ALL_TARGET = github.com/docker/cli/cmd/docker + +.include diff --git a/sysutils/docker-cli/distinfo b/sysutils/docker-cli/distinfo new file mode 100644 index 00000000000..6f5d7481582 --- /dev/null +++ b/sysutils/docker-cli/distinfo @@ -0,0 +1,2 @@ +SHA256 (cli-19.03.13.tar.gz) = IbiKAOj3oxlMCuHeWjHj4XKO9qooBBWNy1Aqi1/Wris= +SIZE (cli-19.03.13.tar.gz) = 7798694 diff --git a/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_containerd_content_local_store_unix_go b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_containerd_content_local_store_unix_go new file mode 100644 index 00000000000..af18b646245 --- /dev/null +++ b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_containerd_content_local_store_unix_go @@ -0,0 +1,11 @@ +$OpenBSD: patch-vendor_github_com_containerd_containerd_content_local_store_unix_go,v 1.1.1.1 2020/10/03 20:38:46 solene Exp $ + +Index: vendor/github.com/containerd/containerd/content/local/store_unix.go +--- vendor/github.com/containerd/containerd/content/local/store_unix.go.orig ++++ vendor/github.com/containerd/containerd/content/local/store_unix.go +@@ -1,4 +1,4 @@ +-// +build linux solaris darwin freebsd ++// +build linux solaris darwin freebsd openbsd + + /* + Copyright The containerd Authors. diff --git a/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_containerd_snapshotter_default_unix_go b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_containerd_snapshotter_default_unix_go new file mode 100644 index 00000000000..0564b4aa818 --- /dev/null +++ b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_containerd_snapshotter_default_unix_go @@ -0,0 +1,11 @@ +$OpenBSD: patch-vendor_github_com_containerd_containerd_snapshotter_default_unix_go,v 1.1.1.1 2020/10/03 20:38:46 solene Exp $ + +Index: vendor/github.com/containerd/containerd/snapshotter_default_unix.go +--- vendor/github.com/containerd/containerd/snapshotter_default_unix.go.orig ++++ vendor/github.com/containerd/containerd/snapshotter_default_unix.go +@@ -1,4 +1,4 @@ +-// +build darwin freebsd solaris ++// +build darwin freebsd solaris openbsd + + /* + Copyright The containerd Authors. diff --git a/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_containerd_sys_stat_unix_go b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_containerd_sys_stat_unix_go new file mode 100644 index 00000000000..f4404bdc8fc --- /dev/null +++ b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_containerd_sys_stat_unix_go @@ -0,0 +1,11 @@ +$OpenBSD: patch-vendor_github_com_containerd_containerd_sys_stat_unix_go,v 1.1.1.1 2020/10/03 20:38:46 solene Exp $ + +Index: vendor/github.com/containerd/containerd/sys/stat_unix.go +--- vendor/github.com/containerd/containerd/sys/stat_unix.go.orig ++++ vendor/github.com/containerd/containerd/sys/stat_unix.go +@@ -1,4 +1,4 @@ +-// +build linux solaris ++// +build linux solaris openbsd + + /* + Copyright The containerd Authors. diff --git a/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_devices_devices_unix_go b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_devices_devices_unix_go new file mode 100644 index 00000000000..ade54ef0fac --- /dev/null +++ b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_devices_devices_unix_go @@ -0,0 +1,11 @@ +$OpenBSD: patch-vendor_github_com_containerd_continuity_devices_devices_unix_go,v 1.1.1.1 2020/10/03 20:38:46 solene Exp $ + +Index: vendor/github.com/containerd/continuity/devices/devices_unix.go +--- vendor/github.com/containerd/continuity/devices/devices_unix.go.orig ++++ vendor/github.com/containerd/continuity/devices/devices_unix.go +@@ -1,4 +1,4 @@ +-// +build linux darwin freebsd solaris ++// +build linux darwin freebsd solaris openbsd + + /* + Copyright The containerd Authors. diff --git a/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_driver_driver_unix_go b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_driver_driver_unix_go new file mode 100644 index 00000000000..70e2c5a19d2 --- /dev/null +++ b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_driver_driver_unix_go @@ -0,0 +1,11 @@ +$OpenBSD: patch-vendor_github_com_containerd_continuity_driver_driver_unix_go,v 1.1.1.1 2020/10/03 20:38:46 solene Exp $ + +Index: vendor/github.com/containerd/continuity/driver/driver_unix.go +--- vendor/github.com/containerd/continuity/driver/driver_unix.go.orig ++++ vendor/github.com/containerd/continuity/driver/driver_unix.go +@@ -1,4 +1,4 @@ +-// +build linux darwin freebsd solaris ++// +build linux darwin freebsd solaris openbsd + + /* + Copyright The containerd Authors. diff --git a/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_driver_lchmod_unix_go b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_driver_lchmod_unix_go new file mode 100644 index 00000000000..c4c21c9e7c6 --- /dev/null +++ b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_driver_lchmod_unix_go @@ -0,0 +1,11 @@ +$OpenBSD: patch-vendor_github_com_containerd_continuity_driver_lchmod_unix_go,v 1.1.1.1 2020/10/03 20:38:46 solene Exp $ + +Index: vendor/github.com/containerd/continuity/driver/lchmod_unix.go +--- vendor/github.com/containerd/continuity/driver/lchmod_unix.go.orig ++++ vendor/github.com/containerd/continuity/driver/lchmod_unix.go +@@ -1,4 +1,4 @@ +-// +build darwin freebsd solaris ++// +build darwin freebsd solaris openbsd + + /* + Copyright The containerd Authors. diff --git a/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_fs_copy_unix_go b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_fs_copy_unix_go new file mode 100644 index 00000000000..fd5b84f1fe6 --- /dev/null +++ b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_fs_copy_unix_go @@ -0,0 +1,11 @@ +$OpenBSD: patch-vendor_github_com_containerd_continuity_fs_copy_unix_go,v 1.1.1.1 2020/10/03 20:38:46 solene Exp $ + +Index: vendor/github.com/containerd/continuity/fs/copy_unix.go +--- vendor/github.com/containerd/continuity/fs/copy_unix.go.orig ++++ vendor/github.com/containerd/continuity/fs/copy_unix.go +@@ -1,4 +1,4 @@ +-// +build solaris darwin freebsd ++// +build solaris darwin freebsd openbsd + + /* + Copyright The containerd Authors. diff --git a/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_fs_stat_openbsd_go b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_fs_stat_openbsd_go new file mode 100644 index 00000000000..ae7eafed015 --- /dev/null +++ b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_fs_stat_openbsd_go @@ -0,0 +1,50 @@ +$OpenBSD: patch-vendor_github_com_containerd_continuity_fs_stat_openbsd_go,v 1.1.1.1 2020/10/03 20:38:46 solene Exp $ + +Index: vendor/github.com/containerd/continuity/fs/stat_openbsd.go +--- vendor/github.com/containerd/continuity/fs/stat_openbsd.go.orig ++++ vendor/github.com/containerd/continuity/fs/stat_openbsd.go +@@ -0,0 +1,44 @@ ++// +build openbsd ++/* ++ Copyright The containerd Authors. ++ ++ Licensed under the Apache License, Version 2.0 (the "License"); ++ you may not use this file except in compliance with the License. ++ You may obtain a copy of the License at ++ ++ http://www.apache.org/licenses/LICENSE-2.0 ++ ++ Unless required by applicable law or agreed to in writing, software ++ distributed under the License is distributed on an "AS IS" BASIS, ++ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ See the License for the specific language governing permissions and ++ limitations under the License. ++*/ ++ ++package fs ++ ++import ( ++ "syscall" ++ "time" ++) ++ ++// StatAtime returns the Atim ++func StatAtime(st *syscall.Stat_t) syscall.Timespec { ++ return st.Atim ++} ++ ++// StatCtime returns the Ctim ++func StatCtime(st *syscall.Stat_t) syscall.Timespec { ++ return st.Ctim ++} ++ ++// StatMtime returns the Mtim ++func StatMtime(st *syscall.Stat_t) syscall.Timespec { ++ return st.Mtim ++} ++ ++// StatATimeAsTime returns st.Atim as a time.Time ++func StatATimeAsTime(st *syscall.Stat_t) time.Time { ++ // The int64 conversions ensure the line compiles for 32-bit systems as well. ++ return time.Unix(int64(st.Atim.Sec), int64(st.Atim.Nsec)) // nolint: unconvert ++} diff --git a/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_hardlinks_unix_go b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_hardlinks_unix_go new file mode 100644 index 00000000000..a9e5b7419e8 --- /dev/null +++ b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_hardlinks_unix_go @@ -0,0 +1,11 @@ +$OpenBSD: patch-vendor_github_com_containerd_continuity_hardlinks_unix_go,v 1.1.1.1 2020/10/03 20:38:46 solene Exp $ + +Index: vendor/github.com/containerd/continuity/hardlinks_unix.go +--- vendor/github.com/containerd/continuity/hardlinks_unix.go.orig ++++ vendor/github.com/containerd/continuity/hardlinks_unix.go +@@ -1,4 +1,4 @@ +-// +build linux darwin freebsd solaris ++// +build linux darwin freebsd solaris openbsd + + /* + Copyright The containerd Authors. diff --git a/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_resource_unix_go b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_resource_unix_go new file mode 100644 index 00000000000..1d678998148 --- /dev/null +++ b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_resource_unix_go @@ -0,0 +1,11 @@ +$OpenBSD: patch-vendor_github_com_containerd_continuity_resource_unix_go,v 1.1.1.1 2020/10/03 20:38:46 solene Exp $ + +Index: vendor/github.com/containerd/continuity/resource_unix.go +--- vendor/github.com/containerd/continuity/resource_unix.go.orig ++++ vendor/github.com/containerd/continuity/resource_unix.go +@@ -1,4 +1,4 @@ +-// +build linux darwin freebsd solaris ++// +build linux darwin freebsd solaris openbsd + + /* + Copyright The containerd Authors. diff --git a/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_sysx_nodata_unix_go b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_sysx_nodata_unix_go new file mode 100644 index 00000000000..49240f95344 --- /dev/null +++ b/sysutils/docker-cli/patches/patch-vendor_github_com_containerd_continuity_sysx_nodata_unix_go @@ -0,0 +1,11 @@ +$OpenBSD: patch-vendor_github_com_containerd_continuity_sysx_nodata_unix_go,v 1.1.1.1 2020/10/03 20:38:46 solene Exp $ + +Index: vendor/github.com/containerd/continuity/sysx/nodata_unix.go +--- vendor/github.com/containerd/continuity/sysx/nodata_unix.go.orig ++++ vendor/github.com/containerd/continuity/sysx/nodata_unix.go +@@ -1,4 +1,4 @@ +-// +build darwin freebsd ++// +build darwin freebsd openbsd + + /* + Copyright The containerd Authors. diff --git a/sysutils/docker-cli/pkg/DESCR b/sysutils/docker-cli/pkg/DESCR new file mode 100644 index 00000000000..e75dfe81707 --- /dev/null +++ b/sysutils/docker-cli/pkg/DESCR @@ -0,0 +1,3 @@ +The Docker command-line tool allows you to control Docker hosts. You +can use it to build docker images, start docker containers, execute +commands inside containers, see running containers, and view logs. diff --git a/sysutils/docker-cli/pkg/PLIST b/sysutils/docker-cli/pkg/PLIST new file mode 100644 index 00000000000..f8b704b34a5 --- /dev/null +++ b/sysutils/docker-cli/pkg/PLIST @@ -0,0 +1,2 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2020/10/03 20:38:46 solene Exp $ +@bin bin/docker