summaryrefslogtreecommitdiff
path: root/www/go-anubis
diff options
context:
space:
mode:
Diffstat (limited to 'www/go-anubis')
-rw-r--r--www/go-anubis/Makefile13
-rw-r--r--www/go-anubis/distinfo6
-rw-r--r--www/go-anubis/pkg-plist52
3 files changed, 63 insertions, 8 deletions
diff --git a/www/go-anubis/Makefile b/www/go-anubis/Makefile
index 2aaa7bb5a2ba..43154d958233 100644
--- a/www/go-anubis/Makefile
+++ b/www/go-anubis/Makefile
@@ -1,7 +1,7 @@
PORTNAME= anubis
DISTVERSIONPREFIX= v
-DISTVERSION= 1.20.0
-PORTREVISION= 1
+DISTVERSION= 1.21.3
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= https://github.com/techarohq/${PORTNAME}/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/
PKGNAMEPREFIX= go-
@@ -17,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>
diff --git a/www/go-anubis/distinfo b/www/go-anubis/distinfo
index 75103172451a..645294eb94ca 100644
--- a/www/go-anubis/distinfo
+++ b/www/go-anubis/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1751459211
-SHA256 (anubis-src-vendor-npm-1.20.0.tar.gz) = b94971d51f4ae416c3a7bf17f17ab01a07d36d000ba4afd4494eb45791320890
-SIZE (anubis-src-vendor-npm-1.20.0.tar.gz) = 12276418
+TIMESTAMP = 1753561488
+SHA256 (anubis-src-vendor-npm-1.21.3.tar.gz) = f4b5af04d014dd3bac988995d076b4e3492d44d6ed6c6b4c657bea4d007da040
+SIZE (anubis-src-vendor-npm-1.21.3.tar.gz) = 15106502
diff --git a/www/go-anubis/pkg-plist b/www/go-anubis/pkg-plist
new file mode 100644
index 000000000000..c5de54c48c29
--- /dev/null
+++ b/www/go-anubis/pkg-plist
@@ -0,0 +1,52 @@
+sbin/anubis
+sbin/robots2policy
+%%DATADIR%%/apps/allow-api-routes.yaml
+%%DATADIR%%/apps/bookstack-saml.yaml
+%%DATADIR%%/apps/gitea-rss-feeds.yaml
+%%DATADIR%%/apps/qualys-ssl-labs.yml
+%%DATADIR%%/apps/searx-checker.yml
+%%DATADIR%%/botPolicies.json
+%%DATADIR%%/botPolicies.yaml
+%%DATADIR%%/bots/_deny-pathological.yaml
+%%DATADIR%%/bots/aggressive-brazilian-scrapers.yaml
+%%DATADIR%%/bots/ai-catchall.yaml
+%%DATADIR%%/bots/ai-robots-txt.yaml
+%%DATADIR%%/bots/cloudflare-workers.yaml
+%%DATADIR%%/bots/headless-browsers.yaml
+%%DATADIR%%/bots/irc-bots/archlinux-phrik.yaml
+%%DATADIR%%/bots/irc-bots/gentoo-chat.yaml
+%%DATADIR%%/bots/us-ai-scraper.yaml
+%%DATADIR%%/clients/ai.yaml
+%%DATADIR%%/clients/git.yaml
+%%DATADIR%%/clients/go-get.yaml
+%%DATADIR%%/clients/mistral-mistralai-user.yaml
+%%DATADIR%%/clients/openai-chatgpt-user.yaml
+%%DATADIR%%/clients/small-internet-browsers/_permissive.yaml
+%%DATADIR%%/clients/small-internet-browsers/netsurf.yaml
+%%DATADIR%%/clients/small-internet-browsers/palemoon.yaml
+%%DATADIR%%/clients/x-firefox-ai.yaml
+%%DATADIR%%/common/allow-api-like.yaml
+%%DATADIR%%/common/allow-private-addresses.yaml
+%%DATADIR%%/common/json-api.yaml
+%%DATADIR%%/common/keep-internet-working.yaml
+%%DATADIR%%/common/rfc-violations.yaml
+%%DATADIR%%/crawlers/_allow-good.yaml
+%%DATADIR%%/crawlers/ai-search.yaml
+%%DATADIR%%/crawlers/ai-training.yaml
+%%DATADIR%%/crawlers/applebot.yaml
+%%DATADIR%%/crawlers/bingbot.yaml
+%%DATADIR%%/crawlers/commoncrawl.yaml
+%%DATADIR%%/crawlers/duckduckbot.yaml
+%%DATADIR%%/crawlers/googlebot.yaml
+%%DATADIR%%/crawlers/internet-archive.yaml
+%%DATADIR%%/crawlers/kagibot.yaml
+%%DATADIR%%/crawlers/marginalia.yaml
+%%DATADIR%%/crawlers/mojeekbot.yaml
+%%DATADIR%%/crawlers/openai-gptbot.yaml
+%%DATADIR%%/crawlers/openai-searchbot.yaml
+%%DATADIR%%/crawlers/qwantbot.yaml
+%%DATADIR%%/meta/README.md
+%%DATADIR%%/meta/ai-block-aggressive.yaml
+%%DATADIR%%/meta/ai-block-moderate.yaml
+%%DATADIR%%/meta/ai-block-permissive.yaml
+%%DATADIR%%/services/uptime-robot.yaml