mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
www-apps/anubis: add 1.22.0
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
DIST anubis-src-vendor-npm-1.21.3.tar.gz 15106502 BLAKE2B bf7f8b884d89b1f4655b93eb8b00995986f8602cd8716c13ad7ae5ae444f925644c12d1c221febbbdec01b7032b7fdc58733f4ab6b4e158c35b583199a9622ce SHA512 ce2a04ba0ce85c5966384c259666b1988611bd88c3b1eee54e1de3bff09376f34971970d9146eb127dbe221a54d0d0419f3b648013095af5ed21a8fbe0eb75fb
|
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
|
||||||
|
|||||||
51
www-apps/anubis/anubis-1.22.0.ebuild
Normal file
51
www-apps/anubis/anubis-1.22.0.ebuild
Normal file
@@ -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/anubis@.service
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user