<bugs-to>https://github.com/jirutka/ssh-ldap-pubkey/issues</bugs-to>
<remote-id type="github">jirutka/ssh-ldap-pubkey</remote-id>
</upstream>
+ <use>
+ <flag name="schema">Install a copy of the LPK schema, only needed on LDAP servers.</flag>
+ </use>
</pkgmetadata>
LICENSE="MIT"
SLOT="0"
-IUSE="test"
+IUSE="schema test"
RESTRICT="!test? ( test )"
MY_CDEPEND="
# We need to block previous net-misc/openssh packages
# to avoid file collision on "/etc/openldap/schema/openssh-lpk.schema"
RDEPEND="${MY_CDEPEND}
- !net-misc/openssh[ldap]"
+ schema? ( !net-misc/openssh[ldap] )"
DOCS=( README.md CHANGELOG.adoc )
python_install_all() {
distutils-r1_python_install_all
- insinto /etc/openldap/schema
- doins etc/openssh-lpk.schema
+ if use schema; then
+ insinto /etc/openldap/schema
+ doins etc/openssh-lpk.schema
+ fi
local MY_DOCDIR="/usr/share/doc/${PF}/examples"
insinto "${MY_DOCDIR}"
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
LICENSE="MIT"
SLOT="0"
-IUSE="test"
+IUSE="schema test"
RESTRICT="!test? ( test )"
MY_CDEPEND="
# We need to block previous net-misc/openssh packages
# to avoid file collision on "/etc/openldap/schema/openssh-lpk.schema"
RDEPEND="${MY_CDEPEND}
- !net-misc/openssh[ldap]"
+ schema? ( !net-misc/openssh[ldap] )"
DOCS=( README.md CHANGELOG.adoc )
python_install_all() {
distutils-r1_python_install_all
- insinto /etc/openldap/schema
- doins etc/openssh-lpk.schema
+ if use schema; then
+ insinto /etc/openldap/schema
+ doins etc/openssh-lpk.schema
+ fi
local MY_DOCDIR="/usr/share/doc/${PF}/examples"
insinto "${MY_DOCDIR}"