aboutsummaryrefslogtreecommitdiff
path: root/sysutils/nerdctl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/nerdctl/Makefile')
-rw-r--r--sysutils/nerdctl/Makefile38
1 files changed, 20 insertions, 18 deletions
diff --git a/sysutils/nerdctl/Makefile b/sysutils/nerdctl/Makefile
index 5a2f73f90136..ab3d7f8e0905 100644
--- a/sysutils/nerdctl/Makefile
+++ b/sysutils/nerdctl/Makefile
@@ -1,7 +1,6 @@
PORTNAME= nerdctl
DISTVERSIONPREFIX= v
-DISTVERSION= 2.1.6
-PORTREVISION= 1
+DISTVERSION= 2.2.0
CATEGORIES= sysutils
MAINTAINER= laurent.chardon@gmail.com
@@ -29,25 +28,28 @@ PORTDOCS= *
OPTIONS_DEFINE= DOCS
pre-fetch:
- @${MKDIR} ${DISTDIR}/${DIST_SUBDIR}/mod/tigron
- [ -e ${DISTDIR}/${DIST_SUBDIR}/go.mod ] || \
- (${FETCH_CMD} ${FETCH_BEFORE_ARGS} \
- 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)
+ @${MKDIR} ${DISTDIR}/${DIST_SUBDIR}/mod/tigron
+ [ -e ${DISTDIR}/${DIST_SUBDIR}/go.mod ] || \
+ (${FETCH_CMD} ${FETCH_BEFORE_ARGS} \
+ 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}
+ ${INSTALL_SCRIPT} ${WRKSRC}/extras/rootless/* ${STAGEDIR}${PREFIX}/bin
+ @${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})
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} "README.md docs" ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>