From 701f361672233c2580f1c1bbc6b3f7ec530c2858 Mon Sep 17 00:00:00 2001 From: Oleg Borodin Date: Fri, 5 May 2023 17:00:22 +0200 Subject: [PATCH] added go-md2man containerd --- kube/containerd/Makefile | 23 +++++++++++++++++++++ kube/containerd/distinfo | 3 +++ kube/containerd/files/containerd.in | 26 ++++++++++++++++++++++++ kube/containerd/files/patch-Makefile | 13 ++++++++++++ kube/containerd/pkg-descr | 5 +++++ kube/containerd/pkg-plist | 4 ++++ kube/kubectl/Makefile | 2 +- kube/kubectl/distinfo | 6 +++--- kube/skopeo/Makefile | 30 ++++++++++++++++++++++++++++ kube/skopeo/distinfo | 3 +++ kube/skopeo/pkg-descr | 2 ++ kube/skopeo/pkg-plist | 19 ++++++++++++++++++ text/go-md2man/Makefile | 15 ++++++++++++++ text/go-md2man/distinfo | 5 +++++ text/go-md2man/pkg-descr | 3 +++ 15 files changed, 155 insertions(+), 4 deletions(-) create mode 100644 kube/containerd/Makefile create mode 100644 kube/containerd/distinfo create mode 100644 kube/containerd/files/containerd.in create mode 100644 kube/containerd/files/patch-Makefile create mode 100644 kube/containerd/pkg-descr create mode 100644 kube/containerd/pkg-plist create mode 100644 kube/skopeo/Makefile create mode 100644 kube/skopeo/distinfo create mode 100644 kube/skopeo/pkg-descr create mode 100644 kube/skopeo/pkg-plist create mode 100644 text/go-md2man/Makefile create mode 100644 text/go-md2man/distinfo create mode 100644 text/go-md2man/pkg-descr diff --git a/kube/containerd/Makefile b/kube/containerd/Makefile new file mode 100644 index 00000000..5770a8ad --- /dev/null +++ b/kube/containerd/Makefile @@ -0,0 +1,23 @@ +PORTNAME= containerd +DISTVERSIONPREFIX=v +DISTVERSION= 1.7.0 +CATEGORIES= sysutils + +MAINTAINER= decke@FreeBSD.org +COMMENT= Open and reliable container runtime +WWW= https://containerd.io/ + +BUILD_DEPENDS= bash:lang/bash + +USES= cpe gmake go:modules,no_targets +USE_GITHUB= yes +GH_SUBDIR= src/github.com/containerd/containerd + +USE_RC_SUBR= containerd + +MAKE_ENV= ${GO_ENV} GOFLAGS="${GO_BUILDFLAGS}" VERSION="${DISTVERSION}" + +do-install: + cd ${WRKSRC} && ${SETENV} DESTDIR="${STAGEDIR}" ${MAKE_CMD} install + +.include diff --git a/kube/containerd/distinfo b/kube/containerd/distinfo new file mode 100644 index 00000000..74306e9f --- /dev/null +++ b/kube/containerd/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1678874063 +SHA256 (containerd-containerd-v1.7.0_GH0.tar.gz) = c80b1c7f04057108059fdec9c936fc1ec0dccafa45c00a1d54f14dceb6500552 +SIZE (containerd-containerd-v1.7.0_GH0.tar.gz) = 9648706 diff --git a/kube/containerd/files/containerd.in b/kube/containerd/files/containerd.in new file mode 100644 index 00000000..634a3d5b --- /dev/null +++ b/kube/containerd/files/containerd.in @@ -0,0 +1,26 @@ +#!/bin/sh +# +# PROVIDE: containerd +# REQUIRE: DAEMON +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable containerd: +# +# containerd_enable="YES" + +. /etc/rc.subr + +name="containerd" +rcvar="containerd_enable" + +pidfile="/var/run/${name}.pid" +command="/usr/sbin/daemon" +command_args="-P ${pidfile} -r -S -t ${name} -T ${name} %%LOCALBASE%%/bin/containerd" + +load_rc_config $name +: ${containerd_enable:=no} + +# containerd needs to execute a runtime (eg. runj) +PATH="${PATH}:%%PREFIX%%/sbin:%%PREFIX%%/bin" + +run_rc_command "$1" diff --git a/kube/containerd/files/patch-Makefile b/kube/containerd/files/patch-Makefile new file mode 100644 index 00000000..f2f630dc --- /dev/null +++ b/kube/containerd/files/patch-Makefile @@ -0,0 +1,13 @@ +--- Makefile.orig 2022-03-02 18:52:57 UTC ++++ Makefile +@@ -30,8 +30,8 @@ MANDIR ?= $(DATADIR)/man + 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/kube/containerd/pkg-descr b/kube/containerd/pkg-descr new file mode 100644 index 00000000..af5bc4f3 --- /dev/null +++ b/kube/containerd/pkg-descr @@ -0,0 +1,5 @@ +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. diff --git a/kube/containerd/pkg-plist b/kube/containerd/pkg-plist new file mode 100644 index 00000000..263dbd97 --- /dev/null +++ b/kube/containerd/pkg-plist @@ -0,0 +1,4 @@ +bin/containerd +bin/containerd-shim +bin/containerd-stress +bin/ctr diff --git a/kube/kubectl/Makefile b/kube/kubectl/Makefile index 403bdc01..e40515a4 100644 --- a/kube/kubectl/Makefile +++ b/kube/kubectl/Makefile @@ -1,5 +1,5 @@ PORTNAME= kubectl -PORTVERSION= 1.26.4 +PORTVERSION= 1.27.1 DISTVERSIONPREFIX= v CATEGORIES= sysutils diff --git a/kube/kubectl/distinfo b/kube/kubectl/distinfo index d81297ca..0d943244 100644 --- a/kube/kubectl/distinfo +++ b/kube/kubectl/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1683219252 -SHA256 (kubernetes-kubernetes-v1.26.4_GH0.tar.gz) = 70ec54b87bc956b601b89694b14a46616f68e060fef215ece799a9049fe050d9 -SIZE (kubernetes-kubernetes-v1.26.4_GH0.tar.gz) = 38229656 +TIMESTAMP = 1683271315 +SHA256 (kubernetes-kubernetes-v1.27.1_GH0.tar.gz) = 3a3f7c6b8cf1d9f03aa67ba2f04669772b1205b89826859f1636062d5f8bec3f +SIZE (kubernetes-kubernetes-v1.27.1_GH0.tar.gz) = 38048443 diff --git a/kube/skopeo/Makefile b/kube/skopeo/Makefile new file mode 100644 index 00000000..80a73d1b --- /dev/null +++ b/kube/skopeo/Makefile @@ -0,0 +1,30 @@ +PORTNAME= skopeo +DISTVERSIONPREFIX= v +DISTVERSION= 1.11.1 +CATEGORIES= sysutils + +MAINTAINER= dfr@FreeBSD.org +COMMENT= Inspect container images and repositories on registries +WWW= https://github.com/containers + +BUILD_DEPENDS+= bash:lang/bash +BUILD_DEPENDS+= curl:net/libcurl +BUILD_DEPENDS+= go-md2man:text/go-md2man +LIB_DEPENDS= libgpgme.so:security/gpgme +#RUN_DEPENDS= ${LOCALBASE}/etc/containers/containers.conf.sample:sysutils/containers-common + +USES= gmake go:modules,no_targets pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= containers +GH_PROJECT= skopeo + +do-install: + ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GMAKE} -C ${WRKSRC} \ + DESTDIR=${STAGEDIR} GOCACHE=${TMPDIR} \ + GO=${GO_CMD} install-binary install-docs install-completions + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/containers/registries.d + ${INSTALL_DATA} ${WRKSRC}/default.yaml ${STAGEDIR}${PREFIX}/etc/containers/registries.d/default.yaml + +post-install: compress-man + +.include diff --git a/kube/skopeo/distinfo b/kube/skopeo/distinfo new file mode 100644 index 00000000..c4a13162 --- /dev/null +++ b/kube/skopeo/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1676644409 +SHA256 (containers-skopeo-v1.11.1_GH0.tar.gz) = 7e2b327a687d2230e9075120fff1024e6c2f22738a4179030121c953dda7d3b5 +SIZE (containers-skopeo-v1.11.1_GH0.tar.gz) = 8071084 diff --git a/kube/skopeo/pkg-descr b/kube/skopeo/pkg-descr new file mode 100644 index 00000000..a1f5eb8a --- /dev/null +++ b/kube/skopeo/pkg-descr @@ -0,0 +1,2 @@ +Command line utility to inspect images and repositories directly on Docker +registries without the need to pull them. diff --git a/kube/skopeo/pkg-plist b/kube/skopeo/pkg-plist new file mode 100644 index 00000000..28ce7e83 --- /dev/null +++ b/kube/skopeo/pkg-plist @@ -0,0 +1,19 @@ +bin/skopeo +etc/containers/registries.d/default.yaml +man/man1/skopeo-copy.1.gz +man/man1/skopeo-delete.1.gz +man/man1/skopeo-generate-sigstore-key.1.gz +man/man1/skopeo-inspect.1.gz +man/man1/skopeo-list-tags.1.gz +man/man1/skopeo-login.1.gz +man/man1/skopeo-logout.1.gz +man/man1/skopeo-manifest-digest.1.gz +man/man1/skopeo-standalone-sign.1.gz +man/man1/skopeo-standalone-verify.1.gz +man/man1/skopeo-sync.1.gz +man/man1/skopeo.1.gz +share/bash-completion/completions/skopeo +@dir etc/containers/registries.d +@dir etc/containers +@dir share/bash-completion/completions +@dir share/bash-completion diff --git a/text/go-md2man/Makefile b/text/go-md2man/Makefile new file mode 100644 index 00000000..c69b2812 --- /dev/null +++ b/text/go-md2man/Makefile @@ -0,0 +1,15 @@ +PORTNAME= go-md2man +DISTVERSIONPREFIX= v +DISTVERSION= 2.0.2 +CATEGORIES= textproc + +MAINTAINER= mateusz@serveraptor.com +COMMENT= Converts Markdown into roff (man pages) +WWW= https://github.com/cpuguy83/go-md2man + +USES= go:modules +GO_MODULE= github.com/cpuguy83/go-md2man/v2 + +PLIST_FILES= bin/${PORTNAME} + +.include diff --git a/text/go-md2man/distinfo b/text/go-md2man/distinfo new file mode 100644 index 00000000..31369ed3 --- /dev/null +++ b/text/go-md2man/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1666129375 +SHA256 (go/textproc_go-md2man/go-md2man-v2.0.2/v2.0.2.mod) = 14c3afa2ef623555c1b4834d1f88b14df77549afee85e5750c19102465b78aba +SIZE (go/textproc_go-md2man/go-md2man-v2.0.2/v2.0.2.mod) = 100 +SHA256 (go/textproc_go-md2man/go-md2man-v2.0.2/v2.0.2.zip) = 70a7e609809cf2a92c5535104db5eb82d75c54bfcfed2d224e87dd2fd9729f62 +SIZE (go/textproc_go-md2man/go-md2man-v2.0.2/v2.0.2.zip) = 12539 diff --git a/text/go-md2man/pkg-descr b/text/go-md2man/pkg-descr new file mode 100644 index 00000000..888b842f --- /dev/null +++ b/text/go-md2man/pkg-descr @@ -0,0 +1,3 @@ +go-md2man: Converts Markdown into roff (man pages). + +It uses blackfriday to process Markdown.