commit:     4e7570d8b1e1eab9c0dff4f16d80e52644927bd3
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sun Oct  5 10:52:38 2025 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Sun Oct  5 12:34:12 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4e7570d8

www-apps/anubis: add 1.22.0

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 www-apps/anubis/Manifest             |  1 +
 www-apps/anubis/anubis-1.22.0.ebuild | 51 ++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/www-apps/anubis/Manifest b/www-apps/anubis/Manifest
index dc4c2a9f29..71ad5335bf 100644
--- a/www-apps/anubis/Manifest
+++ b/www-apps/anubis/Manifest
@@ -1 +1,2 @@
 DIST anubis-src-vendor-npm-1.21.3.tar.gz 15106502 BLAKE2B 
bf7f8b884d89b1f4655b93eb8b00995986f8602cd8716c13ad7ae5ae444f925644c12d1c221febbbdec01b7032b7fdc58733f4ab6b4e158c35b583199a9622ce
 SHA512 
ce2a04ba0ce85c5966384c259666b1988611bd88c3b1eee54e1de3bff09376f34971970d9146eb127dbe221a54d0d0419f3b648013095af5ed21a8fbe0eb75fb
+DIST anubis-src-vendor-npm-1.22.0.tar.gz 15322719 BLAKE2B 
77ff5ad140a4730a1a547c56b4912a1cda71ce6fc3ead919bc394469d0f2a02f6511887f48c1e5413cdec7dc6e0146672f033b3f4f5c83a8029c3c8e8ee03344
 SHA512 
a0a43b384ae34e2f77d35153f86d1599a60f3d4a00cb0d44391e7ba5a20e3944ca92e48e18633a85398866a599e414344afde864be29c5d00eb5c26d0a6c0b3f

diff --git a/www-apps/anubis/anubis-1.22.0.ebuild 
b/www-apps/anubis/anubis-1.22.0.ebuild
new file mode 100644
index 0000000000..7abfd4ad99
--- /dev/null
+++ b/www-apps/anubis/anubis-1.22.0.ebuild
@@ -0,0 +1,51 @@
+# 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=( README.md data docs/docs )
+
+RDEPEND="acct-user/anubis"
+
+src_prepare() {
+       default
+       find docs/docs -name _category_.json -delete || die
+}
+
+src_compile() {
+       emake prebaked-build
+}
+
+src_test() {
+       local -x DONT_USE_NETWORK=1
+       ego test ./... -skip TestIntegrationGetOGTags_UnixSocket
+}
+
+src_install() {
+       dobin var/anubis
+       newbin var/robots2policy anubis-robots2policy
+       systemd_dounit run/[email protected]
+
+       newinitd run/openrc/anubis.initd anubis
+       newconfd run/openrc/anubis.confd anubis
+
+       insinto /etc/anubis
+       doins run/default.env
+
+       find data -name '*.go' -delete || die
+       einstalldocs
+}

Reply via email to