commit: 61792c116e41df6990b05ecd7479c71a71664b57 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> AuthorDate: Tue Apr 29 11:55:47 2025 +0000 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> CommitDate: Tue Apr 29 11:55:52 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=61792c11
www-apps/anubis: add 1.17.0 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> www-apps/anubis/Manifest | 1 + www-apps/anubis/anubis-1.17.0.ebuild | 49 ++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/www-apps/anubis/Manifest b/www-apps/anubis/Manifest index 446a42806..c013b0e13 100644 --- a/www-apps/anubis/Manifest +++ b/www-apps/anubis/Manifest @@ -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 diff --git a/www-apps/anubis/anubis-1.17.0.ebuild b/www-apps/anubis/anubis-1.17.0.ebuild new file mode 100644 index 000000000..6edbc56f6 --- /dev/null +++ b/www-apps/anubis/anubis-1.17.0.ebuild @@ -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/[email protected] + + newinitd "${FILESDIR}"/anubis.initd anubis + newconfd "${FILESDIR}"/anubis.confd anubis + + insinto /etc/anubis + doins run/default.env + + einstalldocs +}
