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"
|
|
|
|
|
2020-09-17 01:43:33 +02:00
|
|
|
DEPEND="
|
2020-04-19 17:58:56 +02:00
|
|
|
sys-apps/baselayout
|
|
|
|
"
|
2020-09-17 01:43:33 +02:00
|
|
|
BDEPEND="
|
|
|
|
${DEPEND}
|
2020-04-19 17:58:56 +02:00
|
|
|
sys-apps/coreutils
|
|
|
|
"
|
|
|
|
RDEPEND="
|
2020-09-17 01:43:33 +02:00
|
|
|
${DEPEND}
|
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
|
|
|
|
}
|