diff options
Diffstat (limited to 'www/go-anubis')
-rw-r--r-- | www/go-anubis/Makefile | 14 | ||||
-rw-r--r-- | www/go-anubis/distinfo | 6 | ||||
-rw-r--r-- | www/go-anubis/pkg-plist | 54 |
3 files changed, 66 insertions, 8 deletions
diff --git a/www/go-anubis/Makefile b/www/go-anubis/Makefile index 2aaa7bb5a2ba..5b2d3aaee7b2 100644 --- a/www/go-anubis/Makefile +++ b/www/go-anubis/Makefile @@ -1,7 +1,6 @@ PORTNAME= anubis DISTVERSIONPREFIX= v -DISTVERSION= 1.20.0 -PORTREVISION= 1 +DISTVERSION= 1.22.0 CATEGORIES= www MASTER_SITES= https://github.com/techarohq/${PORTNAME}/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/ PKGNAMEPREFIX= go- @@ -17,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> diff --git a/www/go-anubis/distinfo b/www/go-anubis/distinfo index 75103172451a..e3e4a90a63ac 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 = 1757319886 +SHA256 (anubis-src-vendor-npm-1.22.0.tar.gz) = b3a3c600dce35c3bfc1e81897cd30fe01c9f6c056c704d413934ebb196f94d73 +SIZE (anubis-src-vendor-npm-1.22.0.tar.gz) = 15322719 diff --git a/www/go-anubis/pkg-plist b/www/go-anubis/pkg-plist new file mode 100644 index 000000000000..207d6c667806 --- /dev/null +++ b/www/go-anubis/pkg-plist @@ -0,0 +1,54 @@ +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.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 +%%DATADIR%%/bots/custom-async-http-client.yaml +%%DATADIR%%/crawlers/alibaba-cloud.yaml +%%DATADIR%%/crawlers/huawei-cloud.yaml |