Import docker-cli-19.03.13

ok paco@
Inputs from sthen@
Port submitted by Muhammad Kaisar Arkhan <hi at yukiisbo.red>

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.
This commit is contained in:
solene 2020-10-03 20:38:46 +00:00
parent 26b06fabae
commit 97b2561327
15 changed files with 198 additions and 0 deletions

View File

@ -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 <hi@yukiisbo.red>
# 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 <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (cli-19.03.13.tar.gz) = IbiKAOj3oxlMCuHeWjHj4XKO9qooBBWNy1Aqi1/Wris=
SIZE (cli-19.03.13.tar.gz) = 7798694

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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
+}

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/10/03 20:38:46 solene Exp $
@bin bin/docker