New package: anubis-1.16.0.

This commit is contained in:
Luca Matei Pintilie 2025-04-18 00:58:22 +02:00 committed by Duncan Overbruck
parent b0aeccc41f
commit 94a2a5a6c5
3 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,7 @@
#!/usr/bin/env sh
exec 2>&1
[ -r ./conf ] && . ./conf
exec chpst -u _anubis:_anubis anubis

View file

@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 4041096..c672d64 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,7 @@
"scripts": {
"test": "npm run assets && go test ./...",
"test:integration": "npm run assets && go test -v ./internal/test",
- "assets": "go generate ./... && ./web/build.sh && ./xess/build.sh",
+ "assets": "./web/build.sh && ./xess/build.sh",
"build": "npm run assets && go build -o ./var/anubis ./cmd/anubis",
"dev": "npm run assets && go run ./cmd/anubis --use-remote-address",
"container": "npm run assets && go run ./cmd/containerbuild",

29
srcpkgs/anubis/template Normal file
View file

@ -0,0 +1,29 @@
# Template file for 'anubis'
pkgname=anubis
version=1.18.0
revision=1
build_style=go
go_import_path="github.com/TecharoHQ/anubis"
go_ldflags="-X ${go_import_path}.Version=${version}"
go_package=./cmd/anubis
make_check_args="-skip=TestPlaywrightBrowser"
hostmakedepends="nodejs esbuild zstd"
short_desc="Weighs the soul of requests using proof-of-work to stop crawlers"
maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
license="MIT"
homepage="https://anubis.techaro.lol/"
changelog="https://github.com/TecharoHQ/anubis/releases"
distfiles="https://github.com/TecharoHQ/anubis/archive/refs/tags/v${version}.tar.gz"
checksum=b543f3c4af32a71994f4290b901b5670ce3cc7756b9db2c86d2569286d6dd6ef
system_accounts="_anubis"
pre_build() {
npm install --ignore-scripts
npm run assets
}
post_install() {
vsv anubis
vlicense LICENSE
}