added go-md2man containerd

This commit is contained in:
2023-05-05 17:00:22 +02:00
parent ec94a0e78f
commit 701f361672
15 changed files with 155 additions and 4 deletions

23
kube/containerd/Makefile Normal file
View File

@@ -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 <bsd.port.mk>

3
kube/containerd/distinfo Normal file
View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,4 @@
bin/containerd
bin/containerd-shim
bin/containerd-stress
bin/ctr

View File

@@ -1,5 +1,5 @@
PORTNAME= kubectl
PORTVERSION= 1.26.4
PORTVERSION= 1.27.1
DISTVERSIONPREFIX= v
CATEGORIES= sysutils

View File

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

30
kube/skopeo/Makefile Normal file
View File

@@ -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 <bsd.port.mk>

3
kube/skopeo/distinfo Normal file
View File

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

2
kube/skopeo/pkg-descr Normal file
View File

@@ -0,0 +1,2 @@
Command line utility to inspect images and repositories directly on Docker
registries without the need to pull them.

19
kube/skopeo/pkg-plist Normal file
View File

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

15
text/go-md2man/Makefile Normal file
View File

@@ -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 <bsd.port.mk>

5
text/go-md2man/distinfo Normal file
View File

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

3
text/go-md2man/pkg-descr Normal file
View File

@@ -0,0 +1,3 @@
go-md2man: Converts Markdown into roff (man pages).
It uses blackfriday to process Markdown.