From 1cd869c6cb24cfe7b187220427a2645290be5907 Mon Sep 17 00:00:00 2001 From: Micha Glave Date: Fri, 21 Jan 2022 12:20:13 +0100 Subject: [PATCH] fixing IUSE and dependency for www-apps/ktra. --- www-apps/ktra/ktra-0.5.1.ebuild | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/www-apps/ktra/ktra-0.5.1.ebuild b/www-apps/ktra/ktra-0.5.1.ebuild index 4befcfd..80752b4 100644 --- a/www-apps/ktra/ktra-0.5.1.ebuild +++ b/www-apps/ktra/ktra-0.5.1.ebuild @@ -309,8 +309,15 @@ SRC_URI="$(cargo_crate_uris) LICENSE="MIT Apache-2.0" SLOT="0" KEYWORDS="~amd64" -IUSE="acct mongo redis sled" +IUSE="+acct 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() { local myfeatures=( @@ -332,14 +339,15 @@ src_install() { newinitd "${FILESDIR}/ktra.initd" ktra systemd_newunit "${FILESDIR}"/ktra.service ktra.service + keepdir /etc insinto /etc doins "${FILESDIR}/ktra.toml" if use acct ; then - fowners root:git /etc/ktra/{,app.ini} - fperms g+w,o-rwx /etc/ktra/{,app.ini} + fowners root:ktra /etc/ktra.toml + 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/log/ktra fi