From fe64f1a1622133ddfe12762463f6b82b3d288a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Sun, 6 Sep 2020 00:26:46 +0200 Subject: [PATCH] net-firewall/hblock: bump to 2.1.7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-3.0.5, Repoman-2.3.23 Signed-off-by: Maciej Barć --- net-firewall/hblock/Manifest | 1 + net-firewall/hblock/hblock-2.1.7.ebuild | 59 +++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 net-firewall/hblock/hblock-2.1.7.ebuild diff --git a/net-firewall/hblock/Manifest b/net-firewall/hblock/Manifest index d8bf92f..73cfe94 100644 --- a/net-firewall/hblock/Manifest +++ b/net-firewall/hblock/Manifest @@ -1 +1,2 @@ DIST hblock-2.1.5.tar.gz 400446 BLAKE2B bc92732543c4b516c898edc05a0a5a62a93cfa9e8dde8136d6a4be7e98dece9d0d494c50d00934bb1a54ae85cb2bba1dd0b3e8507a748385981fb583c9f8f2bc SHA512 075e2bd84f8a63ab7d89f06582a9cf248d80bffa60134e0133fc199eda30af37e49a2cd553cd25a4988d025532e0c3ca78fcb3d2f9be01594415634f8d5162c0 +DIST hblock-2.1.7.tar.gz 400671 BLAKE2B c0c15eb88225c8f24f07362244c1c1059a70cb9406dab1468f15fb4590e824dc329b47db2be688b881a2d815d1e69a13074aba4b1f5705a7e490ce7fa342ec5e SHA512 5ab81fb7d5342ce0f75990e7d676180d4a1795bc8c7f3fb272475498483420e40a8a93abd729a7bd00a596bbd995a65c299c6ca96da6188f7cf8fff6512bf488 diff --git a/net-firewall/hblock/hblock-2.1.7.ebuild b/net-firewall/hblock/hblock-2.1.7.ebuild new file mode 100644 index 0000000..4c7cb25 --- /dev/null +++ b/net-firewall/hblock/hblock-2.1.7.ebuild @@ -0,0 +1,59 @@ +# 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="" + +COMMON_DEPEND=" + sys-apps/baselayout +" +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 +}