net-firewall/hblock: use dobin to install binary; add bdepend

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
Maciej Barć 2020-09-17 01:43:33 +02:00
parent c72a1b3777
commit f0f95ac9e7
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
3 changed files with 27 additions and 33 deletions

View File

@ -22,23 +22,20 @@ LICENSE="MIT"
SLOT="0"
IUSE=""
COMMON_DEPEND="
DEPEND="
sys-apps/baselayout
"
DEPEND="
${COMMON_DEPEND}
BDEPEND="
${DEPEND}
sys-apps/coreutils
"
RDEPEND="
${COMMON_DEPEND}
${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"
@ -51,9 +48,10 @@ src_compile() {
}
src_install() {
exeinto "/usr/bin"
doexe "${PN}"
einstalldocs
dobin "${PN}"
systemd_dounit "${S}"/resources/systemd/hblock.service
systemd_dounit "${S}"/resources/systemd/hblock.timer
einstalldocs
}

View File

@ -22,23 +22,20 @@ LICENSE="MIT"
SLOT="0"
IUSE=""
COMMON_DEPEND="
DEPEND="
sys-apps/baselayout
"
DEPEND="
${COMMON_DEPEND}
BDEPEND="
${DEPEND}
sys-apps/coreutils
"
RDEPEND="
${COMMON_DEPEND}
${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"
@ -51,9 +48,10 @@ src_compile() {
}
src_install() {
exeinto "/usr/bin"
doexe "${PN}"
einstalldocs
dobin "${PN}"
systemd_dounit "${S}"/resources/systemd/hblock.service
systemd_dounit "${S}"/resources/systemd/hblock.timer
einstalldocs
}

View File

@ -22,23 +22,20 @@ LICENSE="MIT"
SLOT="0"
IUSE=""
COMMON_DEPEND="
DEPEND="
sys-apps/baselayout
"
DEPEND="
${COMMON_DEPEND}
BDEPEND="
${DEPEND}
sys-apps/coreutils
"
RDEPEND="
${COMMON_DEPEND}
${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"
@ -51,9 +48,10 @@ src_compile() {
}
src_install() {
exeinto "/usr/bin"
doexe "${PN}"
einstalldocs
dobin "${PN}"
systemd_dounit "${S}"/resources/systemd/hblock.service
systemd_dounit "${S}"/resources/systemd/hblock.timer
einstalldocs
}