shell completition added net-nds/kanidmd
This commit is contained in:
@@ -763,7 +763,7 @@ CRATES="
|
||||
zxcvbn@3.1.0
|
||||
"
|
||||
|
||||
inherit cargo
|
||||
inherit cargo shell-completion systemd
|
||||
|
||||
DESCRIPTION="Kanidm Server Daemon"
|
||||
HOMEPAGE="https://github.com/kanidm/kanidm/"
|
||||
@@ -792,6 +792,7 @@ pam? ( sys-libs/pam )
|
||||
"
|
||||
BDEPEND="
|
||||
llvm-core/clang
|
||||
sys-devel/binutils
|
||||
>=dev-lang/rust-bin-1.90.0
|
||||
"
|
||||
|
||||
@@ -829,30 +830,32 @@ src_install() {
|
||||
newins examples/radius_full.toml radius.toml
|
||||
newins examples/unixd unixd
|
||||
|
||||
newbashcomp ${FILESDIR}/${PN}.bash ${PN}
|
||||
newfishcomp ${FILESDIR}/${PN}.fish ${PN}.fish
|
||||
newzshcomp ${FILESDIR}/${PN}.bash _${PN}
|
||||
|
||||
if use server; then
|
||||
einfo "Installing kanidmd-server"
|
||||
newins examples/server.toml server.toml
|
||||
|
||||
dodir /usr/share/kanidm
|
||||
cp -R "${S}/server/core/static" "${ED}/usr/share/kanidm/" || die "Install failed!"
|
||||
dodir /usr/share/kanidm/ui/hpkg
|
||||
cp -R "${S}/server/core/static" "${ED}/usr/share/kanidm/ui/hpkg/" || die "Install failed!"
|
||||
|
||||
systemd_newunit platform/opensuse/kanidm-ipa-sync.service kanidm-ipa-sync.service
|
||||
systemd_newunit platform/opensuse/kanidm-unixd-tasks.service kanidm-unixd-tasks.service
|
||||
systemd_newunit platform/opensuse/kanidm-unixd.service kanidm-unixd.service
|
||||
systemd_newunit platform/opensuse/kanidmd.service kanidmd.service
|
||||
systemd_dounit platform/opensuse/kanidm-ipa-sync.service
|
||||
systemd_dounit platform/opensuse/kanidm-unixd-tasks.service
|
||||
systemd_dounit platform/opensuse/kanidm-unixd.service
|
||||
systemd_dounit platform/opensuse/kanidmd.service
|
||||
|
||||
newinitd "${FILESDIR}/kanidm.initd" kanidmd
|
||||
|
||||
cp examples/server.toml "${ED}/usr/share/kanidm/" || die "Install failed!"
|
||||
fi
|
||||
|
||||
if use acct; then
|
||||
fowners root:kanidmd /etc/kanidm/{,config,radius.toml,unixd}
|
||||
fowners root:kanidm /etc/kanidm/{,config,radius.toml,unixd}
|
||||
fperms g+w,o-rwx /etc/kanidm/{,config,radius.toml,unixd}
|
||||
if use server; then
|
||||
fowners root:kanidmd /etc/kanidm/server.toml
|
||||
fowners root:kanidm /etc/kanidm/server.toml
|
||||
fperms g+w,o-rwx /etc/kanidm/server.toml
|
||||
diropts -m0750 -o kanidmd -g kanidmd
|
||||
diropts -m0750 -o kanidm -g kanidm
|
||||
keepdir /var/lib/private/kanidm
|
||||
keepdir /var/log/kanidmd
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user