fixing IUSE and dependency for www-apps/ktra.

This commit is contained in:
Micha Glave 2022-01-21 12:20:13 +01:00
parent 3f22419c80
commit 1cd869c6cb

View File

@ -309,8 +309,15 @@ SRC_URI="$(cargo_crate_uris)
LICENSE="MIT Apache-2.0" LICENSE="MIT Apache-2.0"
SLOT="0" SLOT="0"
KEYWORDS="~amd64" KEYWORDS="~amd64"
IUSE="acct mongo redis sled" IUSE="+acct mongo redis sled"
REQUIRED_USE="^^ ( mongo redis sled )" REQUIRED_USE="^^ ( mongo redis sled )"
COMMON_DEPEND="
acct? (
acct-group/ktra
acct-user/ktra )"
DEPEND="${COMMON_DEPEND}"
RDEPEND="${COMMON_DEPEND}"
src_configure() { src_configure() {
local myfeatures=( local myfeatures=(
@ -332,14 +339,15 @@ src_install() {
newinitd "${FILESDIR}/ktra.initd" ktra newinitd "${FILESDIR}/ktra.initd" ktra
systemd_newunit "${FILESDIR}"/ktra.service ktra.service systemd_newunit "${FILESDIR}"/ktra.service ktra.service
keepdir /etc
insinto /etc insinto /etc
doins "${FILESDIR}/ktra.toml" doins "${FILESDIR}/ktra.toml"
if use acct ; then if use acct ; then
fowners root:git /etc/ktra/{,app.ini} fowners root:ktra /etc/ktra.toml
fperms g+w,o-rwx /etc/ktra/{,app.ini} fperms g+w,o-rwx /etc/ktra.toml
diropts -m0750 -o git -g git diropts -m0750 -o ktra -g ktra
keepdir /var/lib/ktra keepdir /var/lib/ktra
keepdir /var/log/ktra keepdir /var/log/ktra
fi fi