1 |
commit: 2220bb3098a2c45f750b6315a02fe384d276b01e |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 25 17:33:34 2018 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 25 17:33:34 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2220bb30 |
7 |
|
8 |
sys-auth/ssh-ldap-pubkey: Revbump to change dependency |
9 |
|
10 |
Non-maintainer commit |
11 |
pyldap is now part of python-ldap-3.0 and deprecated as a project |
12 |
|
13 |
Tests pass |
14 |
|
15 |
Bug: https://bugs.gentoo.org/668066 |
16 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
17 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
18 |
|
19 |
.../ssh-ldap-pubkey-1.3.0-r1.ebuild | 69 ++++++++++++++++++++++ |
20 |
1 file changed, 69 insertions(+) |
21 |
|
22 |
diff --git a/sys-auth/ssh-ldap-pubkey/ssh-ldap-pubkey-1.3.0-r1.ebuild b/sys-auth/ssh-ldap-pubkey/ssh-ldap-pubkey-1.3.0-r1.ebuild |
23 |
new file mode 100644 |
24 |
index 00000000000..628ee8f4f19 |
25 |
--- /dev/null |
26 |
+++ b/sys-auth/ssh-ldap-pubkey/ssh-ldap-pubkey-1.3.0-r1.ebuild |
27 |
@@ -0,0 +1,69 @@ |
28 |
+# Copyright 1999-2018 Gentoo Authors |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+ |
31 |
+EAPI="6" |
32 |
+ |
33 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
34 |
+inherit distutils-r1 |
35 |
+ |
36 |
+DESCRIPTION="Utility to manage SSH public keys stored in LDAP" |
37 |
+HOMEPAGE="https://github.com/jirutka/ssh-ldap-pubkey" |
38 |
+ |
39 |
+if [[ ${PV} == "9999" ]]; then |
40 |
+ EGIT_REPO_URI="https://github.com/jirutka/${PN}/${PN}.git" |
41 |
+ |
42 |
+ inherit git-r3 |
43 |
+else |
44 |
+ SRC_URI="https://github.com/jirutka/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ KEYWORDS="~alpha ~amd64 ~ppc64 ~x86" |
46 |
+fi |
47 |
+ |
48 |
+LICENSE="MIT" |
49 |
+SLOT="0" |
50 |
+IUSE="test" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+MY_CDEPEND=" |
54 |
+ dev-python/docopt[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/python-ldap-3.0[${PYTHON_USEDEP}] |
56 |
+ virtual/logger" |
57 |
+ |
58 |
+DEPEND=" |
59 |
+ ${MY_CDEPEND} |
60 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
61 |
+ test? ( |
62 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
63 |
+ dev-python/pytest-describe[${PYTHON_USEDEP}] |
64 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
65 |
+ )" |
66 |
+ |
67 |
+# We need to block previous net-misc/openssh packages |
68 |
+# to avoid file collision on "/etc/openldap/schema/openssh-lpk.schema" |
69 |
+RDEPEND="${MY_CDEPEND} |
70 |
+ !net-misc/openssh[ldap]" |
71 |
+ |
72 |
+DOCS=( README.md CHANGELOG.adoc ) |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ sed -i -e 's/pyldap/python-ldap >= 3.0/' setup.py || die |
76 |
+ distutils-r1_src_prepare |
77 |
+} |
78 |
+ |
79 |
+python_test() { |
80 |
+ pytest -vv || die "Tests failed under ${EPYTHON}" |
81 |
+} |
82 |
+ |
83 |
+python_install_all() { |
84 |
+ distutils-r1_python_install_all |
85 |
+ |
86 |
+ insinto /etc/openldap/schema |
87 |
+ doins etc/openssh-lpk.schema |
88 |
+ |
89 |
+ local MY_DOCDIR="/usr/share/doc/${PF}/examples" |
90 |
+ insinto "${MY_DOCDIR}" |
91 |
+ doins etc/ldap.conf |
92 |
+ |
93 |
+ # We don't want to compress this small file to allow user |
94 |
+ # to diff configuration against upstream's default |
95 |
+ docompress -x "${MY_DOCDIR}" |
96 |
+} |