aboutsummaryrefslogtreecommitdiff
path: root/sysutils/nerdctl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/nerdctl/Makefile')
-rw-r--r--sysutils/nerdctl/Makefile45
1 files changed, 25 insertions, 20 deletions
diff --git a/sysutils/nerdctl/Makefile b/sysutils/nerdctl/Makefile
index 4908cf87b8b1..ab3d7f8e0905 100644
--- a/sysutils/nerdctl/Makefile
+++ b/sysutils/nerdctl/Makefile
@@ -1,7 +1,6 @@
PORTNAME= nerdctl
-DISTVERSIONPREFIX=v
-DISTVERSION= 2.1.3
-PORTREVISION= 1
+DISTVERSIONPREFIX= v
+DISTVERSION= 2.2.0
CATEGORIES= sysutils
MAINTAINER= laurent.chardon@gmail.com
@@ -11,40 +10,46 @@ WWW= https://github.com/containerd/nerdctl
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= go:1.23,modules
-
-USE_GITHUB= yes
-GH_ACCOUNT= containerd
-GH_PROJECT= ${PORTNAME}
-GO_MOD_DIST= github
+USES= go:1.24,modules
GO_MODULE= github.com/containerd/nerdctl/v2
GO_TARGET= ./cmd/${PORTNAME}
GO_BUILDFLAGS= -ldflags "-s -w -X ${GO_MODULE}/pkg/version.Version=${DISTVERSIONFULL}"
-PLIST_FILES= bin/containerd-rootless.sh \
- bin/containerd-rootless-setuptool.sh \
+PLIST_FILES= bin/containerd-rootless-setuptool.sh \
+ bin/containerd-rootless.sh \
bin/nerdctl \
etc/bash_completion.d/${PORTNAME} \
share/fish/vendor_completions.d/${PORTNAME}.fish \
share/zsh/site-functions/_${PORTNAME}
+PORTDOCS= *
+
+OPTIONS_DEFINE= DOCS
+
pre-fetch:
- @${MKDIR} ${DISTDIR}/${DIST_SUBDIR}
+ @${MKDIR} ${DISTDIR}/${DIST_SUBDIR}/mod/tigron
[ -e ${DISTDIR}/${DIST_SUBDIR}/go.mod ] || \
(${FETCH_CMD} ${FETCH_BEFORE_ARGS} \
- https://raw.githubusercontent.com/containerd/nerdctl/v2.1.3/go.mod \
+ https://raw.githubusercontent.com/containerd/nerdctl/v${DISTVERSION}/go.mod \
-o ${DISTDIR}/${DIST_SUBDIR}/go.mod; \
${REINPLACE_CMD} '/tigron/d' ${DISTDIR}/${DIST_SUBDIR}/go.mod)
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/extras/rootless/* ${STAGEDIR}${PREFIX}/bin
- @${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
- @${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d
- @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
- @${MKDIR} ${WRKDIR}/tmp
- ${STAGEDIR}${PREFIX}/bin/${PORTNAME} --data-root=${WRKDIR}/tmp completion bash > ${STAGEDIR}${PREFIX}/etc/bash_completion.d/${PORTNAME}
- ${STAGEDIR}${PREFIX}/bin/${PORTNAME} --data-root=${WRKDIR}/tmp completion fish > ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d/${PORTNAME}.fish
- ${STAGEDIR}${PREFIX}/bin/${PORTNAME} --data-root=${WRKDIR}/tmp completion zsh > ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_${PORTNAME}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d \
+ ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d \
+ ${STAGEDIR}${PREFIX}/share/zsh/site-functions \
+ ${WRKDIR}/tmp
+ ${STAGEDIR}${PREFIX}/bin/${PORTNAME} --data-root=${WRKDIR}/tmp completion bash \
+ > ${STAGEDIR}${PREFIX}/etc/bash_completion.d/${PORTNAME}
+ ${STAGEDIR}${PREFIX}/bin/${PORTNAME} --data-root=${WRKDIR}/tmp completion fish \
+ > ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d/${PORTNAME}.fish
+ ${STAGEDIR}${PREFIX}/bin/${PORTNAME} --data-root=${WRKDIR}/tmp completion zsh \
+ > ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_${PORTNAME}
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} "README.md docs" ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>