www-apps/anubis: add 1.17.0

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2025-04-29 16:55:47 +05:00
parent ba06937fe4
commit 61792c116e
2 changed files with 50 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST anubis-src-vendor-npm-1.16.0.tar.gz 5194724 BLAKE2B 7de4b65e86c7bcd2b909189bab3541f2d074877c59a2402e765e9733ae613c84c4e55819a2ea8f42d6c45af02cf55c47482c773ea1089607e075767021fdb135 SHA512 772547e0b9459d13ff3ac3bb86819e5803de1f12a8729b78cc4f50f69b16bbaddc94e3c329be5f1d2426688b3a8a4c05c1ac1039e953febb893faf9400d75475
DIST anubis-src-vendor-npm-1.17.0.tar.gz 5103679 BLAKE2B fdbe7e443c29df2eec68cf6b7e6e20150b34d59244dedb188230dffa10d113d1e493981a6cdae46369a01ac87e2bbda733f997934ecbe6edfcb60bd6e99d712f SHA512 7c2688613129582a6ab943a0110e66fd053489aae63e8d71c9d11f13b501576e5ffd09db24674293d67a2bf24f0c377e8681a72279bdc63bb7924996ef70408b

View File

@@ -0,0 +1,49 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module systemd
DESCRIPTION="Weighs the soul of incoming HTTP requests to stop AI crawlers"
HOMEPAGE="
https://anubis.techaro.lol/
https://github.com/TecharoHQ/anubis
"
SRC_URI="https://github.com/TecharoHQ/anubis/releases/download/v${PV}/anubis-src-vendor-npm-${PV}.tar.gz"
S="${WORKDIR}/anubis-src-vendor-npm-${PV}"
LICENSE="Apache-2.0 BSD MIT OFL-1.1"
SLOT="0"
KEYWORDS="~amd64"
DOCS=(
# from yeetfile.js
README.md
docs/docs/CHANGELOG.md
docs/docs/admin/policies.mdx
docs/docs/admin/native-install.mdx
data/botPolicies.{json,yaml}
)
src_compile() {
emake prebaked-build
}
src_test() {
local -x DONT_USE_NETWORK=1
ego test ./... || die
}
src_install() {
dobin var/anubis
systemd_dounit run/anubis@.service
newinitd "${FILESDIR}"/anubis.initd anubis
newconfd "${FILESDIR}"/anubis.confd anubis
insinto /etc/anubis
doins run/default.env
einstalldocs
}