diff options
Diffstat (limited to 'www/go-anubis/Makefile')
-rw-r--r-- | www/go-anubis/Makefile | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/www/go-anubis/Makefile b/www/go-anubis/Makefile index ee3227e436a3..43154d958233 100644 --- a/www/go-anubis/Makefile +++ b/www/go-anubis/Makefile @@ -1,8 +1,11 @@ PORTNAME= anubis DISTVERSIONPREFIX= v -DISTVERSION= 1.15.1 +DISTVERSION= 1.21.3 +PORTREVISION= 2 CATEGORIES= www +MASTER_SITES= https://github.com/techarohq/${PORTNAME}/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/ PKGNAMEPREFIX= go- +DISTNAME= anubis-src-vendor-npm-${DISTVERSION} MAINTAINER= dch@FreeBSD.org COMMENT= Anti-scraper web proxy using browser-based proof-of-work challenges @@ -11,17 +14,21 @@ WWW= https://anubis.techaro.lol/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -USES= go:modules,1.24 +USES= go:1.24,no_targets USE_RC_SUBR= ${PORTNAME} -GO_MODULE= github.com/techarohq/${PORTNAME} -GO_TARGET= ./cmd/${PORTNAME} -GO_BUILDFLAGS= -ldflags="-X github.com/TecharoHQ/anubis.Version=v${DISTVERSION}" +ALL_TARGET= prebaked-build -PLIST_FILES= sbin/${PORTNAME} +post-patch: + @${FIND} ${WRKSRC}/data \( -name "*.yaml" -or -name "*.json" \) \ + | ${XARGS} ${REINPLACE_CMD} -i '' -e 's|(data)|${DATADIR}|g' do-install: - ${INSTALL_PROGRAM} ${WRKDIR}/bin/${PORTNAME} \ + ${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> |