git: 73cb22e55c17 - main - New port sysutils/containerd: Open and reliable container runtime

Bernhard Froehlich decke at FreeBSD.org
Wed May 12 19:45:04 UTC 2021


The branch main has been updated by decke:

URL: https://cgit.FreeBSD.org/ports/commit/?id=73cb22e55c1774d96b2c4eb96264c986453eb2e2

commit 73cb22e55c1774d96b2c4eb96264c986453eb2e2
Author:     Bernhard Froehlich <decke at FreeBSD.org>
AuthorDate: 2021-05-12 19:34:08 +0000
Commit:     Bernhard Froehlich <decke at FreeBSD.org>
CommitDate: 2021-05-12 19:44:12 +0000

    New port sysutils/containerd: Open and reliable container runtime
    
    containerd is an industry-standard container runtime with an emphasis
    on simplicity, robustness and portability. It is available as a daemon
    for Linux and Windows, which can manage the complete container lifecycle
    of its host system: image transfer and storage, container execution and
    supervision, low-level storage and network attachments, etc.
    
    WWW: https://containerd.io/
    
    Thanks to Samuel Karp <me at samuelkarp.com> for working on the FreeBSD
    support which is all upstream already!
---
 sysutils/Makefile                        |  1 +
 sysutils/containerd/Makefile             | 33 ++++++++++++++++++++++++++++++++
 sysutils/containerd/distinfo             |  3 +++
 sysutils/containerd/files/patch-Makefile | 13 +++++++++++++
 sysutils/containerd/pkg-descr            |  7 +++++++
 5 files changed, 57 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index c86a9a11153d..c1a3b351d023 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -209,6 +209,7 @@
     SUBDIR += consul-replicate
     SUBDIR += consul_exporter
     SUBDIR += container-diff
+    SUBDIR += containerd
     SUBDIR += contractor
     SUBDIR += copytape
     SUBDIR += coreos-ct
diff --git a/sysutils/containerd/Makefile b/sysutils/containerd/Makefile
new file mode 100644
index 000000000000..ea2214c0e1b4
--- /dev/null
+++ b/sysutils/containerd/Makefile
@@ -0,0 +1,33 @@
+PORTNAME=	containerd
+DISTVERSION=	1.5.0
+DISTVERSIONPREFIX=v
+CATEGORIES=	sysutils
+
+MAINTAINER=	decke at FreeBSD.org
+COMMENT=	Open and reliable container runtime
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	bash:shells/bash \
+		go:lang/go
+
+USES=		gmake
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	containerd
+GH_SUBDIR=	src/github.com/containerd/containerd
+
+MAKE_ENV=	${GO_ENV} \
+		GOFLAGS="${GO_BUILDFLAGS}" \
+		VERSION="${DISTVERSION}"
+
+PLIST_FILES=	bin/containerd \
+		bin/containerd-shim \
+		bin/containerd-stress \
+		bin/ctr
+
+do-install:
+	@(cd ${WRKSRC} && ${SETENV} DESTDIR="${STAGEDIR}${PREFIX}" ${MAKE_CMD} install)
+
+.include <bsd.port.mk>
diff --git a/sysutils/containerd/distinfo b/sysutils/containerd/distinfo
new file mode 100644
index 000000000000..dbb83a8c3889
--- /dev/null
+++ b/sysutils/containerd/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1620821987
+SHA256 (containerd-containerd-v1.5.0_GH0.tar.gz) = e1e443c6b4afe2e30b541eb9420edc8d525e0be51a900c4d7fb61365ee4a3fee
+SIZE (containerd-containerd-v1.5.0_GH0.tar.gz) = 7668466
diff --git a/sysutils/containerd/files/patch-Makefile b/sysutils/containerd/files/patch-Makefile
new file mode 100644
index 000000000000..b97ef729e828
--- /dev/null
+++ b/sysutils/containerd/files/patch-Makefile
@@ -0,0 +1,13 @@
+--- Makefile.orig	2021-05-03 20:52:36 UTC
++++ Makefile
+@@ -21,8 +21,8 @@ DESTDIR ?= /usr/local
+ TEST_IMAGE_LIST ?=
+ 
+ # Used to populate variables in version package.
+-VERSION=$(shell git describe --match 'v[0-9]*' --dirty='.m' --always)
+-REVISION=$(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi)
++VERSION?=unknown
++REVISION?=unknown
+ PACKAGE=github.com/containerd/containerd
+ SHIM_CGO_ENABLED ?= 0
+ 
diff --git a/sysutils/containerd/pkg-descr b/sysutils/containerd/pkg-descr
new file mode 100644
index 000000000000..dfa12c0425ba
--- /dev/null
+++ b/sysutils/containerd/pkg-descr
@@ -0,0 +1,7 @@
+containerd is an industry-standard container runtime with an emphasis on
+simplicity, robustness and portability. It is available as a daemon for
+Linux and Windows, which can manage the complete container lifecycle of
+its host system: image transfer and storage, container execution and
+supervision, low-level storage and network attachments, etc.
+
+WWW: https://containerd.io/


More information about the dev-commits-ports-all mailing list