Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/ssh-ldap-pubkey/
Date: Sat, 04 Aug 2018 20:21:58
Message-Id: 1533414077.1a2d49ef9bfb9c155f532a290a05acfe79b9c780.whissi@gentoo
1 commit: 1a2d49ef9bfb9c155f532a290a05acfe79b9c780
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 4 20:21:17 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 4 20:21:17 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a2d49ef
7
8 sys-auth/ssh-ldap-pubkey: new package
9
10 Bug: https://bugs.gentoo.org/658044
11 Package-Manager: Portage-2.3.44, Repoman-2.3.10
12
13 sys-auth/ssh-ldap-pubkey/Manifest | 1 +
14 sys-auth/ssh-ldap-pubkey/metadata.xml | 12 ++++
15 .../ssh-ldap-pubkey/ssh-ldap-pubkey-1.3.0.ebuild | 64 ++++++++++++++++++++++
16 3 files changed, 77 insertions(+)
17
18 diff --git a/sys-auth/ssh-ldap-pubkey/Manifest b/sys-auth/ssh-ldap-pubkey/Manifest
19 new file mode 100644
20 index 00000000000..dc55673bcde
21 --- /dev/null
22 +++ b/sys-auth/ssh-ldap-pubkey/Manifest
23 @@ -0,0 +1 @@
24 +DIST ssh-ldap-pubkey-1.3.0.tar.gz 14530 BLAKE2B 1de6913e4abb25d441731b3c36b64361f5fa8900c289b1f4ef58776ab0018414d20b4b24716833e1e27e5dc18079ec77c283bab88879e3fb719fc9ad054267ea SHA512 0c675b0bf68ccecdabda5f4f559772fd0d34151794c2a3855e063befffe9777ceb79e99b5649f15e5bd0c4ea40c22f734d1748a8053d49bffea58077b72efe16
25
26 diff --git a/sys-auth/ssh-ldap-pubkey/metadata.xml b/sys-auth/ssh-ldap-pubkey/metadata.xml
27 new file mode 100644
28 index 00000000000..798419df911
29 --- /dev/null
30 +++ b/sys-auth/ssh-ldap-pubkey/metadata.xml
31 @@ -0,0 +1,12 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <maintainer type="project">
36 + <email>base-system@g.o</email>
37 + <name>Gentoo Base System</name>
38 + </maintainer>
39 + <upstream>
40 + <bugs-to>https://github.com/jirutka/ssh-ldap-pubkey/issues</bugs-to>
41 + <remote-id type="github">jirutka/ssh-ldap-pubkey</remote-id>
42 + </upstream>
43 +</pkgmetadata>
44
45 diff --git a/sys-auth/ssh-ldap-pubkey/ssh-ldap-pubkey-1.3.0.ebuild b/sys-auth/ssh-ldap-pubkey/ssh-ldap-pubkey-1.3.0.ebuild
46 new file mode 100644
47 index 00000000000..861c41ba1ef
48 --- /dev/null
49 +++ b/sys-auth/ssh-ldap-pubkey/ssh-ldap-pubkey-1.3.0.ebuild
50 @@ -0,0 +1,64 @@
51 +# Copyright 1999-2018 Gentoo Foundation
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI="6"
55 +
56 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
57 +inherit distutils-r1
58 +
59 +DESCRIPTION="Utility to manage SSH public keys stored in LDAP"
60 +HOMEPAGE="https://github.com/jirutka/ssh-ldap-pubkey"
61 +
62 +if [[ ${PV} == "9999" ]]; then
63 + EGIT_REPO_URI="https://github.com/jirutka/${PN}/${PN}.git"
64 +
65 + inherit git-r3
66 +else
67 + SRC_URI="https://github.com/jirutka/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
68 + KEYWORDS="~amd64 ~x86"
69 +fi
70 +
71 +LICENSE="MIT"
72 +SLOT="0"
73 +IUSE="test"
74 +RESTRICT="!test? ( test )"
75 +
76 +MY_CDEPEND="
77 + dev-python/docopt[${PYTHON_USEDEP}]
78 + dev-python/pyldap[${PYTHON_USEDEP}]
79 + virtual/logger"
80 +
81 +DEPEND="
82 + ${MY_CDEPEND}
83 + dev-python/setuptools[${PYTHON_USEDEP}]
84 + test? (
85 + dev-python/pytest[${PYTHON_USEDEP}]
86 + dev-python/pytest-describe[${PYTHON_USEDEP}]
87 + dev-python/pytest-mock[${PYTHON_USEDEP}]
88 + )"
89 +
90 +# We need to block previous net-misc/openssh packages
91 +# to avoid file collision on "/etc/openldap/schema/openssh-lpk.schema"
92 +RDEPEND="${MY_CDEPEND}
93 + !net-misc/openssh[ldap]"
94 +
95 +DOCS=( README.md CHANGELOG.adoc )
96 +
97 +python_test() {
98 + pytest -vv || die "Tests failed under ${EPYTHON}"
99 +}
100 +
101 +python_install_all() {
102 + distutils-r1_python_install_all
103 +
104 + insinto /etc/openldap/schema
105 + doins etc/openssh-lpk.schema
106 +
107 + local MY_DOCDIR="/usr/share/doc/${PF}/examples"
108 + insinto "${MY_DOCDIR}"
109 + doins etc/ldap.conf
110 +
111 + # We don't want to compress this small file to allow user
112 + # to diff configuration against upstream's default
113 + docompress -x "${MY_DOCDIR}"
114 +}