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