net-firewall/hblock: add version 2.1.5 and 9999

Package-Manager: Portage-2.3.89, Repoman-2.3.20
This commit is contained in:
XGQT 2020-04-19 17:58:56 +02:00
parent 974defdd01
commit 0ce2feccd6
No known key found for this signature in database
GPG Key ID: 2089DEC77862433A
4 changed files with 132 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST hblock-2.1.5.tar.gz 400446 BLAKE2B bc92732543c4b516c898edc05a0a5a62a93cfa9e8dde8136d6a4be7e98dece9d0d494c50d00934bb1a54ae85cb2bba1dd0b3e8507a748385981fb583c9f8f2bc SHA512 075e2bd84f8a63ab7d89f06582a9cf248d80bffa60134e0133fc199eda30af37e49a2cd553cd25a4988d025532e0c3ca78fcb3d2f9be01594415634f8d5162c0

View File

@ -0,0 +1,62 @@
# 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"
KEYWORDS=""
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="systemd"
COMMON_DEPEND="
sys-apps/baselayout
systemd? (
sys-apps/systemd
)
"
DEPEND="
${COMMON_DEPEND}
sys-apps/coreutils
"
RDEPEND="
${COMMON_DEPEND}
"
DOCS=(
README.md
)
src_prepare() {
default
# 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() {
exeinto "/usr/bin"
doexe "${PN}"
systemd_dounit "${S}"/resources/systemd/hblock.service
systemd_dounit "${S}"/resources/systemd/hblock.timer
einstalldocs
}

View File

@ -0,0 +1,62 @@
# 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"
KEYWORDS=""
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="systemd"
COMMON_DEPEND="
sys-apps/baselayout
systemd? (
sys-apps/systemd
)
"
DEPEND="
${COMMON_DEPEND}
sys-apps/coreutils
"
RDEPEND="
${COMMON_DEPEND}
"
DOCS=(
README.md
)
src_prepare() {
default
# 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() {
exeinto "/usr/bin"
doexe "${PN}"
systemd_dounit "${S}"/resources/systemd/hblock.service
systemd_dounit "${S}"/resources/systemd/hblock.timer
einstalldocs
}

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">hectorm/hblock</remote-id>
</upstream>
</pkgmetadata>