mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
net-dns/blocky: update to 0.25
Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
This commit is contained in:
@@ -7,3 +7,6 @@ DIST blocky-0.23.tar.gz 7236537 BLAKE2B 4dd8b4a9587ed2b768ff2cf8809e14242032d7e8
|
||||
DIST blocky-0.24-deps.tar.xz 5931984 BLAKE2B 834f637649051cd84950bfa2cf80e2e41972e746900dc86a5ca933a17eb4e15d75ab3813e3ddc02ec53945b1114a4ac2624535ca80210df479e254e1483122c0 SHA512 ac5b371a037429b5e51ced17434ac168895cb33e41f876ba286a3fd4d0ec779f68355603c0eeaa6f09c55eb552922257f8d27c409e661b5f9ebbe240c7a6ea57
|
||||
DIST blocky-0.24-docs.tar.gz 7335085 BLAKE2B 094686354b65b8b95391c5381790c6ee6198475155dc80099d3adcb7e3ee6598d0ec4a191a15d1c3a745d9ac6e4290bc048747ef551c9d07c5cf740dee3a922b SHA512 c4151e1903945d9396c341927178e6cd4e0a82be5899f610be1746a14e1c3b4c315850cc2f6e00ec248e3a8ba2428e2f8ec0e7ddcaf936af177cb064c4edbaf4
|
||||
DIST blocky-0.24.tar.gz 7246810 BLAKE2B ec6ddbdab6f77f039e5b79e4092239ae17b003659e02bcf4d81a6371be5e5f3c9f5cc071b3a2b8ad6d0a5cc11834da5ef618445288ba1f3ae8306f8629931cbf SHA512 d89e417157a2f45232f264eed597849bf38e4ad7407d215e5ebe9b2bd84e2b31f1c434b9df915c295272214a3398fb73302814503bca5ca41b748363ecc656e6
|
||||
DIST blocky-0.25-deps.tar.xz 6060720 BLAKE2B 1cb52169ba9e23c209ca9af4ef7199491dd0844342cd6baf6ca01db71ac03a5b94866356417627eb21ff644602d93344fd6666d5d0ffbbe578be8d300eb3d882 SHA512 1cbc8c12b71ab0cd81d86a0ce3e1466ac80d3ae1ec842f73f3de60d40fff84fb89f22d7aa6a0b75e5f725e2b12a614d27290c62ae192fb2746d847ff59192369
|
||||
DIST blocky-0.25-docs.tar.gz 8494233 BLAKE2B 1ed628a51d2baefa0926131aa533385aa83e1113252532ba8a58782cd33a018f0813c78284949dd67ed366d2a166cdf2866aef70fb1631bd42376b129d35bb60 SHA512 443bffd1f142286405a281895ecab01d37306fd68e754f977b6da71648c784fcbb9f45161e8c2403bf032a40a8d3ff3884dfbd578650a70eceed20624df8b8cc
|
||||
DIST blocky-0.25.tar.gz 7253485 BLAKE2B 64b650e17370f79a97e420737e8df2a5a733c5d52a037d1b7c37d25d042e6a237f84e787b8230bb7c95a6ee085978107403afd1896f9b7a7318ed08c2a2fce12 SHA512 77fefcf6936c10a7d8b4b27ce5447ad6b2b15637337a7d0a9256c19cf893e3b32c5843236e30c9b302fb3c9fa69c73a82ea1e4ad33162ac3a07913215771d4f9
|
||||
|
||||
104
net-dns/blocky/blocky-0.25.ebuild
Normal file
104
net-dns/blocky/blocky-0.25.ebuild
Normal file
@@ -0,0 +1,104 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit fcaps go-module systemd shell-completion
|
||||
|
||||
DESCRIPTION="Fast and lightweight DNS proxy as ad-blocker with many features written in Go"
|
||||
HOMEPAGE="https://github.com/0xERR0R/blocky/"
|
||||
|
||||
DOCUMENTATION_COMMIT=d58f16a83c51f47ed033a8447527fd6e7b9af135
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/0xERR0R/blocky.git"
|
||||
else
|
||||
SRC_URI="
|
||||
https://github.com/0xERR0R/blocky/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.xz -> ${P}-deps.tar.xz
|
||||
doc? ( https://github.com/0xERR0R/blocky/archive/${DOCUMENTATION_COMMIT}.tar.gz -> ${P}-docs.tar.gz )
|
||||
"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
fi
|
||||
|
||||
# main
|
||||
LICENSE="Apache-2.0"
|
||||
# deps
|
||||
LICENSE+=" AGPL-3 BSD-2 BSD ISC MIT MPL-2.0"
|
||||
SLOT="0"
|
||||
IUSE="doc"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/blocky
|
||||
acct-group/blocky
|
||||
"
|
||||
|
||||
# PATCHES=(
|
||||
# "${FILESDIR}"/disable-failed-tests-0.22.patch
|
||||
# )
|
||||
|
||||
FILECAPS=(
|
||||
-m 755 'cap_net_bind_service=+ep' usr/bin/"${PN}"
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
git-r3_src_unpack
|
||||
go-module_live_vendor
|
||||
if use doc; then
|
||||
EGIT_BRANCH="gh-pages"
|
||||
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}-doc"
|
||||
git-r3_src_unpack
|
||||
fi
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
[[ ${PV} != 9999* ]] && { export VERSION="${PV}" && ln -sv ../vendor ./ || die ; }
|
||||
|
||||
# mimicking project's Dockerfile
|
||||
emake GO_SKIP_GENERATE=yes GO_BUILD_FLAGS="-tags static -v " build
|
||||
|
||||
local shell
|
||||
for shell in bash fish zsh; do
|
||||
bin/"${PN}" completion "${shell}" > "${PN}"."${shell}" || die
|
||||
done
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# mimcking make test
|
||||
ego run github.com/onsi/ginkgo/v2/ginkgo --label-filter="!e2e" --coverprofile=coverage.txt --covermode=atomic --cover -r -p
|
||||
ego tool cover -html coverage.txt -o coverage.html
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# primary program
|
||||
dobin bin/"${PN}"
|
||||
|
||||
# secondary supplements
|
||||
insinto /etc/"${PN}"
|
||||
newins docs/config.yml config.yml.sample
|
||||
|
||||
newbashcomp "${PN}".bash "${PN}"
|
||||
dofishcomp "${PN}".fish
|
||||
newzshcomp "${PN}".zsh _"${PN}"
|
||||
|
||||
# TODO openrc services
|
||||
systemd_newunit "${FILESDIR}"/blocky-0.22.service "${PN}".service
|
||||
|
||||
# docs
|
||||
einstalldocs
|
||||
|
||||
if use doc; then
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
dodoc -r ../"${P}"-doc/main/*
|
||||
else
|
||||
dodoc -r ../"${PN}"-"${DOCUMENTATION_COMMIT}"/v"${PV}"/*
|
||||
fi
|
||||
fi
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -8,7 +8,7 @@ inherit fcaps go-module systemd shell-completion
|
||||
DESCRIPTION="Fast and lightweight DNS proxy as ad-blocker with many features written in Go"
|
||||
HOMEPAGE="https://github.com/0xERR0R/blocky/"
|
||||
|
||||
DOCUMENTATION_COMMIT=8c38c181ca6600328847f3c9856df99b0c3ad04b
|
||||
DOCUMENTATION_COMMIT=d58f16a83c51f47ed033a8447527fd6e7b9af135
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
|
||||
Reference in New Issue
Block a user