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/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/www/go-anubis/Makefile b/www/go-anubis/Makefile
index 5c04b16c03ab..43154d958233 100644
--- a/www/go-anubis/Makefile
+++ b/www/go-anubis/Makefile
@@ -1,6 +1,7 @@
PORTNAME= anubis
DISTVERSIONPREFIX= v
DISTVERSION= 1.21.3
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= https://github.com/techarohq/${PORTNAME}/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/
PKGNAMEPREFIX= go-
@@ -16,15 +17,18 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:1.24,no_targets
USE_RC_SUBR= ${PORTNAME}
-PLIST_FILES= sbin/${PORTNAME} \
- sbin/robots2policy
-
ALL_TARGET= prebaked-build
+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>