mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
net-dns/blocky: update to 0.28.2
Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
This commit is contained in:
@@ -7,3 +7,6 @@ DIST blocky-0.25.tar.gz 7253485 BLAKE2B 64b650e17370f79a97e420737e8df2a5a733c5d5
|
||||
DIST blocky-0.26.2-deps.tar.xz 6395916 BLAKE2B 4fe58df418c002377539ae497e60a244cdfda06c0a6b7ade1c792476dd2df02bb3d87802e2fa2ce198a8543caaacb18aca60161142473ec983ec6881a7c553c6 SHA512 dd577f2915c5fa340fbd1f5d0ab71418867480c947ed0afbdbac3d0fa1961dd0093093f527b3e984b954e0ed551ca345f56851a36d48ed7f69381cbcf2293d3a
|
||||
DIST blocky-0.26.2-docs.tar.gz 11939910 BLAKE2B cd8fc7ea20324e92f451e469e73c89d0f874eacce5927e5895f27cf9b3071cd554d79f679b1eff55fb40587ebef83798d0d7c37836526c9470d7fd76f0efc755 SHA512 6497ec9432ac7e3a87e6147380d506c6f6646b3499473c5daaef59c51ae92facb333219b07fdfaca5d85dc539c2ac1344ec55bf21772470b68035e78899658b1
|
||||
DIST blocky-0.26.2.tar.gz 7259209 BLAKE2B 30edff9e6746dd21128f7bb486bd8d8eac19da42aed237aa4917c1d806ff28b2ce6e0567dfc9096279cf7955ff483c994dd54995bf9720144381a058fea84cec SHA512 fbda89fc7baf940abd1aa33f385b78a9603329172a3b610b68b1b7c620c0382e417afb3003a2828df267476cefe49ac68661192307bb9faea85cc2998459d1ca
|
||||
DIST blocky-0.28.2-deps.tar.xz 6426900 BLAKE2B 80ad85261c67551bbee350a167bfb5a77c669f0fe5e58614250144a03ba2905eaae7f7a0ad37129bcef47be2400d7a3d8011c6d71ba7e42bcd03c130f28ca094 SHA512 f569f7c03a3405af8d1eb670822005c97ec30119388af555f3fb210eb4cc5add59d443894e77c3744d7c696fe5f1ecc9a8bba7b5d06e44581d5ad9f7c383fd32
|
||||
DIST blocky-0.28.2-docs.tar.gz 16684478 BLAKE2B 76e84ab04849c4c4fe3acad770aaadb0561e2e01dcd4f681c2ecb06342705481811e7da105c04f156fe1eb8f7ad2eef04ed932a58569d76580dde010ba250fd7 SHA512 1c004bd9d58d1471131b51b16fa09bc1a84ffc9aabd1d5fb3de90130ac8b4e7355f0d673263c6d0d8d98db224ce82cc60a8569ed9314bbc9192a4c7a1dc6c92d
|
||||
DIST blocky-0.28.2.tar.gz 7363104 BLAKE2B 4ee19efda6a197c17e8ac486ad49037e4c5a90729bd7a26ffbe1d5f9029b5873c7801d392fda219ae2295aa979c047c9a7112446caad7d99673ee975182f8bf3 SHA512 505c9bf250c79fa1815437db5454ed4d2973e8af6c275026beb4f891013d15bee77f51b551adb3c8402a3bf5721c872cbd5cf84d3f391922276ae792053bd442
|
||||
|
||||
105
net-dns/blocky/blocky-0.28.2.ebuild
Normal file
105
net-dns/blocky/blocky-0.28.2.ebuild
Normal file
@@ -0,0 +1,105 @@
|
||||
# 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=09b5d6a1441019810c62c6edea93dd6e9677eb24
|
||||
|
||||
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
|
||||
}
|
||||
@@ -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=e2ada40b478f97946ef84588cafd1822b7c37c2e
|
||||
DOCUMENTATION_COMMIT=09b5d6a1441019810c62c6edea93dd6e9677eb24
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
|
||||
Reference in New Issue
Block a user