2020-09-06 00:26:46 +02:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
inherit eutils systemd
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
RESTRICT="mirror"
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE=""
|
|
|
|
|
2020-09-17 01:43:33 +02:00
|
|
|
DEPEND="
|
2020-09-06 00:26:46 +02:00
|
|
|
sys-apps/baselayout
|
|
|
|
"
|
2020-09-17 01:43:33 +02:00
|
|
|
BDEPEND="
|
|
|
|
${DEPEND}
|
2020-09-06 00:26:46 +02:00
|
|
|
sys-apps/coreutils
|
|
|
|
"
|
|
|
|
RDEPEND="
|
2020-09-17 01:43:33 +02:00
|
|
|
${DEPEND}
|
2020-09-06 00:26:46 +02:00
|
|
|
"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
2020-09-17 01:43:33 +02:00
|
|
|
|
2020-09-06 00:26:46 +02:00
|
|
|
# Upstream provides shasums in the repo - let's use them
|
|
|
|
cd "${S}" || die
|
|
|
|
sha256sum -c "${S}"/SHA256SUMS || die "Shasum check failed"
|
|
|
|
cd "${S}"/resources/systemd || die
|
|
|
|
sha256sum -c "${S}"/resources/systemd/SHA256SUMS || die "Shasum check failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
:
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2020-09-17 01:43:33 +02:00
|
|
|
einstalldocs
|
|
|
|
|
|
|
|
dobin "${PN}"
|
|
|
|
|
2020-09-06 00:26:46 +02:00
|
|
|
systemd_dounit "${S}"/resources/systemd/hblock.service
|
|
|
|
systemd_dounit "${S}"/resources/systemd/hblock.timer
|
|
|
|
}
|