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:
parent
c72a1b3777
commit
f0f95ac9e7
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user