1 |
commit: 3c8d7e6a7eb3851c79c9699bce6a34a4bd8a79a3 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 10 21:12:29 2022 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 10 21:12:44 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c8d7e6a |
7 |
|
8 |
net-nds/nsscache: bump, needs more testing before ~keywording |
9 |
|
10 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
11 |
|
12 |
net-nds/nsscache/Manifest | 1 + |
13 |
net-nds/nsscache/nsscache-0.39-r1.ebuild | 66 +++++++++++++++++++++++++++++ |
14 |
net-nds/nsscache/nsscache-0.47.ebuild | 72 ++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 139 insertions(+) |
16 |
|
17 |
diff --git a/net-nds/nsscache/Manifest b/net-nds/nsscache/Manifest |
18 |
index 6686a51026c0..e7b222c0c8a1 100644 |
19 |
--- a/net-nds/nsscache/Manifest |
20 |
+++ b/net-nds/nsscache/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST nsscache-0.30-r3-gentoo-authorized-keys-command.py 11974 BLAKE2B 4272bab8d85ef0f39c8b26fd035009d3c77dd629fd7853e0072232393d329af1885ce44c4877d7718a37154661d9c85bb1f5276463875f9dfbbd023106d9d15a SHA512 b660a6ae19e6e42efbb07d0a368704706b0a0bd1bf0b2c84855f0d1c00d4cda80872432f5a25384d0c27e99bf60072beb12975bcfa0201b52fa040d0e6bc2da2 |
23 |
DIST nsscache-0.39.tar.gz 127896 BLAKE2B 8383ca53ee5cf2f84e4485722d35598b624005bb32073696a23daa1061c0b057d26333cdee9c97cedcb99daa8c61362719d80b01b216c163a327cd4edeabeefd SHA512 f93cec949302f21bc5989ab3192302a32349ee4ae98e2f05f169cca8a16a821f39857cb0fff52c7b54552828684b4723d22e44f97525a01577ab89bd159e0376 |
24 |
+DIST nsscache-0.47.tar.gz 126225 BLAKE2B f238d4a6565038420dee7359edadf348a0e5fb581b8238b23d3835cc10ad9676917bfa6573c6a1d462d7afee36398954744ff2d498b4c1ed3459666b3aa6ad5c SHA512 94cd9a62169146f1e10f78476a950dfc708b6c2063cffed3617bbfa9c43aaf134b1f038a94079df408e168877d32f07b64b61f048d34fed283828cc75e7dd2cf |
25 |
|
26 |
diff --git a/net-nds/nsscache/nsscache-0.39-r1.ebuild b/net-nds/nsscache/nsscache-0.39-r1.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..7f30d2de2a53 |
29 |
--- /dev/null |
30 |
+++ b/net-nds/nsscache/nsscache-0.39-r1.ebuild |
31 |
@@ -0,0 +1,66 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{7,8,9,10} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="commandline tool to sync directory services to local cache" |
42 |
+HOMEPAGE="https://github.com/google/nsscache" |
43 |
+SCRIPT_A='nsscache-0.30-r3-gentoo-authorized-keys-command.py' |
44 |
+SRC_URI=" |
45 |
+ https://github.com/google/nsscache/archive/version/${PV}.tar.gz -> ${P}.tar.gz |
46 |
+ https://dev.gentoo.org/~robbat2/${SCRIPT_A}" |
47 |
+ |
48 |
+LICENSE="GPL-2" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+IUSE="berkdb nsscache s3" |
52 |
+RESTRICT="test" # requires network |
53 |
+ |
54 |
+DEPEND=" |
55 |
+ dev-python/ldap3[${PYTHON_USEDEP}] |
56 |
+ dev-python/pycurl[${PYTHON_USEDEP}] |
57 |
+ berkdb? ( dev-python/bsddb3[${PYTHON_USEDEP}] ) |
58 |
+ s3? ( dev-python/boto3[${PYTHON_USEDEP}] )" |
59 |
+RDEPEND="${DEPEND} |
60 |
+ nsscache? ( >=sys-auth/libnss-cache-0.10 )" |
61 |
+ |
62 |
+S="${WORKDIR}/${PN}-version-${PV}" |
63 |
+ |
64 |
+python_prepare_all() { |
65 |
+ sed -i \ |
66 |
+ -e "/setup_requires/s,'pytest-runner',,g" \ |
67 |
+ -e '/tests_require/s,\[.*\],[],g' \ |
68 |
+ setup.py || die |
69 |
+ sed -i \ |
70 |
+ -e '/test=pytest/d' \ |
71 |
+ setup.cfg || die |
72 |
+ sed -i \ |
73 |
+ -e '/pytest/d' \ |
74 |
+ requirements.txt || die |
75 |
+ |
76 |
+ distutils-r1_python_prepare_all |
77 |
+} |
78 |
+ |
79 |
+python_compile() { |
80 |
+ distutils-r1_python_compile --verbose |
81 |
+} |
82 |
+ |
83 |
+python_install() { |
84 |
+ distutils-r1_python_install |
85 |
+ |
86 |
+ python_scriptinto /usr/libexec/nsscache |
87 |
+ python_newexe "${DISTDIR}"/"${SCRIPT_A}" authorized-keys-command.py |
88 |
+} |
89 |
+ |
90 |
+python_install_all() { |
91 |
+ distutils-r1_python_install_all |
92 |
+ |
93 |
+ doman nsscache.1 nsscache.conf.5 |
94 |
+ dodoc THANKS nsscache.cron CONTRIBUTING.md README.md |
95 |
+ |
96 |
+ keepdir /var/lib/nsscache |
97 |
+} |
98 |
|
99 |
diff --git a/net-nds/nsscache/nsscache-0.47.ebuild b/net-nds/nsscache/nsscache-0.47.ebuild |
100 |
new file mode 100644 |
101 |
index 000000000000..9d67d529c0be |
102 |
--- /dev/null |
103 |
+++ b/net-nds/nsscache/nsscache-0.47.ebuild |
104 |
@@ -0,0 +1,72 @@ |
105 |
+# Copyright 1999-2021 Gentoo Authors |
106 |
+# Distributed under the terms of the GNU General Public License v2 |
107 |
+ |
108 |
+EAPI=7 |
109 |
+ |
110 |
+PYTHON_COMPAT=( python3_{7,8,9,10} ) |
111 |
+ |
112 |
+inherit distutils-r1 |
113 |
+ |
114 |
+DESCRIPTION="commandline tool to sync directory services to local cache" |
115 |
+HOMEPAGE="https://github.com/google/nsscache" |
116 |
+SCRIPT_A='nsscache-0.30-r3-gentoo-authorized-keys-command.py' |
117 |
+SRC_URI=" |
118 |
+ https://github.com/google/nsscache/archive/version/${PV}.tar.gz -> ${P}.tar.gz |
119 |
+ https://dev.gentoo.org/~robbat2/${SCRIPT_A}" |
120 |
+ |
121 |
+LICENSE="GPL-2" |
122 |
+SLOT="0" |
123 |
+#KEYWORDS="~amd64 ~x86" |
124 |
+KEYWORDS="" # pending infra testing |
125 |
+IUSE="nsscache s3 test" |
126 |
+RESTRICT="test" # requires network |
127 |
+ |
128 |
+#test? ( dev-python/pytest-cov[${PYTHON_USEDEP}] dev-python/mox3[${PYTHON_USEDEP}] ) |
129 |
+DEPEND=" |
130 |
+ dev-python/ldap3[${PYTHON_USEDEP}] |
131 |
+ dev-python/pycurl[${PYTHON_USEDEP}] |
132 |
+ s3? ( dev-python/boto3[${PYTHON_USEDEP}] )" |
133 |
+RDEPEND="${DEPEND} |
134 |
+ nsscache? ( >=sys-auth/libnss-cache-0.10 )" |
135 |
+ |
136 |
+S="${WORKDIR}/${PN}-version-${PV}" |
137 |
+ |
138 |
+python_prepare_all() { |
139 |
+ # If tests are disabled in the ebuild, disable in setup |
140 |
+ if [[ "${RESTRICT/test}" != "$RESTRICT" ]]; then |
141 |
+ sed -i \ |
142 |
+ -e "/setup_requires/s,'pytest-runner',,g" \ |
143 |
+ -e '/tests_require/s,\[.*\],[],g' \ |
144 |
+ setup.py || die |
145 |
+ sed -i \ |
146 |
+ -e '/test=pytest/d' \ |
147 |
+ setup.cfg || die |
148 |
+ sed -i \ |
149 |
+ -e '/pytest/d' \ |
150 |
+ requirements.txt || die |
151 |
+ fi |
152 |
+ |
153 |
+ distutils-r1_python_prepare_all |
154 |
+} |
155 |
+ |
156 |
+python_compile() { |
157 |
+ distutils-r1_python_compile --verbose |
158 |
+} |
159 |
+ |
160 |
+python_install() { |
161 |
+ distutils-r1_python_install |
162 |
+ |
163 |
+ python_scriptinto /usr/libexec/nsscache |
164 |
+ python_newexe "${DISTDIR}"/"${SCRIPT_A}" authorized-keys-command.py |
165 |
+} |
166 |
+ |
167 |
+python_install_all() { |
168 |
+ distutils-r1_python_install_all |
169 |
+ |
170 |
+ doman nsscache.1 nsscache.conf.5 |
171 |
+ dodoc THANKS nsscache.cron CONTRIBUTING.md README.md |
172 |
+ |
173 |
+ keepdir /var/lib/nsscache |
174 |
+} |
175 |
+ |
176 |
+[[ "${RESTRICT/test}" != "$RESTRICT" ]] && distutils_enable_tests pytest |