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" SLOT="0"
IUSE="" IUSE=""
COMMON_DEPEND=" DEPEND="
sys-apps/baselayout sys-apps/baselayout
" "
DEPEND=" BDEPEND="
${COMMON_DEPEND} ${DEPEND}
sys-apps/coreutils sys-apps/coreutils
" "
RDEPEND=" RDEPEND="
${COMMON_DEPEND} ${DEPEND}
" "
DOCS=(
README.md
)
src_prepare() { src_prepare() {
default default
# Upstream provides shasums in the repo - let's use them # Upstream provides shasums in the repo - let's use them
cd "${S}" || die cd "${S}" || die
sha256sum -c "${S}"/SHA256SUMS || die "Shasum check failed" sha256sum -c "${S}"/SHA256SUMS || die "Shasum check failed"
@ -51,9 +48,10 @@ src_compile() {
} }
src_install() { src_install() {
exeinto "/usr/bin" einstalldocs
doexe "${PN}"
dobin "${PN}"
systemd_dounit "${S}"/resources/systemd/hblock.service systemd_dounit "${S}"/resources/systemd/hblock.service
systemd_dounit "${S}"/resources/systemd/hblock.timer systemd_dounit "${S}"/resources/systemd/hblock.timer
einstalldocs
} }

View File

@ -22,23 +22,20 @@ LICENSE="MIT"
SLOT="0" SLOT="0"
IUSE="" IUSE=""
COMMON_DEPEND=" DEPEND="
sys-apps/baselayout sys-apps/baselayout
" "
DEPEND=" BDEPEND="
${COMMON_DEPEND} ${DEPEND}
sys-apps/coreutils sys-apps/coreutils
" "
RDEPEND=" RDEPEND="
${COMMON_DEPEND} ${DEPEND}
" "
DOCS=(
README.md
)
src_prepare() { src_prepare() {
default default
# Upstream provides shasums in the repo - let's use them # Upstream provides shasums in the repo - let's use them
cd "${S}" || die cd "${S}" || die
sha256sum -c "${S}"/SHA256SUMS || die "Shasum check failed" sha256sum -c "${S}"/SHA256SUMS || die "Shasum check failed"
@ -51,9 +48,10 @@ src_compile() {
} }
src_install() { src_install() {
exeinto "/usr/bin" einstalldocs
doexe "${PN}"
dobin "${PN}"
systemd_dounit "${S}"/resources/systemd/hblock.service systemd_dounit "${S}"/resources/systemd/hblock.service
systemd_dounit "${S}"/resources/systemd/hblock.timer systemd_dounit "${S}"/resources/systemd/hblock.timer
einstalldocs
} }

View File

@ -22,23 +22,20 @@ LICENSE="MIT"
SLOT="0" SLOT="0"
IUSE="" IUSE=""
COMMON_DEPEND=" DEPEND="
sys-apps/baselayout sys-apps/baselayout
" "
DEPEND=" BDEPEND="
${COMMON_DEPEND} ${DEPEND}
sys-apps/coreutils sys-apps/coreutils
" "
RDEPEND=" RDEPEND="
${COMMON_DEPEND} ${DEPEND}
" "
DOCS=(
README.md
)
src_prepare() { src_prepare() {
default default
# Upstream provides shasums in the repo - let's use them # Upstream provides shasums in the repo - let's use them
cd "${S}" || die cd "${S}" || die
sha256sum -c "${S}"/SHA256SUMS || die "Shasum check failed" sha256sum -c "${S}"/SHA256SUMS || die "Shasum check failed"
@ -51,9 +48,10 @@ src_compile() {
} }
src_install() { src_install() {
exeinto "/usr/bin" einstalldocs
doexe "${PN}"
dobin "${PN}"
systemd_dounit "${S}"/resources/systemd/hblock.service systemd_dounit "${S}"/resources/systemd/hblock.service
systemd_dounit "${S}"/resources/systemd/hblock.timer systemd_dounit "${S}"/resources/systemd/hblock.timer
einstalldocs
} }