mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
www-apps/anubis: drop 1.20.0
Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST anubis-src-vendor-npm-1.20.0.tar.gz 12276418 BLAKE2B 9402e527ea9f5782e67e21e727ac20454fec7179123798396a14f09df4662dc22727ab5e1408c5bb105301da0060bd45ff24a4b0d867302b98d5e4bb6b92f30b SHA512 23f0f673b7043de776ff45a95308c6e9b00c55e64ebccae4f159070fe2b34249d0d27cd4f9791b23e91d84eddbf3b19dbdf6b3aec353c5a2411ea6f2266435f6
|
||||
DIST anubis-src-vendor-npm-1.21.3.tar.gz 15106502 BLAKE2B bf7f8b884d89b1f4655b93eb8b00995986f8602cd8716c13ad7ae5ae444f925644c12d1c221febbbdec01b7032b7fdc58733f4ab6b4e158c35b583199a9622ce SHA512 ce2a04ba0ce85c5966384c259666b1988611bd88c3b1eee54e1de3bff09376f34971970d9146eb127dbe221a54d0d0419f3b648013095af5ed21a8fbe0eb75fb
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
# 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