Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-nds/389-ds-base/
Date: Fri, 24 Sep 2021 16:29:57
Message-Id: 1632500982.8b3240d44074fd78d439d3929d5b70834e093b91.flow@gentoo
1 commit: 8b3240d44074fd78d439d3929d5b70834e093b91
2 Author: Robert Förster <Dessa <AT> gmake <DOT> de>
3 AuthorDate: Fri Sep 24 15:49:12 2021 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 24 16:29:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b3240d4
7
8 net-nds/389-ds-base: bump to 1.4.4.17
9
10 Package-Manager: Portage-3.0.23, Repoman-3.0.3
11 Signed-off-by: Robert Förster <Dessa <AT> gmake.de>
12 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
13
14 net-nds/389-ds-base/389-ds-base-1.4.4.17.ebuild | 299 ++++++++++++++++++++++++
15 net-nds/389-ds-base/Manifest | 1 +
16 2 files changed, 300 insertions(+)
17
18 diff --git a/net-nds/389-ds-base/389-ds-base-1.4.4.17.ebuild b/net-nds/389-ds-base/389-ds-base-1.4.4.17.ebuild
19 new file mode 100644
20 index 00000000000..e64239ebf7b
21 --- /dev/null
22 +++ b/net-nds/389-ds-base/389-ds-base-1.4.4.17.ebuild
23 @@ -0,0 +1,299 @@
24 +# Copyright 1999-2021 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +CRATES="
30 + ahash-0.7.2
31 + ansi_term-0.11.0
32 + atty-0.2.14
33 + autocfg-1.0.1
34 + base64-0.13.0
35 + bitflags-1.2.1
36 + byteorder-1.4.3
37 + cbindgen-0.9.1
38 + cc-1.0.67
39 + cfg-if-1.0.0
40 + clap-2.33.3
41 + concread-0.2.9
42 + crossbeam-0.8.0
43 + crossbeam-channel-0.5.1
44 + crossbeam-deque-0.8.0
45 + crossbeam-epoch-0.9.3
46 + crossbeam-queue-0.3.1
47 + crossbeam-utils-0.8.3
48 + fernet-0.1.4
49 + foreign-types-0.3.2
50 + foreign-types-shared-0.1.1
51 + getrandom-0.2.2
52 + hermit-abi-0.1.18
53 + instant-0.1.9
54 + itoa-0.4.7
55 + jobserver-0.1.21
56 + lazy_static-1.4.0
57 + libc-0.2.93
58 + lock_api-0.4.3
59 + log-0.4.14
60 + memoffset-0.6.3
61 + once_cell-1.7.2
62 + openssl-0.10.33
63 + openssl-sys-0.9.61
64 + parking_lot-0.11.1
65 + parking_lot_core-0.8.3
66 + paste-0.1.18
67 + paste-impl-0.1.18
68 + pkg-config-0.3.19
69 + ppv-lite86-0.2.10
70 + proc-macro-hack-0.5.19
71 + proc-macro2-1.0.26
72 + quote-1.0.9
73 + rand-0.8.3
74 + rand_chacha-0.3.0
75 + rand_core-0.6.2
76 + rand_hc-0.3.0
77 + redox_syscall-0.2.6
78 + remove_dir_all-0.5.3
79 + ryu-1.0.5
80 + scopeguard-1.1.0
81 + serde-1.0.125
82 + serde_derive-1.0.125
83 + serde_json-1.0.64
84 + smallvec-1.6.1
85 + strsim-0.8.0
86 + syn-1.0.69
87 + synstructure-0.12.4
88 + tempfile-3.2.0
89 + textwrap-0.11.0
90 + toml-0.5.8
91 + unicode-width-0.1.8
92 + unicode-xid-0.2.1
93 + uuid-0.8.2
94 + vcpkg-0.2.11
95 + vec_map-0.8.2
96 + version_check-0.9.3
97 + wasi-0.10.2+wasi-snapshot-preview1
98 + winapi-0.3.9
99 + winapi-i686-pc-windows-gnu-0.4.0
100 + winapi-x86_64-pc-windows-gnu-0.4.0
101 + zeroize-1.2.0
102 + zeroize_derive-1.0.1
103 +"
104 +
105 +PYTHON_COMPAT=( python3_{8,9,10} )
106 +
107 +DISTUTILS_SINGLE_IMPL=1
108 +DISTUTILS_USE_SETUPTOOLS=rdepend
109 +
110 +inherit multilib flag-o-matic autotools distutils-r1 systemd tmpfiles db-use cargo
111 +
112 +DESCRIPTION="389 Directory Server (core libraries and daemons)"
113 +HOMEPAGE="https://directory.fedoraproject.org/"
114 +SRC_URI="https://github.com/389ds/${PN}/archive/refs/tags/${P}.tar.gz
115 + $(cargo_crate_uris ${CRATES})"
116 +LICENSE="GPL-3+ Apache-2.0 BSD MIT MPL-2.0"
117 +SLOT="$(ver_cut 1-2)/0"
118 +KEYWORDS="~amd64"
119 +IUSE_PLUGINS="+accountpolicy +bitwise +dna +pam-passthru"
120 +IUSE="${IUSE_PLUGINS} +autobind auto-dn-suffix debug doc +ldapi selinux systemd"
121 +
122 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
123 +
124 +# lib389 tests (which is most of the suite) can't find their own modules.
125 +RESTRICT="test"
126 +
127 +# always list newer first
128 +# Do not add any AGPL-3 BDB here!
129 +# See bug 525110, comment 15.
130 +BERKDB_SLOTS=( 5.3 4.8 )
131 +
132 +DEPEND="
133 + >=app-crypt/mit-krb5-1.7-r100[openldap]
134 + >=dev-libs/cyrus-sasl-2.1.19[kerberos]
135 + >=dev-libs/icu-60.2:=
136 + dev-libs/nspr
137 + >=dev-libs/nss-3.22[utils]
138 + dev-libs/libevent:=
139 + dev-libs/libpcre:3
140 + dev-libs/openssl:0=
141 + >=net-analyzer/net-snmp-5.1.2:=
142 + net-nds/openldap[sasl]
143 + || (
144 + $(for slot in ${BERKDB_SLOTS[@]} ; do printf '%s\n' "sys-libs/db:${slot}" ; done)
145 + )
146 + sys-libs/cracklib
147 + sys-fs/e2fsprogs
148 + sys-libs/zlib
149 + pam-passthru? ( sys-libs/pam )
150 + selinux? (
151 + $(python_gen_cond_dep '
152 + sys-libs/libselinux[python,${PYTHON_USEDEP}]
153 + ')
154 + )
155 + systemd? ( >=sys-apps/systemd-244 )
156 + virtual/libcrypt:=
157 + "
158 +
159 +BDEPEND=">=sys-devel/autoconf-2.69-r5
160 + virtual/pkgconfig
161 + ${PYTHON_DEPS}
162 + $(python_gen_cond_dep '
163 + dev-python/argparse-manpage[${PYTHON_USEDEP}]
164 + ')
165 + doc? ( app-doc/doxygen )
166 + test? ( dev-util/cmocka )
167 +"
168 +
169 +# perl dependencies are for logconv.pl
170 +RDEPEND="${DEPEND}
171 + !dev-libs/svrcore
172 + !net-nds/389-ds-base:0
173 + acct-user/dirsrv
174 + acct-group/dirsrv
175 + ${PYTHON_DEPS}
176 + $(python_gen_cond_dep '
177 + dev-python/pyasn1[${PYTHON_USEDEP}]
178 + dev-python/pyasn1-modules[${PYTHON_USEDEP}]
179 + dev-python/argcomplete[${PYTHON_USEDEP}]
180 + dev-python/python-dateutil[${PYTHON_USEDEP}]
181 + dev-python/python-ldap[sasl,${PYTHON_USEDEP}]
182 + dev-python/distro[${PYTHON_USEDEP}]
183 + ')
184 + virtual/perl-Archive-Tar
185 + virtual/perl-DB_File
186 + virtual/perl-IO
187 + virtual/perl-Getopt-Long
188 + virtual/perl-IO-Compress
189 + virtual/perl-MIME-Base64
190 + virtual/perl-Scalar-List-Utils
191 + virtual/perl-Time-Local
192 + virtual/logger
193 + selinux? ( sec-policy/selinux-dirsrv )
194 +"
195 +
196 +S="${WORKDIR}/${PN}-${P}"
197 +
198 +PATCHES=(
199 + "${FILESDIR}/${PN}-db-gentoo.patch"
200 +)
201 +
202 +distutils_enable_tests pytest
203 +
204 +src_prepare() {
205 + # this is for upstream GitHub issue 4292
206 + if use !systemd; then
207 + sed -i \
208 + -e 's|WITH_SYSTEMD = 1|WITH_SYSTEMD = 0|' \
209 + Makefile.am || die
210 + fi
211 +
212 + # GH issue 4092
213 + sed -i \
214 + -e 's|@localstatedir@/run|/run|' \
215 + ldap/admin/src/defaults.inf.in || die
216 +
217 + default
218 +
219 + eautoreconf
220 +}
221 +
222 +src_configure() {
223 + local myeconfargs=(
224 + $(use_enable accountpolicy acctpolicy)
225 + $(use_enable bitwise)
226 + $(use_enable dna)
227 + $(use_enable pam-passthru)
228 + $(use_enable autobind)
229 + $(use_enable auto-dn-suffix)
230 + $(use_enable debug)
231 + $(use_enable ldapi)
232 + $(use_with selinux)
233 + $(use_with systemd)
234 + $(use_with systemd systemdgroupname "dirsrv.target")
235 + $(use_with systemd tmpfiles-d "/usr/lib/tmpfiles.d")
236 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
237 + $(use_with !systemd initddir "/etc/init.d")
238 + $(use_enable test cmocka)
239 + --enable-rust
240 + --enable-rust-offline
241 + --with-pythonexec="${PYTHON}"
242 + --with-fhs
243 + --with-openldap
244 + --with-db-inc="$(db_includedir)"
245 + --disable-cockpit
246 + )
247 +
248 + econf "${myeconfargs[@]}"
249 +
250 + rm "${S}"/.cargo/config || die
251 +}
252 +
253 +src_compile() {
254 + export CARGO_HOME="${ECARGO_HOME}"
255 +
256 + default
257 +
258 + if use doc; then
259 + doxygen "${S}"/docs/slapi.doxy || die
260 + fi
261 +
262 + cd "${S}"/src/lib389 || die
263 + distutils-r1_src_compile
264 +
265 + # argparse-manpage dynamic man pages have hardcoded man v1 in header
266 + sed -i \
267 + "1s/\"1\"/\"8\"/" \
268 + "${S}"/src/lib389/man/{openldap_to_ds,ds{conf,ctl,idm,create}}.8 || die
269 +}
270 +
271 +src_test () {
272 + emake check
273 + cd "${S}"/src/lib389 || die
274 + distutils-r1_src_test
275 +}
276 +
277 +src_install() {
278 + # -j1 is a temporary workaround for bug #605432
279 + emake -j1 DESTDIR="${D}" install
280 +
281 + # Install gentoo style init script
282 + # Get these merged upstream
283 + newinitd "${FILESDIR}"/389-ds.initd-r1 389-ds
284 + newinitd "${FILESDIR}"/389-ds-snmp.initd 389-ds-snmp
285 +
286 + dotmpfiles "${FILESDIR}"/389-ds-base.conf
287 +
288 + # cope with libraries being in /usr/lib/dirsrv
289 + dodir /etc/env.d
290 + echo "LDPATH=/usr/$(get_libdir)/dirsrv" > "${ED}"/etc/env.d/08dirsrv || die
291 +
292 + if use doc; then
293 + cd "${S}" || die
294 + docinto html/
295 + dodoc -r html/.
296 + fi
297 +
298 + cd "${S}"/src/lib389 || die
299 + distutils-r1_src_install
300 + python_fix_shebang "${ED}"
301 +
302 + find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die
303 +}
304 +
305 +pkg_postinst() {
306 + tmpfiles_process 389-ds-base.conf
307 +
308 + echo
309 + elog "If you are planning to use 389-ds-snmp (ldap-agent),"
310 + elog "make sure to properly configure: /etc/dirsrv/config/ldap-agent.conf"
311 + elog "adding proper 'server' entries, and adding the lines below to"
312 + elog " => /etc/snmp/snmpd.conf"
313 + elog
314 + elog "master agentx"
315 + elog "agentXSocket /var/agentx/master"
316 + elog
317 + elog "To start 389 Directory Server (LDAP service) at boot:"
318 + elog
319 + elog " rc-update add 389-ds default"
320 + elog
321 + echo
322 +}
323
324 diff --git a/net-nds/389-ds-base/Manifest b/net-nds/389-ds-base/Manifest
325 index 3763efc0c80..6a79ee183ac 100644
326 --- a/net-nds/389-ds-base/Manifest
327 +++ b/net-nds/389-ds-base/Manifest
328 @@ -1,4 +1,5 @@
329 DIST 389-ds-base-1.4.4.16.tar.gz 5456272 BLAKE2B bb157de3ebfdf214a56a56cd991255080890b28ca5fbd4ce5437e1ab4ca03181b7c2a58630ee26112771aaf9037cff8102926f48da136d6af43024c70ca1eeb8 SHA512 2c8d446dd26f67345351a6ea5f6095d89ed5eb26df09e09b19d625fb01418c5354b93ac0272e68b2d444a70b63180ce53042e0e43b6ea826948f6c93f4c22fc0
330 +DIST 389-ds-base-1.4.4.17.tar.gz 5356426 BLAKE2B 4972d7a7a7d12fb13f76db5cb2c8b896d5bb02c9f1e4bfbfae709f5fc01b9f662b5557710ca52d9f0a6ac3dc9e36bfab594e597db90ab146a5a5f252e11b4175 SHA512 83cc20915d59d4a45febad1462103c51108deee271cae7f98ff28e0a939451060edca28046719a417b3d3b956a74687a288880d64a6ab201e682ad577bf70583
331 DIST ahash-0.7.2.crate 37192 BLAKE2B a2ea98d408f6ac72b96a7e14b22999d52a6839d724f3e8fc82f67ea985a110d8dc17847087e6aaeca477ef93afadda3488ee77cc5425cab5f77c00cd67ff4463 SHA512 77886a994102c1edf93b133e27658e3c84152c83597191d58c571dc7dfc765d41c2879ea55d64e04e3af804a4f10aeb1c10e33a924fd967b288e6d0b12728b34
332 DIST ansi_term-0.11.0.crate 17087 BLAKE2B 9bd35c045a01ce4c6c4a5db1b4f15e9412bb97426eec19d4421dffbec633de8d13452c13c1dc1b30998690b78d7ed38311aca700087f13a81f66bd1d5d7300c4 SHA512 a637466a380748f939b3af090b8c0333f35581925bc03f4dda9b3f95d338836403cf5487ae3af9ff68f8245a837f8ab061aabe57a126a6a2c20f2e972c77d1fa
333 DIST atty-0.2.14.crate 5470 BLAKE2B 2db856a9e898a430258f059aeaf7c844a153293e8856d90ac81f7d91a888c89198768ad5cb09303c23241fe85c560a55148fa56a303651a82b0edb895616bfab SHA512 d7b6c4b9a0f898d91ddbc41a5ee45bbf45d1d269508c8cc87ee3e3990500e41e0ec387afb1f3bc7db55bedac396dd86c6509f4bf9e5148d809c3802edcc5e1d9