fixing IUSE and dependency for www-apps/ktra.
This commit is contained in:
parent
3f22419c80
commit
1cd869c6cb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user