diff options
Diffstat (limited to 'www/go-anubis')
-rw-r--r-- | www/go-anubis/Makefile | 10 | ||||
-rw-r--r-- | www/go-anubis/pkg-plist | 52 |
2 files changed, 59 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> 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 |