diff options
Diffstat (limited to 'dns/doggo/Makefile')
-rw-r--r-- | dns/doggo/Makefile | 43 |
1 files changed, 37 insertions, 6 deletions
diff --git a/dns/doggo/Makefile b/dns/doggo/Makefile index f5e7e6f3589e..9299aea2e2d3 100644 --- a/dns/doggo/Makefile +++ b/dns/doggo/Makefile @@ -1,7 +1,7 @@ PORTNAME= doggo DISTVERSIONPREFIX= v -DISTVERSION= 0.5.7 -PORTREVISION= 7 +DISTVERSION= 1.0.4 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= dns @@ -12,22 +12,53 @@ WWW= https://github.com/mr-karan/doggo LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE +FLAVORS= default webui +FLAVOR?= ${FLAVORS:[1]} +webui_PKGNAMESUFFIX= -webui + USES= go:modules +.if ${FLAVOR} == webui +COMMENT+= (web UI version) +.endif + GO_MODULE= github.com/mr-karan/doggo +.if ${FLAVOR} == default GO_TARGET= ./cmd/${PORTNAME} +.endif +.if ${FLAVOR} == webui +GO_TARGET= ./web +.endif +.if ${FLAVOR} == default PLIST_FILES= bin/${PORTNAME} \ + share/bash-completion/completions/_${PORTNAME} \ share/fish/completions/${PORTNAME}.fish \ share/zsh/site-functions/_${PORTNAME} +.endif +.if ${FLAVOR} == webui +PLIST_FILES= bin/${PORTNAME}-webui +.endif -post-install: - # install completions +.if ${FLAVOR} == default +post-install: # install completions + # bash + @${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions + ${STAGEDIR}${PREFIX}/bin/${PORTNAME} completions bash > \ + ${STAGEDIR}${PREFIX}/share/bash-completion/completions/_${PORTNAME} + # fish @${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions - ${INSTALL_DATA} ${WRKSRC}/completions/${PORTNAME}.fish \ + ${STAGEDIR}${PREFIX}/bin/${PORTNAME} completions fish > \ ${STAGEDIR}${PREFIX}/share/fish/completions/${PORTNAME}.fish + # zsh @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions - ${INSTALL_DATA} ${WRKSRC}/completions/${PORTNAME}.zsh \ + ${STAGEDIR}${PREFIX}/bin/${PORTNAME} completions zsh > \ ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_${PORTNAME} +.endif + +.if ${FLAVOR} == webui +post-install: # rename executable + @${MV} ${STAGEDIR}${PREFIX}/bin/web ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-webui +.endif .include <bsd.port.mk> |