summaryrefslogtreecommitdiff
path: root/www/go-anubis/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/go-anubis/Makefile')
-rw-r--r--www/go-anubis/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/www/go-anubis/Makefile b/www/go-anubis/Makefile
index 5c04b16c03ab..5b2d3aaee7b2 100644
--- a/www/go-anubis/Makefile
+++ b/www/go-anubis/Makefile
@@ -1,6 +1,6 @@
PORTNAME= anubis
DISTVERSIONPREFIX= v
-DISTVERSION= 1.21.3
+DISTVERSION= 1.22.0
CATEGORIES= www
MASTER_SITES= https://github.com/techarohq/${PORTNAME}/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/
PKGNAMEPREFIX= go-
@@ -16,15 +16,20 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:1.24,no_targets
USE_RC_SUBR= ${PORTNAME}
-PLIST_FILES= sbin/${PORTNAME} \
- sbin/robots2policy
-
ALL_TARGET= prebaked-build
+MAKE_FLAGS= VERSION=${DISTVERSION} GOFLAGS="-buildvcs=false"
+
+post-patch:
+ @${FIND} ${WRKSRC}/data \( -name "*.yaml" -or -name "*.json" \) \
+ | ${XARGS} ${REINPLACE_CMD} -i '' -e 's|(data)|${DATADIR}|g'
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/var/${PORTNAME} \
${STAGEDIR}${PREFIX}/sbin/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/var/robots2policy \
${STAGEDIR}${PREFIX}/sbin/robots2policy
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} '-not -name *.go'
.include <bsd.port.mk>