1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/net/rospo/Makefile
2023-09-08 09:34:56 -05:00

37 lines
1.2 KiB
Makefile

PORTNAME= rospo
DISTVERSIONPREFIX= v
DISTVERSION= 0.11.4
PORTREVISION= 2
CATEGORIES= net net-vpn sysutils
MAINTAINER= fuz@FreeBSD.org
COMMENT= Simple and reliable ssh tunnels with embedded ssh server
WWW= https://github.com/ferama/rospo
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
GO_MODULE= github.com/ferama/rospo
GO_BUILDFLAGS= -ldflags="-X github.com/ferama/rospo/cmd.Version=${PKGVERSION} ${STRIP}"
OPTIONS_DEFINE= DOCS
post-install:
@${ECHO_MSG} '====> installing shell completion files'
${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
${GO_WRKDIR_BIN}/rospo completion bash \
>${STAGEDIR}${PREFIX}/etc/bash_completion.d/rospo
${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d
${GO_WRKDIR_BIN}/rospo completion fish \
>${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d/rospo.fish
${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site_functions
${GO_WRKDIR_BIN}/rospo completion zsh \
>${STAGEDIR}${PREFIX}/share/zsh/site_functions/_rospo
@${ECHO_MSG} '====> installing documentation files'
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/
${INSTALL_MAN} ${WRKSRC}/cmd/configs/config_template.yaml ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>