mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
sys-auth/ssh-ldap-pubkey: drop 1.3.2
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST ssh-ldap-pubkey-1.3.2.tar.gz 15311 BLAKE2B a8119b9808de556184c7f88c86b657d5d342e476b27cf53d92f37b8e9d3db69182b55c62a636bec6624c5d1aa2a90e3a04a22ce5ee8020ada27582b1ac6eefa3 SHA512 8475715151f331017850c094a50bd285574533fa6266341effc83f758ca30af9b9c24b54fce8c3eac5441c5cf18b0d7aa91bb04829b71efc4b8dcacba3642415
|
||||
DIST ssh-ldap-pubkey-1.3.3.tar.gz 15389 BLAKE2B 24c741646e33cf7af400053eff17efa35b96ec418d1c2b8c370a371dde51fdbbb3af3423f0cc4374f61b302f9836601444ee72613388fa2d4445957f918d64f9 SHA512 b52d4de3e0704817e8ea0fb316c21646da1bac74ed226812c03f9ee5ae449a86e5ef4c679633d212db05382e216b254a185e29d4a2244318ad5de288b909254a
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{7,8} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Utility to manage SSH public keys stored in LDAP"
|
||||
HOMEPAGE="https://github.com/jirutka/ssh-ldap-pubkey"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/jirutka/${PN}/${PN}.git"
|
||||
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/jirutka/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="schema test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
MY_CDEPEND="
|
||||
dev-python/docopt[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-ldap-3.0[${PYTHON_USEDEP}]
|
||||
virtual/logger"
|
||||
|
||||
DEPEND="
|
||||
${MY_CDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-describe[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-mock[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
# We need to block previous net-misc/openssh packages
|
||||
# to avoid file collision on "/etc/openldap/schema/openssh-lpk.schema"
|
||||
RDEPEND="${MY_CDEPEND}
|
||||
schema? ( !net-misc/openssh[ldap] )"
|
||||
|
||||
DOCS=( README.md CHANGELOG.adoc )
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's/pyldap/python-ldap >= 3.0/' setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
pytest -vv || die "Tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
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}"
|
||||
doins etc/ldap.conf
|
||||
|
||||
# We don't want to compress this small file to allow user
|
||||
# to diff configuration against upstream's default
|
||||
docompress -x "${MY_DOCDIR}"
|
||||
}
|
||||
Reference in New Issue
Block a user