2021-01-02 18:11:01 +01:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2020-04-19 17:58:56 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2020-10-23 16:21:29 +02:00
|
|
|
inherit systemd
|
2020-04-19 17:58:56 +02:00
|
|
|
|
|
|
|
DESCRIPTION="Improve your security and privacy by blocking ads, tracking and malware domains"
|
|
|
|
HOMEPAGE="https://hblock.molinero.dev/"
|
|
|
|
|
|
|
|
if [[ "${PV}" == *9999* ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/hectorm/${PN}.git"
|
|
|
|
else
|
|
|
|
SRC_URI="https://github.com/hectorm/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
fi
|
|
|
|
|
2020-11-16 03:01:06 +01:00
|
|
|
RESTRICT="binchecks mirror strip test"
|
2020-04-19 17:58:56 +02:00
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
|
2021-01-18 20:04:15 +01:00
|
|
|
RDEPEND="
|
2021-01-18 20:03:35 +01:00
|
|
|
|| (
|
|
|
|
net-misc/curl[http2,ssl]
|
|
|
|
net-misc/wget[ssl]
|
|
|
|
www-client/fetch
|
|
|
|
)
|
2020-04-19 17:58:56 +02:00
|
|
|
"
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
:
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2020-09-17 01:43:33 +02:00
|
|
|
einstalldocs
|
|
|
|
|
|
|
|
dobin "${PN}"
|
|
|
|
|
2020-04-19 17:58:56 +02:00
|
|
|
systemd_dounit "${S}"/resources/systemd/hblock.service
|
|
|
|
systemd_dounit "${S}"/resources/systemd/hblock.timer
|
|
|
|
}
|