1 |
commit: 321e440ace13a58be3ee92ad2b57a64a82664835 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 22 20:50:12 2020 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 22 20:50:12 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=321e440a |
7 |
|
8 |
net-nds/openldap: drop package from Prefix |
9 |
|
10 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
11 |
|
12 |
net-nds/openldap/Manifest | 2 - |
13 |
net-nds/openldap/files/DB_CONFIG.fast.example | 25 - |
14 |
.../files/openldap-2.2.14-perlthreadsfix.patch | 12 - |
15 |
.../openldap/files/openldap-2.4.11-libldap_r.patch | 11 - |
16 |
.../openldap/files/openldap-2.4.15-ppolicy.patch | 12 - |
17 |
net-nds/openldap/files/openldap-2.4.17-gcc44.patch | 11 - |
18 |
.../openldap/files/openldap-2.4.28-fix-dash.patch | 26 - |
19 |
.../files/openldap-2.4.28-gnutls-gcrypt.patch | 11 - |
20 |
net-nds/openldap/files/openldap-2.4.31-gcc47.patch | 16 - |
21 |
.../files/openldap-2.4.35-contrib-samba4.patch | 38 - |
22 |
.../files/openldap-2.4.35-contrib-smbk5pwd.patch | 48 -- |
23 |
net-nds/openldap/files/openldap-2.4.40-slapd-conf | 64 -- |
24 |
.../files/openldap-2.4.42-mdb-unbundle.patch | 136 ---- |
25 |
...enldap-2.4.45-fix-lmpasswd-gnutls-symbols.patch | 109 --- |
26 |
.../openldap/files/openldap-2.4.45-libressl.patch | 65 -- |
27 |
net-nds/openldap/files/openldap-2.4.45-winnt.patch | 80 -- |
28 |
.../files/openldap-2.4.6-evolution-ntlm.patch | 192 ----- |
29 |
net-nds/openldap/files/slapd-confd-2.4.28-r1 | 26 - |
30 |
net-nds/openldap/files/slapd-initd-2.4.40-r2 | 64 -- |
31 |
net-nds/openldap/files/slapd.service | 12 - |
32 |
net-nds/openldap/files/slapd.service.conf | 12 - |
33 |
net-nds/openldap/files/slapd.tmpfilesd | 2 - |
34 |
net-nds/openldap/metadata.xml | 20 - |
35 |
net-nds/openldap/openldap-2.4.45.ebuild | 889 --------------------- |
36 |
24 files changed, 1883 deletions(-) |
37 |
|
38 |
diff --git a/net-nds/openldap/Manifest b/net-nds/openldap/Manifest |
39 |
deleted file mode 100644 |
40 |
index d0a81c6ed5..0000000000 |
41 |
--- a/net-nds/openldap/Manifest |
42 |
+++ /dev/null |
43 |
@@ -1,2 +0,0 @@ |
44 |
-DIST openldap-2.4.45.tgz 5672845 BLAKE2B e1f97553482a2e8630b62bc0f439af2484f1a2349a1a077382a124354424fe510ab55f32c073565b142d0c9318870fe31a2652268ebabd97d3afd8c833bc7aab SHA512 1c9fc84efed8998f107ce6e1c6be3f5466388241afdca0cb3847720c9def0bc263a2dbc15bf0f9112d1b4c391fd01e8531a4fb08c5532c30fb86924c08daedab |
45 |
-DIST rfc2307bis.schema-20140524 12262 BLAKE2B 98031f49e9bde1e4821e637af3382364d8344ed7017649686a088070d96a632dffa6c661552352656b1b159c0fd962965580069a64c7f3d5bb6a3ed75f60fd99 SHA512 83b89a1deeefc8566b97e7e865b9b6d04541099cbdf719e24538a7d27d61b6209e87ab9003a9f140bd9afd018ec569e71721e3a24090e1902c8b6659d2ba103e |
46 |
|
47 |
diff --git a/net-nds/openldap/files/DB_CONFIG.fast.example b/net-nds/openldap/files/DB_CONFIG.fast.example |
48 |
deleted file mode 100644 |
49 |
index 8b52062c9c..0000000000 |
50 |
--- a/net-nds/openldap/files/DB_CONFIG.fast.example |
51 |
+++ /dev/null |
52 |
@@ -1,25 +0,0 @@ |
53 |
-# $OpenLDAP: pkg/ldap/servers/slapd/DB_CONFIG,v 1.1 2004/06/18 02:49:08 kurt Exp $ |
54 |
-# Example DB_CONFIG file for use with slapd(8) BDB/HDB databases. |
55 |
-# |
56 |
-# See Sleepycat Berkeley DB documentation |
57 |
-# <http://www.sleepycat.com/docs/ref/env/db_config.html> |
58 |
-# for detail description of DB_CONFIG syntax and semantics. |
59 |
-# |
60 |
-# Hints can also be found in the OpenLDAP Software FAQ |
61 |
-# <http://www.openldap.org/faq/index.cgi?file=2> |
62 |
- |
63 |
-# one 0.25 GB cache |
64 |
-set_cachesize 0 16777216 0 |
65 |
- |
66 |
-# Data Directory |
67 |
-#set_data_dir db |
68 |
- |
69 |
-# Transaction Log settings |
70 |
-set_lg_regionmax 262144 |
71 |
-set_lg_bsize 524288 |
72 |
-#set_lg_dir logs |
73 |
- |
74 |
-# When using (and only when using) slapadd(8) or slapindex(8), |
75 |
-# the following flags may be useful: |
76 |
-#set_flags DB_TXN_NOSYNC |
77 |
-#set_flags DB_TXN_NOT_DURABLE |
78 |
|
79 |
diff --git a/net-nds/openldap/files/openldap-2.2.14-perlthreadsfix.patch b/net-nds/openldap/files/openldap-2.2.14-perlthreadsfix.patch |
80 |
deleted file mode 100644 |
81 |
index ddb6672a5f..0000000000 |
82 |
--- a/net-nds/openldap/files/openldap-2.2.14-perlthreadsfix.patch |
83 |
+++ /dev/null |
84 |
@@ -1,12 +0,0 @@ |
85 |
-diff -ur openldap-2.2.14.orig/servers/slapd/back-perl/Makefile.in openldap-2.2.14/servers/slapd/back-perl/Makefile.in |
86 |
---- openldap-2.2.14.orig/servers/slapd/back-perl/Makefile.in 2004-04-12 11:20:14.000000000 -0700 |
87 |
-+++ openldap-2.2.14/servers/slapd/back-perl/Makefile.in 2004-06-20 18:43:41.000000000 -0700 |
88 |
-@@ -31,7 +31,7 @@ |
89 |
- |
90 |
- shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA) |
91 |
- NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS) |
92 |
--UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS) |
93 |
-+UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS) `perl -MExtUtils::Embed -e ldopts` |
94 |
- |
95 |
- LIBBASE = back_perl |
96 |
- |
97 |
|
98 |
diff --git a/net-nds/openldap/files/openldap-2.4.11-libldap_r.patch b/net-nds/openldap/files/openldap-2.4.11-libldap_r.patch |
99 |
deleted file mode 100644 |
100 |
index 448249a3b5..0000000000 |
101 |
--- a/net-nds/openldap/files/openldap-2.4.11-libldap_r.patch |
102 |
+++ /dev/null |
103 |
@@ -1,11 +0,0 @@ |
104 |
-diff -Nuar openldap-2.4.11.orig/servers/slapd/slapi/Makefile.in openldap-2.4.11/servers/slapd/slapi/Makefile.in |
105 |
---- openldap-2.4.11.orig/servers/slapd/slapi/Makefile.in 2008-02-11 15:26:49.000000000 -0800 |
106 |
-+++ openldap-2.4.11/servers/slapd/slapi/Makefile.in 2008-10-14 02:10:18.402799262 -0700 |
107 |
-@@ -37,6 +37,7 @@ |
108 |
- XLIBS = $(LIBRARY) |
109 |
- XXLIBS = |
110 |
- NT_LINK_LIBS = $(AC_LIBS) |
111 |
-+UNIX_LINK_LIBS = ../../../libraries/libldap_r/libldap_r.la $(LTHREAD_LIBS) |
112 |
- |
113 |
- XINCPATH = -I$(srcdir)/.. -I$(srcdir) |
114 |
- XDEFS = $(MODULES_CPPFLAGS) |
115 |
|
116 |
diff --git a/net-nds/openldap/files/openldap-2.4.15-ppolicy.patch b/net-nds/openldap/files/openldap-2.4.15-ppolicy.patch |
117 |
deleted file mode 100644 |
118 |
index 3195ee550f..0000000000 |
119 |
--- a/net-nds/openldap/files/openldap-2.4.15-ppolicy.patch |
120 |
+++ /dev/null |
121 |
@@ -1,12 +0,0 @@ |
122 |
---- openldap-2.4.15/clients/tools/common.c.orig 2009-02-05 15:05:03.000000000 -0800 |
123 |
-+++ openldap-2.4.15/clients/tools/common.c 2009-03-21 01:45:14.000000000 -0700 |
124 |
-@@ -1315,8 +1315,8 @@ |
125 |
- int nsctrls = 0; |
126 |
- |
127 |
- #ifdef LDAP_CONTROL_PASSWORDPOLICYREQUEST |
128 |
-+ LDAPControl c; |
129 |
- if ( ppolicy ) { |
130 |
-- LDAPControl c; |
131 |
- c.ldctl_oid = LDAP_CONTROL_PASSWORDPOLICYREQUEST; |
132 |
- c.ldctl_value.bv_val = NULL; |
133 |
- c.ldctl_value.bv_len = 0; |
134 |
|
135 |
diff --git a/net-nds/openldap/files/openldap-2.4.17-gcc44.patch b/net-nds/openldap/files/openldap-2.4.17-gcc44.patch |
136 |
deleted file mode 100644 |
137 |
index aa7fe7ac35..0000000000 |
138 |
--- a/net-nds/openldap/files/openldap-2.4.17-gcc44.patch |
139 |
+++ /dev/null |
140 |
@@ -1,11 +0,0 @@ |
141 |
-diff -ur openldap-2.4.17.orig/contrib/ldapc++/src/SaslInteractionHandler.cpp openldap-2.4.17/contrib/ldapc++/src/SaslInteractionHandler.cpp |
142 |
---- openldap-2.4.17.orig/contrib/ldapc++/src/SaslInteractionHandler.cpp 2008-04-15 02:09:26.000000000 +0300 |
143 |
-+++ openldap-2.4.17/contrib/ldapc++/src/SaslInteractionHandler.cpp 2009-08-10 13:21:24.000000000 +0300 |
144 |
-@@ -13,6 +13,7 @@ |
145 |
- #include <termios.h> |
146 |
- #endif |
147 |
- |
148 |
-+#include <stdio.h> |
149 |
- #include <string.h> |
150 |
- #include "SaslInteractionHandler.h" |
151 |
- #include "SaslInteraction.h" |
152 |
|
153 |
diff --git a/net-nds/openldap/files/openldap-2.4.28-fix-dash.patch b/net-nds/openldap/files/openldap-2.4.28-fix-dash.patch |
154 |
deleted file mode 100644 |
155 |
index d15c3d2231..0000000000 |
156 |
--- a/net-nds/openldap/files/openldap-2.4.28-fix-dash.patch |
157 |
+++ /dev/null |
158 |
@@ -1,26 +0,0 @@ |
159 |
-Our libtool needs bash to work properly. |
160 |
-Patch unbreaks build when /bin/sh points to dash: |
161 |
- |
162 |
- Entering subdirectory liblber |
163 |
- /bin/sh ../../libtool --mode=compile x86_64-pc-linux-gnu-gcc -O0 -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -DLBER_LIBRARY -c assert.c |
164 |
- ../../build/mkversion -v "2.4.28" liblber.la > version.c |
165 |
- /bin/sh ../../libtool --mode=compile x86_64-pc-linux-gnu-gcc -O0 -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -DLBER_LIBRARY -c decode.c |
166 |
- eval: 1: base_compile+= x86_64-pc-linux-gnu-gcc: not found |
167 |
- eval: 1: base_compile+= -O0: not found |
168 |
- eval: 1: base_compile+= -D_GNU_SOURCE: not found |
169 |
- eval: 1: base_compile+= x86_64-pc-linux-gnu-gcc: not found |
170 |
- ... |
171 |
- make[2]: *** [decode.lo] Error 1 |
172 |
-diff --git a/build/top.mk b/build/top.mk |
173 |
-index 6fea488..ea324e3 100644 |
174 |
---- a/build/top.mk |
175 |
-+++ b/build/top.mk |
176 |
-@@ -20,7 +20,7 @@ VERSION= @VERSION@ |
177 |
- RELEASEDATE= @OPENLDAP_RELEASE_DATE@ |
178 |
- |
179 |
- @SET_MAKE@ |
180 |
--SHELL = /bin/sh |
181 |
-+SHELL = @SHELL@ |
182 |
- |
183 |
- top_builddir = @top_builddir@ |
184 |
- |
185 |
|
186 |
diff --git a/net-nds/openldap/files/openldap-2.4.28-gnutls-gcrypt.patch b/net-nds/openldap/files/openldap-2.4.28-gnutls-gcrypt.patch |
187 |
deleted file mode 100644 |
188 |
index aeecb0f401..0000000000 |
189 |
--- a/net-nds/openldap/files/openldap-2.4.28-gnutls-gcrypt.patch |
190 |
+++ /dev/null |
191 |
@@ -1,11 +0,0 @@ |
192 |
---- openldap-2.4.28/configure.in.orig 2012-02-11 22:40:36.004360795 +0000 |
193 |
-+++ openldap-2.4.28/configure.in 2012-02-11 22:40:13.410986851 +0000 |
194 |
-@@ -1214,7 +1214,7 @@ |
195 |
- ol_with_tls=gnutls |
196 |
- ol_link_tls=yes |
197 |
- |
198 |
-- TLS_LIBS="-lgnutls" |
199 |
-+ TLS_LIBS="-lgnutls -lgcrypt" |
200 |
- |
201 |
- AC_DEFINE(HAVE_GNUTLS, 1, |
202 |
- [define if you have GNUtls]) |
203 |
|
204 |
diff --git a/net-nds/openldap/files/openldap-2.4.31-gcc47.patch b/net-nds/openldap/files/openldap-2.4.31-gcc47.patch |
205 |
deleted file mode 100644 |
206 |
index 5b6af4b295..0000000000 |
207 |
--- a/net-nds/openldap/files/openldap-2.4.31-gcc47.patch |
208 |
+++ /dev/null |
209 |
@@ -1,16 +0,0 @@ |
210 |
-Fix building with gcc-4.7 |
211 |
- |
212 |
-https://bugs.gentoo.org/show_bug.cgi?id=420959 |
213 |
-http://www.openldap.org/its/index.cgi/Incoming?id=7304;page=16 #ITS 7304 |
214 |
- |
215 |
-Patch written by Kacper Kowalik <xarthisius@g.o> |
216 |
---- a/contrib/ldapc++/src/SaslInteractionHandler.cpp |
217 |
-+++ b/contrib/ldapc++/src/SaslInteractionHandler.cpp |
218 |
-@@ -16,6 +16,7 @@ |
219 |
- |
220 |
- #include <stdio.h> |
221 |
- #include <string.h> |
222 |
-+#include <unistd.h> |
223 |
- #include "SaslInteractionHandler.h" |
224 |
- #include "SaslInteraction.h" |
225 |
- #include "debug.h" |
226 |
|
227 |
diff --git a/net-nds/openldap/files/openldap-2.4.35-contrib-samba4.patch b/net-nds/openldap/files/openldap-2.4.35-contrib-samba4.patch |
228 |
deleted file mode 100644 |
229 |
index 4312dc7c55..0000000000 |
230 |
--- a/net-nds/openldap/files/openldap-2.4.35-contrib-samba4.patch |
231 |
+++ /dev/null |
232 |
@@ -1,38 +0,0 @@ |
233 |
-diff -Nuar openldap-2.4.35.orig/contrib/slapd-modules/samba4/Makefile openldap-2.4.35/contrib/slapd-modules/samba4/Makefile |
234 |
---- openldap-2.4.35.orig/contrib/slapd-modules/samba4/Makefile 2013-03-28 15:41:51.000000000 +0000 |
235 |
-+++ openldap-2.4.35/contrib/slapd-modules/samba4/Makefile 2013-04-16 02:16:40.651868432 +0000 |
236 |
-@@ -20,7 +20,8 @@ |
237 |
- |
238 |
- LIBTOOL = $(LDAP_BUILD)/libtool |
239 |
- CC = gcc |
240 |
--OPT = -g -O2 -Wall |
241 |
-+#OPT = -g -O2 -Wall |
242 |
-+OPT = -Wall |
243 |
- DEFS = -DSLAPD_OVER_RDNVAL=SLAPD_MOD_DYNAMIC \ |
244 |
- -DSLAPD_OVER_PGUID=SLAPD_MOD_DYNAMIC \ |
245 |
- -DSLAPD_OVER_VERNUM=SLAPD_MOD_DYNAMIC |
246 |
-@@ -41,20 +42,20 @@ |
247 |
- .SUFFIXES: .c .o .lo |
248 |
- |
249 |
- .c.lo: |
250 |
-- $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $< |
251 |
-+ $(LIBTOOL) --mode=compile $(CC) $(OPT) $(CFLAGS) $(DEFS) $(INCS) -c $< |
252 |
- |
253 |
- all: $(PROGRAMS) |
254 |
- |
255 |
- pguid.la: pguid.lo |
256 |
-- $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \ |
257 |
-+ $(LIBTOOL) --mode=link $(CC) $(OPT) $(CFLAGS) -version-info $(LTVER) \ |
258 |
- -rpath $(moduledir) -module -o $@ $? $(LIBS) |
259 |
- |
260 |
- rdnval.la: rdnval.lo |
261 |
-- $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \ |
262 |
-+ $(LIBTOOL) --mode=link $(CC) $(OPT) $(CFLAGS) -version-info $(LTVER) \ |
263 |
- -rpath $(moduledir) -module -o $@ $? $(LIBS) |
264 |
- |
265 |
- vernum.la: vernum.lo |
266 |
-- $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \ |
267 |
-+ $(LIBTOOL) --mode=link $(CC) $(OPT) $(CFLAGS) -version-info $(LTVER) \ |
268 |
- -rpath $(moduledir) -module -o $@ $? $(LIBS) |
269 |
- |
270 |
- clean: |
271 |
|
272 |
diff --git a/net-nds/openldap/files/openldap-2.4.35-contrib-smbk5pwd.patch b/net-nds/openldap/files/openldap-2.4.35-contrib-smbk5pwd.patch |
273 |
deleted file mode 100644 |
274 |
index 4383802a0e..0000000000 |
275 |
--- a/net-nds/openldap/files/openldap-2.4.35-contrib-smbk5pwd.patch |
276 |
+++ /dev/null |
277 |
@@ -1,48 +0,0 @@ |
278 |
-diff -Nuar openldap-2.4.35.orig/contrib/slapd-modules/smbk5pwd/Makefile openldap-2.4.35/contrib/slapd-modules/smbk5pwd/Makefile |
279 |
---- openldap-2.4.35.orig/contrib/slapd-modules/smbk5pwd/Makefile 2013-03-28 15:41:51.000000000 +0000 |
280 |
-+++ openldap-2.4.35/contrib/slapd-modules/smbk5pwd/Makefile 2013-04-16 02:13:38.939913119 +0000 |
281 |
-@@ -21,16 +21,23 @@ |
282 |
- SSL_INC = |
283 |
- SSL_LIB = -lcrypto |
284 |
- |
285 |
--HEIMDAL_INC = -I/usr/heimdal/include |
286 |
--HEIMDAL_LIB = -L/usr/heimdal/lib -lkrb5 -lkadm5srv |
287 |
-+#HEIMDAL_INC = -I/usr/heimdal/include |
288 |
-+#HEIMDAL_LIB = -L/usr/heimdal/lib -lkrb5 -lkadm5srv |
289 |
-+KRB5_INC = $(HEIMDAL_INC) |
290 |
-+KRB5_LIB = $(HEIMDAL_LIB) -lkrb5 -lkadm5srv |
291 |
- |
292 |
- LIBTOOL = $(LDAP_BUILD)/libtool |
293 |
- CC = gcc |
294 |
--OPT = -g -O2 -Wall |
295 |
-+#OPT = -g -O2 -Wall |
296 |
-+OPT = -Wall |
297 |
- # Omit DO_KRB5, DO_SAMBA or DO_SHADOW if you don't want to support it. |
298 |
--DEFS = -DDO_KRB5 -DDO_SAMBA -DDO_SHADOW |
299 |
--INCS = $(LDAP_INC) $(HEIMDAL_INC) $(SSL_INC) |
300 |
--LIBS = $(LDAP_LIB) $(HEIMDAL_LIB) $(SSL_LIB) |
301 |
-+#DEFS = -DDO_KRB5 -DDO_SAMBA -DDO_SHADOW |
302 |
-+INCS = $(LDAP_INC) $(KRB5_INC) $(SSL_INC) |
303 |
-+ifneq (DDO_KRB5,$(findstring DDO_KRB5,$(DEFS))) |
304 |
-+ LIBS=$(LDAP_LIB) $(SSL_LIB) |
305 |
-+else |
306 |
-+ LIBS=$(LDAP_LIB) $(KRB5_LIB) $(SSL_LIB) |
307 |
-+endif |
308 |
- |
309 |
- PROGRAMS = smbk5pwd.la |
310 |
- LTVER = 0:0:0 |
311 |
-@@ -46,12 +53,12 @@ |
312 |
- .SUFFIXES: .c .o .lo |
313 |
- |
314 |
- .c.lo: |
315 |
-- $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $< |
316 |
-+ $(LIBTOOL) --mode=compile $(CC) $(OPT) $(CFLAGS) $(DEFS) $(INCS) -c $< |
317 |
- |
318 |
- all: $(PROGRAMS) |
319 |
- |
320 |
- smbk5pwd.la: smbk5pwd.lo |
321 |
-- $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \ |
322 |
-+ $(LIBTOOL) --mode=link $(CC) $(OPT) $(CFLAGS) -version-info $(LTVER) \ |
323 |
- -rpath $(moduledir) -module -o $@ $? $(LIBS) |
324 |
- |
325 |
- clean: |
326 |
|
327 |
diff --git a/net-nds/openldap/files/openldap-2.4.40-slapd-conf b/net-nds/openldap/files/openldap-2.4.40-slapd-conf |
328 |
deleted file mode 100644 |
329 |
index 8ecc732b96..0000000000 |
330 |
--- a/net-nds/openldap/files/openldap-2.4.40-slapd-conf |
331 |
+++ /dev/null |
332 |
@@ -1,64 +0,0 @@ |
333 |
-# |
334 |
-# See slapd.conf(5) for details on configuration options. |
335 |
-# This file should NOT be world readable. |
336 |
-# |
337 |
-include /etc/openldap/schema/core.schema |
338 |
- |
339 |
-# Define global ACLs to disable default read access. |
340 |
- |
341 |
-# Do not enable referrals until AFTER you have a working directory |
342 |
-# service AND an understanding of referrals. |
343 |
-#referral ldap://root.openldap.org |
344 |
- |
345 |
-pidfile /run/openldap/slapd.pid |
346 |
-argsfile /run/openldap/slapd.args |
347 |
- |
348 |
-# Load dynamic backend modules: |
349 |
-###INSERTDYNAMICMODULESHERE### |
350 |
- |
351 |
-# Sample security restrictions |
352 |
-# Require integrity protection (prevent hijacking) |
353 |
-# Require 112-bit (3DES or better) encryption for updates |
354 |
-# Require 63-bit encryption for simple bind |
355 |
-# security ssf=1 update_ssf=112 simple_bind=64 |
356 |
- |
357 |
-# Sample access control policy: |
358 |
-# Root DSE: allow anyone to read it |
359 |
-# Subschema (sub)entry DSE: allow anyone to read it |
360 |
-# Other DSEs: |
361 |
-# Allow self write access |
362 |
-# Allow authenticated users read access |
363 |
-# Allow anonymous users to authenticate |
364 |
-# Directives needed to implement policy: |
365 |
-# access to dn.base="" by * read |
366 |
-# access to dn.base="cn=Subschema" by * read |
367 |
-# access to * |
368 |
-# by self write |
369 |
-# by users read |
370 |
-# by anonymous auth |
371 |
-# |
372 |
-# if no access controls are present, the default policy |
373 |
-# allows anyone and everyone to read anything but restricts |
374 |
-# updates to rootdn. (e.g., "access to * by * read") |
375 |
-# |
376 |
-# rootdn can always read and write EVERYTHING! |
377 |
- |
378 |
-####################################################################### |
379 |
-# BDB database definitions |
380 |
-####################################################################### |
381 |
- |
382 |
-database hdb |
383 |
-suffix "dc=my-domain,dc=com" |
384 |
-# <kbyte> <min> |
385 |
-checkpoint 32 30 |
386 |
-rootdn "cn=Manager,dc=my-domain,dc=com" |
387 |
-# Cleartext passwords, especially for the rootdn, should |
388 |
-# be avoid. See slappasswd(8) and slapd.conf(5) for details. |
389 |
-# Use of strong authentication encouraged. |
390 |
-rootpw secret |
391 |
-# The database directory MUST exist prior to running slapd AND |
392 |
-# should only be accessible by the slapd and slap tools. |
393 |
-# Mode 700 recommended. |
394 |
-directory /var/lib/openldap-data |
395 |
-# Indices to maintain |
396 |
-index objectClass eq |
397 |
|
398 |
diff --git a/net-nds/openldap/files/openldap-2.4.42-mdb-unbundle.patch b/net-nds/openldap/files/openldap-2.4.42-mdb-unbundle.patch |
399 |
deleted file mode 100644 |
400 |
index 9265a01701..0000000000 |
401 |
--- a/net-nds/openldap/files/openldap-2.4.42-mdb-unbundle.patch |
402 |
+++ /dev/null |
403 |
@@ -1,136 +0,0 @@ |
404 |
---- ./build/top.mk.orig 2014-10-24 14:34:59.260827298 +0200 |
405 |
-+++ ./build/top.mk 2014-10-24 14:35:25.281168893 +0200 |
406 |
-@@ -160,6 +160,7 @@ |
407 |
- LTHREAD_LIBS = @LTHREAD_LIBS@ |
408 |
- |
409 |
- BDB_LIBS = @BDB_LIBS@ |
410 |
-+MDB_LIBS = @MDB_LIBS@ |
411 |
- SLAPD_NDB_LIBS = @SLAPD_NDB_LIBS@ |
412 |
- |
413 |
- LDAP_LIBLBER_LA = $(LDAP_LIBDIR)/liblber/liblber.la |
414 |
---- ./build/openldap.m4.orig 2014-10-24 10:52:02.837221734 +0200 |
415 |
-+++ ./build/openldap.m4 2014-10-24 11:31:02.748087966 +0200 |
416 |
-@@ -563,6 +563,38 @@ |
417 |
- ], [ol_cv_bdb_compat=yes], [ol_cv_bdb_compat=no])]) |
418 |
- ]) |
419 |
- |
420 |
-+dnl -------------------------------------------------------------------- |
421 |
-+dnl Check for version compatility with back-mdb |
422 |
-+AC_DEFUN([OL_MDB_COMPAT], |
423 |
-+[AC_CACHE_CHECK([if LMDB version supported by MDB backends], [ol_cv_mdb_compat],[ |
424 |
-+ AC_EGREP_CPP(__mdb_version_compat,[ |
425 |
-+#include <lmdb.h> |
426 |
-+ |
427 |
-+/* require 0.9.14 or later */ |
428 |
-+#if MDB_VERSION_FULL >= 0x00000009000E |
429 |
-+ __mdb_version_compat |
430 |
-+#endif |
431 |
-+ ], [ol_cv_mdb_compat=yes], [ol_cv_mdb_compat=no])]) |
432 |
-+]) |
433 |
-+ |
434 |
-+dnl |
435 |
-+dnl -------------------------------------------------------------------- |
436 |
-+dnl Find any MDB |
437 |
-+AC_DEFUN([OL_MDB], |
438 |
-+[ol_cv_mdb=no |
439 |
-+AC_CHECK_HEADERS(lmdb.h) |
440 |
-+if test $ac_cv_header_lmdb_h = yes; then |
441 |
-+ OL_MDB_COMPAT |
442 |
-+ |
443 |
-+ if test $ol_cv_mdb_compat != yes ; then |
444 |
-+ AC_MSG_ERROR([LMDB version incompatible with MDB backends]) |
445 |
-+ fi |
446 |
-+ |
447 |
-+ ol_cv_lib_mdb=-llmdb |
448 |
-+ ol_cv_mdb=yes |
449 |
-+fi |
450 |
-+]) |
451 |
-+ |
452 |
- dnl |
453 |
- dnl ==================================================================== |
454 |
- dnl Check POSIX Thread version |
455 |
---- ./servers/slapd/back-mdb/Makefile.in.orig 2014-10-24 10:31:30.860931076 +0200 |
456 |
-+++ ./servers/slapd/back-mdb/Makefile.in 2014-10-24 14:33:33.803705424 +0200 |
457 |
-@@ -25,11 +25,10 @@ |
458 |
- extended.lo operational.lo \ |
459 |
- attr.lo index.lo key.lo filterindex.lo \ |
460 |
- dn2entry.lo dn2id.lo id2entry.lo idl.lo \ |
461 |
-- nextid.lo monitor.lo mdb.lo midl.lo |
462 |
-+ nextid.lo monitor.lo |
463 |
- |
464 |
- LDAP_INCDIR= ../../../include |
465 |
- LDAP_LIBDIR= ../../../libraries |
466 |
--MDB_SUBDIR = $(srcdir)/$(LDAP_LIBDIR)/liblmdb |
467 |
- |
468 |
- BUILD_OPT = "--enable-mdb" |
469 |
- BUILD_MOD = @BUILD_MDB@ |
470 |
-@@ -44,7 +43,7 @@ |
471 |
- |
472 |
- LIBBASE = back_mdb |
473 |
- |
474 |
--XINCPATH = -I.. -I$(srcdir)/.. -I$(MDB_SUBDIR) |
475 |
-+XINCPATH = -I.. -I$(srcdir)/.. |
476 |
- XDEFS = $(MODULES_CPPFLAGS) |
477 |
- |
478 |
- all-local-lib: ../.backend |
479 |
-@@ -52,11 +51,5 @@ |
480 |
- ../.backend: lib$(LIBBASE).a |
481 |
- @touch $@ |
482 |
- |
483 |
--mdb.lo: $(MDB_SUBDIR)/mdb.c |
484 |
-- $(LTCOMPILE_MOD) $(MDB_SUBDIR)/mdb.c |
485 |
-- |
486 |
--midl.lo: $(MDB_SUBDIR)/midl.c |
487 |
-- $(LTCOMPILE_MOD) $(MDB_SUBDIR)/midl.c |
488 |
-- |
489 |
- veryclean-local-lib: FORCE |
490 |
- $(RM) $(XXHEADERS) $(XXSRCS) .links |
491 |
---- ./configure.in.orig 2014-10-24 10:46:53.289139847 +0200 |
492 |
-+++ ./configure.in 2014-10-24 10:51:34.372846374 +0200 |
493 |
-@@ -519,6 +519,7 @@ |
494 |
- dnl Initialize vars |
495 |
- LDAP_LIBS= |
496 |
- BDB_LIBS= |
497 |
-+MDB_LIBS= |
498 |
- SLAPD_NDB_LIBS= |
499 |
- SLAPD_NDB_INCS= |
500 |
- LTHREAD_LIBS= |
501 |
-@@ -1905,6 +1906,30 @@ |
502 |
- fi |
503 |
- |
504 |
- dnl ---------------------------------------------------------------- |
505 |
-+ol_link_mdb=no |
506 |
-+ |
507 |
-+if test $ol_enable_mdb != no; then |
508 |
-+ OL_MDB |
509 |
-+ |
510 |
-+ if test $ol_cv_mdb = no ; then |
511 |
-+ AC_MSG_ERROR(MDB: LMDB not available) |
512 |
-+ fi |
513 |
-+ |
514 |
-+ AC_DEFINE(HAVE_MDB,1, |
515 |
-+ [define this if LMDB is available]) |
516 |
-+ |
517 |
-+ dnl $ol_cv_lib_mdb should be yes or -llmdb |
518 |
-+ dnl (it could be no, but that would be an error |
519 |
-+ if test $ol_cv_lib_mdb != yes ; then |
520 |
-+ MDB_LIBS="$MDB_LIBS $ol_cv_lib_mdb" |
521 |
-+ fi |
522 |
-+ |
523 |
-+ SLAPD_LIBS="$SLAPD_LIBS \$(MDB_LIBS)" |
524 |
-+ |
525 |
-+ ol_link_mdb=yes |
526 |
-+fi |
527 |
-+ |
528 |
-+dnl ---------------------------------------------------------------- |
529 |
- |
530 |
- if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then |
531 |
- BUILD_LIBS_DYNAMIC=shared |
532 |
-@@ -3133,6 +3158,7 @@ |
533 |
- AC_SUBST(LDAP_LIBS) |
534 |
- AC_SUBST(SLAPD_LIBS) |
535 |
- AC_SUBST(BDB_LIBS) |
536 |
-+AC_SUBST(MDB_LIBS) |
537 |
- AC_SUBST(SLAPD_NDB_LIBS) |
538 |
- AC_SUBST(SLAPD_NDB_INCS) |
539 |
- AC_SUBST(LTHREAD_LIBS) |
540 |
|
541 |
diff --git a/net-nds/openldap/files/openldap-2.4.45-fix-lmpasswd-gnutls-symbols.patch b/net-nds/openldap/files/openldap-2.4.45-fix-lmpasswd-gnutls-symbols.patch |
542 |
deleted file mode 100644 |
543 |
index 29688fcb14..0000000000 |
544 |
--- a/net-nds/openldap/files/openldap-2.4.45-fix-lmpasswd-gnutls-symbols.patch |
545 |
+++ /dev/null |
546 |
@@ -1,109 +0,0 @@ |
547 |
-If GnuTLS is used, the lmpasswd module for USE=samba does not compile. |
548 |
-Forward-port an old Debian patch that upstream never applied. |
549 |
- |
550 |
-Signed-off-by: Robin H. Johnson <robbat2@g.o> |
551 |
-Signed-off-by: Steffen Hau <steffen@×××××××.de> |
552 |
-X-Gentoo-Bug: http://bugs.gentoo.org/show_bug.cgi?id=233633 |
553 |
-X-Upstream-Bug: http://www.openldap.org/its/index.cgi/Software%20Enhancements?id=4997 |
554 |
-X-Debian-Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=245341 |
555 |
- |
556 |
---- openldap-2.4.17.orig/libraries/liblutil/passwd.c 2009-07-27 18:59:19.635995474 -0700 |
557 |
-+++ openldap-2.4.17/libraries/liblutil/passwd.c 2009-07-27 19:01:13.588069010 -0700 |
558 |
-@@ -51,6 +51,26 @@ typedef unsigned char des_data_block[8]; |
559 |
- typedef PK11Context *des_context[1]; |
560 |
- #define DES_ENCRYPT CKA_ENCRYPT |
561 |
- |
562 |
-+#elif defined(HAVE_GNUTLS_GNUTLS_H) && !defined(DES_ENCRYPT) |
563 |
-+# include <gcrypt.h> |
564 |
-+static int gcrypt_init = 0; |
565 |
-+ |
566 |
-+typedef const void* des_key; |
567 |
-+typedef unsigned char DES_cblock[8]; |
568 |
-+typedef DES_cblock des_data_block; |
569 |
-+typedef int DES_key_schedule; /* unused */ |
570 |
-+typedef DES_key_schedule des_context; /* unused */ |
571 |
-+#define des_failed(encrypted) 0 |
572 |
-+#define des_finish(key, schedule) |
573 |
-+ |
574 |
-+#define DES_set_key_unchecked( key, key_sched ) \ |
575 |
-+ gcry_cipher_setkey( hd, key, 8 ) |
576 |
-+ |
577 |
-+#define DES_ecb_encrypt( input, output, key_sched, enc ) \ |
578 |
-+ gcry_cipher_encrypt( hd, *output, 8, *input, 8 ) |
579 |
-+ |
580 |
-+#define DES_set_odd_parity( key ) do {} while(0) |
581 |
-+ |
582 |
- #endif |
583 |
- |
584 |
- #endif /* SLAPD_LMHASH */ |
585 |
-@@ -651,7 +671,7 @@ static int chk_md5( |
586 |
- |
587 |
- #ifdef SLAPD_LMHASH |
588 |
- |
589 |
--#if defined(HAVE_OPENSSL) |
590 |
-+#if defined(HAVE_OPENSSL) || defined(HAVE_GNUTLS_GNUTLS_H) |
591 |
- |
592 |
- /* |
593 |
- * abstract away setting the parity. |
594 |
-@@ -841,6 +861,19 @@ static int chk_lanman( |
595 |
- des_data_block StdText = "KGS!@#$%"; |
596 |
- des_data_block PasswordHash1, PasswordHash2; |
597 |
- char PasswordHash[33], storedPasswordHash[33]; |
598 |
-+ |
599 |
-+#if defined(HAVE_GNUTLS_GNUTLS_H) && !defined(DES_ENCRYPT) |
600 |
-+ gcry_cipher_hd_t hd; |
601 |
-+ |
602 |
-+ if ( !gcrypt_init ) { |
603 |
-+ gcry_check_version( GCRYPT_VERSION ); |
604 |
-+ gcrypt_init = 1; |
605 |
-+ } |
606 |
-+ |
607 |
-+ schedule = schedule; /* unused - avoid warning */ |
608 |
-+ |
609 |
-+ gcry_cipher_open( &hd, GCRY_CIPHER_DES, GCRY_CIPHER_MODE_ECB, 0 ); |
610 |
-+#endif /* HAVE_GNUTLS_GNUTLS_H && !DES_ENCRYPT */ |
611 |
- |
612 |
- for( i=0; i<cred->bv_len; i++) { |
613 |
- if(cred->bv_val[i] == '\0') { |
614 |
-@@ -883,6 +916,10 @@ static int chk_lanman( |
615 |
- strncpy( storedPasswordHash, passwd->bv_val, 32 ); |
616 |
- storedPasswordHash[32] = '\0'; |
617 |
- ldap_pvt_str2lower( storedPasswordHash ); |
618 |
-+ |
619 |
-+#if defined(HAVE_GNUTLS_GNUTLS_H) && !defined(DES_ENCRYPT) |
620 |
-+ gcry_cipher_close( hd ); |
621 |
-+#endif /* HAVE_GNUTLS_GNUTLS_H && !DES_ENCRYPT */ |
622 |
- |
623 |
- return memcmp( PasswordHash, storedPasswordHash, 32) ? LUTIL_PASSWD_ERR : LUTIL_PASSWD_OK; |
624 |
- } |
625 |
-@@ -1138,6 +1175,19 @@ static int hash_lanman( |
626 |
- des_data_block PasswordHash1, PasswordHash2; |
627 |
- char PasswordHash[33]; |
628 |
- |
629 |
-+#if defined(HAVE_GNUTLS_GNUTLS_H) && !defined(DES_ENCRYPT) |
630 |
-+ gcry_cipher_hd_t hd; |
631 |
-+ |
632 |
-+ if ( !gcrypt_init ) { |
633 |
-+ gcry_check_version( GCRYPT_VERSION ); |
634 |
-+ gcrypt_init = 1; |
635 |
-+ } |
636 |
-+ |
637 |
-+ schedule = schedule; /* unused - avoid warning */ |
638 |
-+ |
639 |
-+ gcry_cipher_open( &hd, GCRY_CIPHER_DES, GCRY_CIPHER_MODE_ECB, 0 ); |
640 |
-+#endif /* HAVE_GNUTLS_GNUTLS_H && !DES_ENCRYPT */ |
641 |
-+ |
642 |
- for( i=0; i<passwd->bv_len; i++) { |
643 |
- if(passwd->bv_val[i] == '\0') { |
644 |
- return LUTIL_PASSWD_ERR; /* NUL character in password */ |
645 |
-@@ -1168,6 +1218,10 @@ static int hash_lanman( |
646 |
- |
647 |
- hash->bv_val = PasswordHash; |
648 |
- hash->bv_len = 32; |
649 |
-+ |
650 |
-+#if defined(HAVE_GNUTLS_GNUTLS_H) && !defined(DES_ENCRYPT) |
651 |
-+ gcry_cipher_close( hd ); |
652 |
-+#endif /* HAVE_GNUTLS_GNUTLS_H && !DES_ENCRYPT */ |
653 |
- |
654 |
- return pw_string( scheme, hash ); |
655 |
- } |
656 |
|
657 |
diff --git a/net-nds/openldap/files/openldap-2.4.45-libressl.patch b/net-nds/openldap/files/openldap-2.4.45-libressl.patch |
658 |
deleted file mode 100644 |
659 |
index 20a65a4e0f..0000000000 |
660 |
--- a/net-nds/openldap/files/openldap-2.4.45-libressl.patch |
661 |
+++ /dev/null |
662 |
@@ -1,65 +0,0 @@ |
663 |
---- libraries/libldap/tls_o.c.orig 2017-06-04 16:31:28 UTC |
664 |
-+++ libraries/libldap/tls_o.c |
665 |
-@@ -47,7 +47,7 @@ |
666 |
- #include <ssl.h> |
667 |
- #endif |
668 |
- |
669 |
--#if OPENSSL_VERSION_NUMBER >= 0x10100000 |
670 |
-+#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER) |
671 |
- #define ASN1_STRING_data(x) ASN1_STRING_get0_data(x) |
672 |
- #endif |
673 |
- |
674 |
-@@ -157,7 +157,7 @@ tlso_init( void ) |
675 |
- (void) tlso_seed_PRNG( lo->ldo_tls_randfile ); |
676 |
- #endif |
677 |
- |
678 |
--#if OPENSSL_VERSION_NUMBER < 0x10100000 |
679 |
-+#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER) |
680 |
- SSL_load_error_strings(); |
681 |
- SSL_library_init(); |
682 |
- OpenSSL_add_all_digests(); |
683 |
-@@ -205,7 +205,7 @@ static void |
684 |
- tlso_ctx_ref( tls_ctx *ctx ) |
685 |
- { |
686 |
- tlso_ctx *c = (tlso_ctx *)ctx; |
687 |
--#if OPENSSL_VERSION_NUMBER < 0x10100000 |
688 |
-+#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER) |
689 |
- #define SSL_CTX_up_ref(ctx) CRYPTO_add( &(ctx->references), 1, CRYPTO_LOCK_SSL_CTX ) |
690 |
- #endif |
691 |
- SSL_CTX_up_ref( c ); |
692 |
-@@ -464,7 +464,7 @@ tlso_session_my_dn( tls_session *sess, struct berval * |
693 |
- if (!x) return LDAP_INVALID_CREDENTIALS; |
694 |
- |
695 |
- xn = X509_get_subject_name(x); |
696 |
--#if OPENSSL_VERSION_NUMBER < 0x10100000 |
697 |
-+#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER) |
698 |
- der_dn->bv_len = i2d_X509_NAME( xn, NULL ); |
699 |
- der_dn->bv_val = xn->bytes->data; |
700 |
- #else |
701 |
-@@ -500,7 +500,7 @@ tlso_session_peer_dn( tls_session *sess, struct berval |
702 |
- return LDAP_INVALID_CREDENTIALS; |
703 |
- |
704 |
- xn = X509_get_subject_name(x); |
705 |
--#if OPENSSL_VERSION_NUMBER < 0x10100000 |
706 |
-+#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER) |
707 |
- der_dn->bv_len = i2d_X509_NAME( xn, NULL ); |
708 |
- der_dn->bv_val = xn->bytes->data; |
709 |
- #else |
710 |
-@@ -721,7 +721,7 @@ struct tls_data { |
711 |
- Sockbuf_IO_Desc *sbiod; |
712 |
- }; |
713 |
- |
714 |
--#if OPENSSL_VERSION_NUMBER < 0x10100000 |
715 |
-+#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER) |
716 |
- #define BIO_set_init(b, x) b->init = x |
717 |
- #define BIO_set_data(b, x) b->ptr = x |
718 |
- #define BIO_clear_flags(b, x) b->flags &= ~(x) |
719 |
-@@ -822,7 +822,7 @@ tlso_bio_puts( BIO *b, const char *str ) |
720 |
- return tlso_bio_write( b, str, strlen( str ) ); |
721 |
- } |
722 |
- |
723 |
--#if OPENSSL_VERSION_NUMBER >= 0x10100000 |
724 |
-+#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER) |
725 |
- struct bio_method_st { |
726 |
- int type; |
727 |
- const char *name; |
728 |
|
729 |
diff --git a/net-nds/openldap/files/openldap-2.4.45-winnt.patch b/net-nds/openldap/files/openldap-2.4.45-winnt.patch |
730 |
deleted file mode 100644 |
731 |
index e4af03e5fc..0000000000 |
732 |
--- a/net-nds/openldap/files/openldap-2.4.45-winnt.patch |
733 |
+++ /dev/null |
734 |
@@ -1,80 +0,0 @@ |
735 |
-diff -ru openldap-2.4.45.gentoo/configure.in openldap-2.4.45/configure.in |
736 |
---- openldap-2.4.45.gentoo/configure.in 2019-06-14 09:59:09.295425100 +0200 |
737 |
-+++ openldap-2.4.45/configure.in 2019-06-14 10:02:08.279864200 +0200 |
738 |
-@@ -821,6 +821,7 @@ |
739 |
- locale.h \ |
740 |
- malloc.h \ |
741 |
- memory.h \ |
742 |
-+ netinet/in.h \ |
743 |
- psap.h \ |
744 |
- pwd.h \ |
745 |
- process.h \ |
746 |
-@@ -862,12 +863,16 @@ |
747 |
- |
748 |
- AC_CHECK_HEADERS( resolv.h, [], [], |
749 |
- [$ac_includes_default |
750 |
-+#ifdef HAVE_NETINET_IN_H |
751 |
- #include <netinet/in.h> |
752 |
-+#endif |
753 |
- ]) |
754 |
- |
755 |
- AC_CHECK_HEADERS( netinet/tcp.h, [], [], |
756 |
- [$ac_includes_default |
757 |
-+#ifdef HAVE_NETINET_IN_H |
758 |
- #include <netinet/in.h> |
759 |
-+#endif |
760 |
- ]) |
761 |
- |
762 |
- AC_CHECK_HEADERS( sys/ucred.h, [], [], |
763 |
-@@ -2429,9 +2434,11 @@ |
764 |
- dnl Check for NT specific routines |
765 |
- AC_CHECK_FUNC(_spawnlp, AC_DEFINE(HAVE_SPAWNLP,1,[if you have spawnlp()])) |
766 |
- |
767 |
--AC_CHECK_FUNC(_snprintf, [ac_cv_func_snprintf=yes |
768 |
-+AC_CHECK_FUNCS(snprintf) |
769 |
-+ |
770 |
-+AC_CHECK_FUNC(_snprintf, [if test $ac_cv_func_snprintf = no ; then |
771 |
- AC_DEFINE(snprintf, _snprintf, [define to snprintf routine]) |
772 |
--]) |
773 |
-+fi]) |
774 |
- |
775 |
- AC_CHECK_FUNCS(vsnprintf _vsnprintf) |
776 |
- |
777 |
-@@ -2444,7 +2451,7 @@ |
778 |
- |
779 |
- if test $ac_cv_func_vprintf = yes ; then |
780 |
- dnl check for vsnprintf |
781 |
-- AC_CHECK_FUNCS(snprintf vsnprintf) |
782 |
-+ AC_CHECK_FUNCS(vsnprintf) |
783 |
- fi |
784 |
- |
785 |
- AC_CHECK_FUNCS( \ |
786 |
-diff -ru openldap-2.4.45.gentoo/include/ac/socket.h openldap-2.4.45/include/ac/socket.h |
787 |
---- openldap-2.4.45.gentoo/include/ac/socket.h 2017-06-01 22:01:07.000000000 +0200 |
788 |
-+++ openldap-2.4.45/include/ac/socket.h 2019-06-14 10:02:08.279864200 +0200 |
789 |
-@@ -38,7 +38,9 @@ |
790 |
- #include <sys/select.h> |
791 |
- #endif |
792 |
- |
793 |
-+#ifdef HAVE_NETINET_IN_H |
794 |
- #include <netinet/in.h> |
795 |
-+#endif |
796 |
- |
797 |
- #ifdef HAVE_NETINET_TCP_H |
798 |
- #include <netinet/tcp.h> |
799 |
-@@ -98,9 +100,15 @@ |
800 |
- # define tcp_close( s ) closesocket( s ) |
801 |
- # endif |
802 |
- |
803 |
-+#ifndef EWOULDBLOCK |
804 |
- #define EWOULDBLOCK WSAEWOULDBLOCK |
805 |
-+#endif |
806 |
-+#ifndef EINPROGRESS |
807 |
- #define EINPROGRESS WSAEINPROGRESS |
808 |
-+#endif |
809 |
-+#ifndef ETIMEDOUT |
810 |
- #define ETIMEDOUT WSAETIMEDOUT |
811 |
-+#endif |
812 |
- |
813 |
- #undef sock_errno |
814 |
- #undef sock_errstr |
815 |
|
816 |
diff --git a/net-nds/openldap/files/openldap-2.4.6-evolution-ntlm.patch b/net-nds/openldap/files/openldap-2.4.6-evolution-ntlm.patch |
817 |
deleted file mode 100644 |
818 |
index 33ff29e0ae..0000000000 |
819 |
--- a/net-nds/openldap/files/openldap-2.4.6-evolution-ntlm.patch |
820 |
+++ /dev/null |
821 |
@@ -1,192 +0,0 @@ |
822 |
-diff -up evo-openldap-2.4.14/include/ldap.h.evolution-ntlm evo-openldap-2.4.14/include/ldap.h |
823 |
---- evo-openldap-2.4.14/include/ldap.h.evolution-ntlm 2009-01-27 00:29:53.000000000 +0100 |
824 |
-+++ evo-openldap-2.4.14/include/ldap.h 2009-02-17 10:10:00.000000000 +0100 |
825 |
-@@ -2461,5 +2461,26 @@ ldap_parse_deref_control LDAP_P(( |
826 |
- LDAPControl **ctrls, |
827 |
- LDAPDerefRes **drp )); |
828 |
- |
829 |
-+/* |
830 |
-+ * hacks for NTLM |
831 |
-+ */ |
832 |
-+#define LDAP_AUTH_NTLM_REQUEST ((ber_tag_t) 0x8aU) |
833 |
-+#define LDAP_AUTH_NTLM_RESPONSE ((ber_tag_t) 0x8bU) |
834 |
-+LDAP_F( int ) |
835 |
-+ldap_ntlm_bind LDAP_P(( |
836 |
-+ LDAP *ld, |
837 |
-+ LDAP_CONST char *dn, |
838 |
-+ ber_tag_t tag, |
839 |
-+ struct berval *cred, |
840 |
-+ LDAPControl **sctrls, |
841 |
-+ LDAPControl **cctrls, |
842 |
-+ int *msgidp )); |
843 |
-+LDAP_F( int ) |
844 |
-+ldap_parse_ntlm_bind_result LDAP_P(( |
845 |
-+ LDAP *ld, |
846 |
-+ LDAPMessage *res, |
847 |
-+ struct berval *challenge)); |
848 |
-+ |
849 |
-+ |
850 |
- LDAP_END_DECL |
851 |
- #endif /* _LDAP_H */ |
852 |
-diff -up evo-openldap-2.4.14/libraries/libldap/Makefile.in.evolution-ntlm evo-openldap-2.4.14/libraries/libldap/Makefile.in |
853 |
---- evo-openldap-2.4.14/libraries/libldap/Makefile.in.evolution-ntlm 2009-01-27 00:29:53.000000000 +0100 |
854 |
-+++ evo-openldap-2.4.14/libraries/libldap/Makefile.in 2009-02-17 10:10:00.000000000 +0100 |
855 |
-@@ -20,7 +20,7 @@ PROGRAMS = apitest dntest ftest ltest ur |
856 |
- SRCS = bind.c open.c result.c error.c compare.c search.c \ |
857 |
- controls.c messages.c references.c extended.c cyrus.c \ |
858 |
- modify.c add.c modrdn.c delete.c abandon.c \ |
859 |
-- sasl.c gssapi.c sbind.c unbind.c cancel.c \ |
860 |
-+ sasl.c ntlm.c gssapi.c sbind.c unbind.c cancel.c \ |
861 |
- filter.c free.c sort.c passwd.c whoami.c \ |
862 |
- getdn.c getentry.c getattr.c getvalues.c addentry.c \ |
863 |
- request.c os-ip.c url.c pagectrl.c sortctrl.c vlvctrl.c \ |
864 |
-@@ -33,7 +33,7 @@ SRCS = bind.c open.c result.c error.c co |
865 |
- OBJS = bind.lo open.lo result.lo error.lo compare.lo search.lo \ |
866 |
- controls.lo messages.lo references.lo extended.lo cyrus.lo \ |
867 |
- modify.lo add.lo modrdn.lo delete.lo abandon.lo \ |
868 |
-- sasl.lo gssapi.lo sbind.lo unbind.lo cancel.lo \ |
869 |
-+ sasl.lo ntlm.lo gssapi.lo sbind.lo unbind.lo cancel.lo \ |
870 |
- filter.lo free.lo sort.lo passwd.lo whoami.lo \ |
871 |
- getdn.lo getentry.lo getattr.lo getvalues.lo addentry.lo \ |
872 |
- request.lo os-ip.lo url.lo pagectrl.lo sortctrl.lo vlvctrl.lo \ |
873 |
-diff -up /dev/null evo-openldap-2.4.14/libraries/libldap/ntlm.c |
874 |
---- /dev/null 2009-02-17 09:19:52.829004420 +0100 |
875 |
-+++ evo-openldap-2.4.14/libraries/libldap/ntlm.c 2009-02-17 10:10:00.000000000 +0100 |
876 |
-@@ -0,0 +1,137 @@ |
877 |
-+/* $OpenLDAP: pkg/ldap/libraries/libldap/ntlm.c,v 1.1.4.10 2002/01/04 20:38:21 kurt Exp $ */ |
878 |
-+/* |
879 |
-+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. |
880 |
-+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file |
881 |
-+ */ |
882 |
-+ |
883 |
-+/* Mostly copied from sasl.c */ |
884 |
-+ |
885 |
-+#include "portable.h" |
886 |
-+ |
887 |
-+#include <stdlib.h> |
888 |
-+#include <stdio.h> |
889 |
-+ |
890 |
-+#include <ac/socket.h> |
891 |
-+#include <ac/string.h> |
892 |
-+#include <ac/time.h> |
893 |
-+#include <ac/errno.h> |
894 |
-+ |
895 |
-+#include "ldap-int.h" |
896 |
-+ |
897 |
-+int |
898 |
-+ldap_ntlm_bind( |
899 |
-+ LDAP *ld, |
900 |
-+ LDAP_CONST char *dn, |
901 |
-+ ber_tag_t tag, |
902 |
-+ struct berval *cred, |
903 |
-+ LDAPControl **sctrls, |
904 |
-+ LDAPControl **cctrls, |
905 |
-+ int *msgidp ) |
906 |
-+{ |
907 |
-+ BerElement *ber; |
908 |
-+ int rc; |
909 |
-+ ber_int_t id; |
910 |
-+ |
911 |
-+ Debug( LDAP_DEBUG_TRACE, "ldap_ntlm_bind\n", 0, 0, 0 ); |
912 |
-+ |
913 |
-+ assert( ld != NULL ); |
914 |
-+ assert( LDAP_VALID( ld ) ); |
915 |
-+ assert( msgidp != NULL ); |
916 |
-+ |
917 |
-+ if( msgidp == NULL ) { |
918 |
-+ ld->ld_errno = LDAP_PARAM_ERROR; |
919 |
-+ return ld->ld_errno; |
920 |
-+ } |
921 |
-+ |
922 |
-+ /* create a message to send */ |
923 |
-+ if ( (ber = ldap_alloc_ber_with_options( ld )) == NULL ) { |
924 |
-+ ld->ld_errno = LDAP_NO_MEMORY; |
925 |
-+ return ld->ld_errno; |
926 |
-+ } |
927 |
-+ |
928 |
-+ assert( LBER_VALID( ber ) ); |
929 |
-+ |
930 |
-+ LDAP_NEXT_MSGID( ld, id ); |
931 |
-+ rc = ber_printf( ber, "{it{istON}" /*}*/, |
932 |
-+ id, LDAP_REQ_BIND, |
933 |
-+ ld->ld_version, dn, tag, |
934 |
-+ cred ); |
935 |
-+ |
936 |
-+ /* Put Server Controls */ |
937 |
-+ if( ldap_int_put_controls( ld, sctrls, ber ) != LDAP_SUCCESS ) { |
938 |
-+ ber_free( ber, 1 ); |
939 |
-+ return ld->ld_errno; |
940 |
-+ } |
941 |
-+ |
942 |
-+ if ( ber_printf( ber, /*{*/ "N}" ) == -1 ) { |
943 |
-+ ld->ld_errno = LDAP_ENCODING_ERROR; |
944 |
-+ ber_free( ber, 1 ); |
945 |
-+ return ld->ld_errno; |
946 |
-+ } |
947 |
-+ |
948 |
-+ /* send the message */ |
949 |
-+ *msgidp = ldap_send_initial_request( ld, LDAP_REQ_BIND, dn, ber, id ); |
950 |
-+ |
951 |
-+ if(*msgidp < 0) |
952 |
-+ return ld->ld_errno; |
953 |
-+ |
954 |
-+ return LDAP_SUCCESS; |
955 |
-+} |
956 |
-+ |
957 |
-+int |
958 |
-+ldap_parse_ntlm_bind_result( |
959 |
-+ LDAP *ld, |
960 |
-+ LDAPMessage *res, |
961 |
-+ struct berval *challenge) |
962 |
-+{ |
963 |
-+ ber_int_t errcode; |
964 |
-+ ber_tag_t tag; |
965 |
-+ BerElement *ber; |
966 |
-+ ber_len_t len; |
967 |
-+ |
968 |
-+ Debug( LDAP_DEBUG_TRACE, "ldap_parse_ntlm_bind_result\n", 0, 0, 0 ); |
969 |
-+ |
970 |
-+ assert( ld != NULL ); |
971 |
-+ assert( LDAP_VALID( ld ) ); |
972 |
-+ assert( res != NULL ); |
973 |
-+ |
974 |
-+ if ( ld == NULL || res == NULL ) { |
975 |
-+ return LDAP_PARAM_ERROR; |
976 |
-+ } |
977 |
-+ |
978 |
-+ if( res->lm_msgtype != LDAP_RES_BIND ) { |
979 |
-+ ld->ld_errno = LDAP_PARAM_ERROR; |
980 |
-+ return ld->ld_errno; |
981 |
-+ } |
982 |
-+ |
983 |
-+ if ( ld->ld_error ) { |
984 |
-+ LDAP_FREE( ld->ld_error ); |
985 |
-+ ld->ld_error = NULL; |
986 |
-+ } |
987 |
-+ if ( ld->ld_matched ) { |
988 |
-+ LDAP_FREE( ld->ld_matched ); |
989 |
-+ ld->ld_matched = NULL; |
990 |
-+ } |
991 |
-+ |
992 |
-+ /* parse results */ |
993 |
-+ |
994 |
-+ ber = ber_dup( res->lm_ber ); |
995 |
-+ |
996 |
-+ if( ber == NULL ) { |
997 |
-+ ld->ld_errno = LDAP_NO_MEMORY; |
998 |
-+ return ld->ld_errno; |
999 |
-+ } |
1000 |
-+ |
1001 |
-+ tag = ber_scanf( ber, "{ioa" /*}*/, |
1002 |
-+ &errcode, challenge, &ld->ld_error ); |
1003 |
-+ ber_free( ber, 0 ); |
1004 |
-+ |
1005 |
-+ if( tag == LBER_ERROR ) { |
1006 |
-+ ld->ld_errno = LDAP_DECODING_ERROR; |
1007 |
-+ return ld->ld_errno; |
1008 |
-+ } |
1009 |
-+ |
1010 |
-+ ld->ld_errno = errcode; |
1011 |
-+ |
1012 |
-+ return( ld->ld_errno ); |
1013 |
-+} |
1014 |
|
1015 |
diff --git a/net-nds/openldap/files/slapd-confd-2.4.28-r1 b/net-nds/openldap/files/slapd-confd-2.4.28-r1 |
1016 |
deleted file mode 100644 |
1017 |
index ef19899a37..0000000000 |
1018 |
--- a/net-nds/openldap/files/slapd-confd-2.4.28-r1 |
1019 |
+++ /dev/null |
1020 |
@@ -1,26 +0,0 @@ |
1021 |
-# conf.d file for openldap |
1022 |
-# |
1023 |
-# To enable both the standard unciphered server and the ssl encrypted |
1024 |
-# one uncomment this line or set any other server starting options |
1025 |
-# you may desire. |
1026 |
- |
1027 |
-# If you have multiple slapd instances per #376699, this will provide a default config |
1028 |
-INSTANCE="openldap${SVCNAME#slapd}" |
1029 |
- |
1030 |
-# If you use the classical configuration file: |
1031 |
-OPTS_CONF="-f /etc/${INSTANCE}/slapd.conf" |
1032 |
-# Uncomment this instead to use the new slapd.d configuration directory for openldap 2.3 |
1033 |
-#OPTS_CONF="-F /etc/${INSTANCE}/slapd.d" |
1034 |
-# (the OPTS_CONF variable is also passed to slaptest during startup) |
1035 |
- |
1036 |
-OPTS="${OPTS_CONF} -h 'ldaps:// ldap:// ldapi://%2fvar%2frun%2fopenldap%2fslapd.sock'" |
1037 |
-# Optional connectionless LDAP: |
1038 |
-#OPTS="${OPTS_CONF} -h 'ldaps:// ldap:// ldapi://%2fvar%2frun%2fopenldap%2fslapd.sock cldap://'" |
1039 |
- |
1040 |
-# If you change the above listen statement to bind on a specific IP for |
1041 |
-# listening, you should ensure that interface is up here (change eth0 as |
1042 |
-# needed). |
1043 |
-#rc_need="net.eth0" |
1044 |
- |
1045 |
-# Specify the kerberos keytab file |
1046 |
-#KRB5_KTNAME=/etc/openldap/krb5-ldap.keytab |
1047 |
|
1048 |
diff --git a/net-nds/openldap/files/slapd-initd-2.4.40-r2 b/net-nds/openldap/files/slapd-initd-2.4.40-r2 |
1049 |
deleted file mode 100644 |
1050 |
index 9c4e6818da..0000000000 |
1051 |
--- a/net-nds/openldap/files/slapd-initd-2.4.40-r2 |
1052 |
+++ /dev/null |
1053 |
@@ -1,64 +0,0 @@ |
1054 |
-#!/sbin/openrc-run |
1055 |
-# Copyright 1999-2018 Gentoo Foundation |
1056 |
-# Distributed under the terms of the GNU General Public License v2 |
1057 |
- |
1058 |
-extra_commands="checkconfig" |
1059 |
- |
1060 |
-[ -z "$INSTANCE" ] && INSTANCE="openldap${SVCNAME#slapd}" |
1061 |
-PIDDIR=/run/openldap |
1062 |
-PIDFILE=$PIDDIR/$SVCNAME.pid |
1063 |
- |
1064 |
-depend() { |
1065 |
- need net |
1066 |
- before dbus hald avahi-daemon |
1067 |
- provide ldap |
1068 |
-} |
1069 |
- |
1070 |
-start() { |
1071 |
- checkpath -q -d ${PIDDIR} -o ldap:ldap |
1072 |
- if ! checkconfig -Q ; then |
1073 |
- eerror "There is a problem with your slapd.conf!" |
1074 |
- return 1 |
1075 |
- fi |
1076 |
- ebegin "Starting ldap-server" |
1077 |
- [ -n "$KRB5_KTNAME" ] && export KRB5_KTNAME |
1078 |
- eval start-stop-daemon --start --pidfile ${PIDFILE} --exec /usr/lib/openldap/slapd -- -u ldap -g ldap "${OPTS}" |
1079 |
- eend $? |
1080 |
-} |
1081 |
- |
1082 |
-stop() { |
1083 |
- ebegin "Stopping ldap-server" |
1084 |
- start-stop-daemon --stop --signal 2 --quiet --pidfile ${PIDFILE} |
1085 |
- eend $? |
1086 |
-} |
1087 |
- |
1088 |
-checkconfig() { |
1089 |
- # checks requested by bug #502948 |
1090 |
- # Step 1: extract the last valid config file or config dir |
1091 |
- set -- $OPTS |
1092 |
- while [ -n "$*" ]; do |
1093 |
- opt=$1 ; shift |
1094 |
- if [ "$opt" = "-f" -o "$opt" = "-F" ] ; then |
1095 |
- CONF=$1 |
1096 |
- shift |
1097 |
- fi |
1098 |
- done |
1099 |
- set -- |
1100 |
- # Fallback |
1101 |
- CONF=${CONF-/etc/openldap/slapd.conf} |
1102 |
- [ -d $CONF ] && CONF=${CONF}/* |
1103 |
- DBDIRS=`eval awk '"/^(directory|olcDbDirectory:)/{print \\$2}"' $CONF` |
1104 |
- for d in $DBDIRS; do |
1105 |
- if [ ! -d $d ]; then |
1106 |
- eerror "Directory $d in config does not exist!" |
1107 |
- return 1 |
1108 |
- fi |
1109 |
- /usr/bin/find $d ! -name DB_CONFIG ! -user ldap -o ! -group ldap |grep -sq . |
1110 |
- if [ $? -ne 0 ]; then |
1111 |
- ewarn "You have files in $d not owned by the ldap user, you must ensure they are accessible to the slapd instance!" |
1112 |
- fi |
1113 |
- [ ! -e $d/DB_CONFIG ] && ewarn "$d/DB_CONFIG does not exist, slapd performance may be sub-optimal" |
1114 |
- done |
1115 |
- # now test the config fully |
1116 |
- /usr/sbin/slaptest -u "$@" ${OPTS_CONF} |
1117 |
-} |
1118 |
|
1119 |
diff --git a/net-nds/openldap/files/slapd.service b/net-nds/openldap/files/slapd.service |
1120 |
deleted file mode 100644 |
1121 |
index 3427b87e93..0000000000 |
1122 |
--- a/net-nds/openldap/files/slapd.service |
1123 |
+++ /dev/null |
1124 |
@@ -1,12 +0,0 @@ |
1125 |
-[Unit] |
1126 |
-Description=OpenLDAP Server Daemon |
1127 |
-After=network.target |
1128 |
- |
1129 |
-[Service] |
1130 |
-Type=forking |
1131 |
-PIDFile=/run/openldap/slapd.pid |
1132 |
-ExecStartPre=/usr/sbin/slaptest -Q -u $SLAPD_OPTIONS |
1133 |
-ExecStart=/usr/lib/openldap/slapd -u ldap -h ${SLAPD_URLS} $SLAPD_OPTIONS |
1134 |
- |
1135 |
-[Install] |
1136 |
-WantedBy=multi-user.target |
1137 |
|
1138 |
diff --git a/net-nds/openldap/files/slapd.service.conf b/net-nds/openldap/files/slapd.service.conf |
1139 |
deleted file mode 100644 |
1140 |
index 812ea68ed4..0000000000 |
1141 |
--- a/net-nds/openldap/files/slapd.service.conf |
1142 |
+++ /dev/null |
1143 |
@@ -1,12 +0,0 @@ |
1144 |
-[Service] |
1145 |
-# Use the classical configuration file: |
1146 |
-#Environment="SLAPD_OPTIONS=-f /etc/openldap/slapd.conf" |
1147 |
-# Use the slapd configuration directory: |
1148 |
-#Environment="SLAPD_OPTIONS=-F /etc/openldap/slapd.d" |
1149 |
- |
1150 |
-Environment="SLAPD_URLS=ldaps:/// ldap:/// ldapi:///" |
1151 |
-# Other examples: |
1152 |
-#Environment="SLAPD_URLS=ldap://127.0.0.1/ ldap://10.0.0.1:1389/ cldap:///" |
1153 |
- |
1154 |
-# Specify the kerberos keytab file |
1155 |
-#Environment=KRB5_KTNAME=/etc/openldap/krb5-ldap.keytab |
1156 |
|
1157 |
diff --git a/net-nds/openldap/files/slapd.tmpfilesd b/net-nds/openldap/files/slapd.tmpfilesd |
1158 |
deleted file mode 100644 |
1159 |
index 634cea1642..0000000000 |
1160 |
--- a/net-nds/openldap/files/slapd.tmpfilesd |
1161 |
+++ /dev/null |
1162 |
@@ -1,2 +0,0 @@ |
1163 |
-# openldap runtime directory for slapd.arg and slapd.pid |
1164 |
-d /run/openldap 0755 ldap ldap - |
1165 |
|
1166 |
diff --git a/net-nds/openldap/metadata.xml b/net-nds/openldap/metadata.xml |
1167 |
deleted file mode 100644 |
1168 |
index 6cea2f2e32..0000000000 |
1169 |
--- a/net-nds/openldap/metadata.xml |
1170 |
+++ /dev/null |
1171 |
@@ -1,20 +0,0 @@ |
1172 |
-<?xml version="1.0" encoding="UTF-8"?> |
1173 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
1174 |
-<pkgmetadata> |
1175 |
- <maintainer type="project"> |
1176 |
- <email>ldap-bugs@g.o</email> |
1177 |
- </maintainer> |
1178 |
- <use> |
1179 |
- <flag name="experimental">Enable experimental backend options</flag> |
1180 |
- <flag name="kinit">Enable support for kerberos init</flag> |
1181 |
- <flag name="odbc">Enable ODBC and SQL backend options</flag> |
1182 |
- <flag name="overlays">Enable contributed OpenLDAP overlays</flag> |
1183 |
- <flag name="smbkrb5passwd">Enable overlay for syncing ldap, unix and lanman passwords</flag> |
1184 |
- <flag name="minimal">Build libraries & userspace tools only. Does not install any server code</flag> |
1185 |
- <flag name="pbkdf2">Enable support for pbkdf2 passwords</flag> |
1186 |
- <flag name="sha2">Enable support for pw-sha2 password hashes</flag> |
1187 |
- </use> |
1188 |
- <upstream> |
1189 |
- <remote-id type="cpe">cpe:/a:openldap:openldap</remote-id> |
1190 |
- </upstream> |
1191 |
-</pkgmetadata> |
1192 |
|
1193 |
diff --git a/net-nds/openldap/openldap-2.4.45.ebuild b/net-nds/openldap/openldap-2.4.45.ebuild |
1194 |
deleted file mode 100644 |
1195 |
index 383d7ba2f1..0000000000 |
1196 |
--- a/net-nds/openldap/openldap-2.4.45.ebuild |
1197 |
+++ /dev/null |
1198 |
@@ -1,889 +0,0 @@ |
1199 |
-# Copyright 1999-2019 Gentoo Authors |
1200 |
-# Distributed under the terms of the GNU General Public License v2 |
1201 |
- |
1202 |
-EAPI="5" |
1203 |
- |
1204 |
-inherit db-use eutils flag-o-matic multilib multilib-minimal ssl-cert versionator toolchain-funcs autotools user systemd |
1205 |
- |
1206 |
-BIS_PN=rfc2307bis.schema |
1207 |
-BIS_PV=20140524 |
1208 |
-BIS_P="${BIS_PN}-${BIS_PV}" |
1209 |
- |
1210 |
-DESCRIPTION="LDAP suite of application and development tools" |
1211 |
-HOMEPAGE="http://www.OpenLDAP.org/" |
1212 |
- |
1213 |
-# mirrors are mostly not working, using canonical URI |
1214 |
-SRC_URI="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/${P}.tgz |
1215 |
- mirror://gentoo/${BIS_P}" |
1216 |
- |
1217 |
-LICENSE="OPENLDAP GPL-2" |
1218 |
-SLOT="0" |
1219 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~x86-solaris ~x86-winnt" |
1220 |
- |
1221 |
-IUSE_DAEMON="crypt samba slp tcpd experimental minimal" |
1222 |
-IUSE_BACKEND="+berkdb" |
1223 |
-IUSE_OVERLAY="overlays perl" |
1224 |
-IUSE_OPTIONAL="gnutls iodbc sasl ssl odbc debug ipv6 libressl +syslog selinux static-libs" |
1225 |
-IUSE_CONTRIB="smbkrb5passwd kerberos kinit pbkdf2 sha2" |
1226 |
-IUSE_CONTRIB="${IUSE_CONTRIB} -cxx" |
1227 |
-IUSE="${IUSE_DAEMON} ${IUSE_BACKEND} ${IUSE_OVERLAY} ${IUSE_OPTIONAL} ${IUSE_CONTRIB}" |
1228 |
- |
1229 |
-REQUIRED_USE="cxx? ( sasl ) |
1230 |
- ?? ( gnutls libressl ) |
1231 |
- pbkdf2? ( ssl )" |
1232 |
- |
1233 |
-# always list newer first |
1234 |
-# Do not add any AGPL-3 BDB here! |
1235 |
-# See bug 525110, comment 15. |
1236 |
-# Advanced usage: OPENLDAP_BDB_SLOTS in the environment can be used to force a slot during build. |
1237 |
-BDB_SLOTS="${OPENLDAP_BDB_SLOTS:=5.3 5.1 4.8 4.7 4.6 4.5 4.4}" |
1238 |
-BDB_PKGS='' |
1239 |
-for _slot in $BDB_SLOTS; do BDB_PKGS="${BDB_PKGS} sys-libs/db:${_slot}" ; done |
1240 |
- |
1241 |
-# openssl is needed to generate lanman-passwords required by samba |
1242 |
-CDEPEND=" |
1243 |
- ssl? ( |
1244 |
- !gnutls? ( |
1245 |
- !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] ) |
1246 |
- ) |
1247 |
- gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] |
1248 |
- libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] ) |
1249 |
- >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] ) ) |
1250 |
- sasl? ( dev-libs/cyrus-sasl:= ) |
1251 |
- !minimal? ( |
1252 |
- sys-devel/libtool |
1253 |
- sys-libs/e2fsprogs-libs |
1254 |
- >=dev-db/lmdb-0.9.18:= |
1255 |
- tcpd? ( sys-apps/tcp-wrappers ) |
1256 |
- odbc? ( !iodbc? ( dev-db/unixODBC ) |
1257 |
- iodbc? ( dev-db/libiodbc ) ) |
1258 |
- slp? ( net-libs/openslp ) |
1259 |
- perl? ( dev-lang/perl:=[-build(-)] ) |
1260 |
- samba? ( |
1261 |
- !libressl? ( dev-libs/openssl:0= ) |
1262 |
- libressl? ( dev-libs/libressl ) |
1263 |
- ) |
1264 |
- berkdb? ( |
1265 |
- <sys-libs/db-6.0:= |
1266 |
- || ( ${BDB_PKGS} ) |
1267 |
- ) |
1268 |
- smbkrb5passwd? ( |
1269 |
- !libressl? ( dev-libs/openssl:0= ) |
1270 |
- libressl? ( dev-libs/libressl ) |
1271 |
- kerberos? ( app-crypt/heimdal ) |
1272 |
- ) |
1273 |
- kerberos? ( |
1274 |
- virtual/krb5 |
1275 |
- kinit? ( !app-crypt/heimdal ) |
1276 |
- ) |
1277 |
- cxx? ( dev-libs/cyrus-sasl:= ) |
1278 |
- )" |
1279 |
-DEPEND="${CDEPEND} |
1280 |
- sys-apps/groff" |
1281 |
-RDEPEND="${CDEPEND} |
1282 |
- selinux? ( sec-policy/selinux-ldap ) |
1283 |
-" |
1284 |
-# for tracking versions |
1285 |
-OPENLDAP_VERSIONTAG=".version-tag" |
1286 |
-OPENLDAP_DEFAULTDIR_VERSIONTAG="/var/lib/openldap-data" |
1287 |
- |
1288 |
-MULTILIB_WRAPPED_HEADERS=( |
1289 |
- # USE=cxx |
1290 |
- /usr/include/LDAPAsynConnection.h |
1291 |
- /usr/include/LDAPAttrType.h |
1292 |
- /usr/include/LDAPAttribute.h |
1293 |
- /usr/include/LDAPAttributeList.h |
1294 |
- /usr/include/LDAPConnection.h |
1295 |
- /usr/include/LDAPConstraints.h |
1296 |
- /usr/include/LDAPControl.h |
1297 |
- /usr/include/LDAPControlSet.h |
1298 |
- /usr/include/LDAPEntry.h |
1299 |
- /usr/include/LDAPEntryList.h |
1300 |
- /usr/include/LDAPException.h |
1301 |
- /usr/include/LDAPExtResult.h |
1302 |
- /usr/include/LDAPMessage.h |
1303 |
- /usr/include/LDAPMessageQueue.h |
1304 |
- /usr/include/LDAPModList.h |
1305 |
- /usr/include/LDAPModification.h |
1306 |
- /usr/include/LDAPObjClass.h |
1307 |
- /usr/include/LDAPRebind.h |
1308 |
- /usr/include/LDAPRebindAuth.h |
1309 |
- /usr/include/LDAPReferenceList.h |
1310 |
- /usr/include/LDAPResult.h |
1311 |
- /usr/include/LDAPSaslBindResult.h |
1312 |
- /usr/include/LDAPSchema.h |
1313 |
- /usr/include/LDAPSearchReference.h |
1314 |
- /usr/include/LDAPSearchResult.h |
1315 |
- /usr/include/LDAPSearchResults.h |
1316 |
- /usr/include/LDAPUrl.h |
1317 |
- /usr/include/LDAPUrlList.h |
1318 |
- /usr/include/LdifReader.h |
1319 |
- /usr/include/LdifWriter.h |
1320 |
- /usr/include/SaslInteraction.h |
1321 |
- /usr/include/SaslInteractionHandler.h |
1322 |
- /usr/include/StringList.h |
1323 |
- /usr/include/TlsOptions.h |
1324 |
-) |
1325 |
- |
1326 |
-openldap_filecount() { |
1327 |
- local dir="$1" |
1328 |
- find "${dir}" -type f ! -name '.*' ! -name 'DB_CONFIG*' | wc -l |
1329 |
-} |
1330 |
- |
1331 |
-openldap_find_versiontags() { |
1332 |
- # scan for all datadirs |
1333 |
- openldap_datadirs="" |
1334 |
- if [ -f "${EROOT}"/etc/openldap/slapd.conf ]; then |
1335 |
- openldap_datadirs="$(awk '{if($1 == "directory") print $2 }' ${EROOT}/etc/openldap/slapd.conf)" |
1336 |
- fi |
1337 |
- openldap_datadirs="${openldap_datadirs} ${OPENLDAP_DEFAULTDIR_VERSIONTAG}" |
1338 |
- |
1339 |
- einfo |
1340 |
- einfo "Scanning datadir(s) from slapd.conf and" |
1341 |
- einfo "the default installdir for Versiontags" |
1342 |
- einfo "(${OPENLDAP_DEFAULTDIR_VERSIONTAG} may appear twice)" |
1343 |
- einfo |
1344 |
- |
1345 |
- # scan datadirs if we have a version tag |
1346 |
- openldap_found_tag=0 |
1347 |
- have_files=0 |
1348 |
- for each in ${openldap_datadirs}; do |
1349 |
- CURRENT_TAGDIR=${ROOT}`echo ${each} | sed "s:\/::"` |
1350 |
- CURRENT_TAG=${CURRENT_TAGDIR}/${OPENLDAP_VERSIONTAG} |
1351 |
- if [ -d ${CURRENT_TAGDIR} ] && [ ${openldap_found_tag} == 0 ] ; then |
1352 |
- einfo "- Checking ${each}..." |
1353 |
- if [ -r ${CURRENT_TAG} ] ; then |
1354 |
- # yey, we have one :) |
1355 |
- einfo " Found Versiontag in ${each}" |
1356 |
- source ${CURRENT_TAG} |
1357 |
- if [ "${OLDPF}" == "" ] ; then |
1358 |
- eerror "Invalid Versiontag found in ${CURRENT_TAGDIR}" |
1359 |
- eerror "Please delete it" |
1360 |
- eerror |
1361 |
- die "Please kill the invalid versiontag in ${CURRENT_TAGDIR}" |
1362 |
- fi |
1363 |
- |
1364 |
- OLD_MAJOR=`get_version_component_range 2-3 ${OLDPF}` |
1365 |
- |
1366 |
- [ $(openldap_filecount ${CURRENT_TAGDIR}) -gt 0 ] && have_files=1 |
1367 |
- |
1368 |
- # are we on the same branch? |
1369 |
- if [ "${OLD_MAJOR}" != "${PV:0:3}" ] ; then |
1370 |
- ewarn " Versiontag doesn't match current major release!" |
1371 |
- if [[ "${have_files}" == "1" ]] ; then |
1372 |
- eerror " Versiontag says other major and you (probably) have datafiles!" |
1373 |
- echo |
1374 |
- openldap_upgrade_howto |
1375 |
- else |
1376 |
- einfo " No real problem, seems there's no database." |
1377 |
- fi |
1378 |
- else |
1379 |
- einfo " Versiontag is fine here :)" |
1380 |
- fi |
1381 |
- else |
1382 |
- einfo " Non-tagged dir ${each}" |
1383 |
- [ $(openldap_filecount ${each}) -gt 0 ] && have_files=1 |
1384 |
- if [[ "${have_files}" == "1" ]] ; then |
1385 |
- einfo " EEK! Non-empty non-tagged datadir, counting `ls -a ${each} | wc -l` files" |
1386 |
- echo |
1387 |
- |
1388 |
- eerror |
1389 |
- eerror "Your OpenLDAP Installation has a non tagged datadir that" |
1390 |
- eerror "possibly contains a database at ${CURRENT_TAGDIR}" |
1391 |
- eerror |
1392 |
- eerror "Please export data if any entered and empty or remove" |
1393 |
- eerror "the directory, installation has been stopped so you" |
1394 |
- eerror "can take required action" |
1395 |
- eerror |
1396 |
- eerror "For a HOWTO on exporting the data, see instructions in the ebuild" |
1397 |
- eerror |
1398 |
- openldap_upgrade_howto |
1399 |
- die "Please move the datadir ${CURRENT_TAGDIR} away" |
1400 |
- fi |
1401 |
- fi |
1402 |
- einfo |
1403 |
- fi |
1404 |
- done |
1405 |
- [ "${have_files}" == "1" ] && einfo "DB files present" || einfo "No DB files present" |
1406 |
- |
1407 |
- # Now we must check for the major version of sys-libs/db linked against. |
1408 |
- SLAPD_PATH=${EROOT}/usr/$(get_libdir)/openldap/slapd |
1409 |
- if [ "${have_files}" == "1" -a -f "${SLAPD_PATH}" ]; then |
1410 |
- OLDVER="$(/usr/bin/ldd ${SLAPD_PATH} \ |
1411 |
- | awk '/libdb-/{gsub("^libdb-","",$1);gsub(".so$","",$1);print $1}')" |
1412 |
- if use berkdb; then |
1413 |
- # find which one would be used |
1414 |
- for bdb_slot in $BDB_SLOTS ; do |
1415 |
- NEWVER="$(db_findver "=sys-libs/db-${bdb_slot}*")" |
1416 |
- [[ -n "$NEWVER" ]] && break |
1417 |
- done |
1418 |
- fi |
1419 |
- local fail=0 |
1420 |
- if [ -z "${OLDVER}" -a -z "${NEWVER}" ]; then |
1421 |
- : |
1422 |
- # Nothing wrong here. |
1423 |
- elif [ -z "${OLDVER}" -a -n "${NEWVER}" ]; then |
1424 |
- eerror " Your existing version of OpenLDAP was not built against" |
1425 |
- eerror " any version of sys-libs/db, but the new one will build" |
1426 |
- eerror " against ${NEWVER} and your database may be inaccessible." |
1427 |
- echo |
1428 |
- fail=1 |
1429 |
- elif [ -n "${OLDVER}" -a -z "${NEWVER}" ]; then |
1430 |
- eerror " Your existing version of OpenLDAP was built against" |
1431 |
- eerror " sys-libs/db:${OLDVER}, but the new one will not be" |
1432 |
- eerror " built against any version and your database may be" |
1433 |
- eerror " inaccessible." |
1434 |
- echo |
1435 |
- fail=1 |
1436 |
- elif [ "${OLDVER}" != "${NEWVER}" ]; then |
1437 |
- eerror " Your existing version of OpenLDAP was built against" |
1438 |
- eerror " sys-libs/db:${OLDVER}, but the new one will build against" |
1439 |
- eerror " ${NEWVER} and your database would be inaccessible." |
1440 |
- echo |
1441 |
- fail=1 |
1442 |
- fi |
1443 |
- [ "${fail}" == "1" ] && openldap_upgrade_howto |
1444 |
- fi |
1445 |
- |
1446 |
- echo |
1447 |
- einfo |
1448 |
- einfo "All datadirs are fine, proceeding with merge now..." |
1449 |
- einfo |
1450 |
-} |
1451 |
- |
1452 |
-openldap_upgrade_howto() { |
1453 |
- eerror |
1454 |
- eerror "A (possible old) installation of OpenLDAP was detected," |
1455 |
- eerror "installation will not proceed for now." |
1456 |
- eerror |
1457 |
- eerror "As major version upgrades can corrupt your database," |
1458 |
- eerror "you need to dump your database and re-create it afterwards." |
1459 |
- eerror |
1460 |
- eerror "Additionally, rebuilding against different major versions of the" |
1461 |
- eerror "sys-libs/db libraries will cause your database to be inaccessible." |
1462 |
- eerror "" |
1463 |
- d="$(date -u +%s)" |
1464 |
- l="/root/ldapdump.${d}" |
1465 |
- i="${l}.raw" |
1466 |
- eerror " 1. /etc/init.d/slapd stop" |
1467 |
- eerror " 2. slapcat -l ${i}" |
1468 |
- eerror " 3. egrep -v '^(entry|context)CSN:' <${i} >${l}" |
1469 |
- eerror " 4. mv /var/lib/openldap-data/ /var/lib/openldap-data-backup/" |
1470 |
- eerror " 5. emerge --update \=net-nds/${PF}" |
1471 |
- eerror " 6. etc-update, and ensure that you apply the changes" |
1472 |
- eerror " 7. slapadd -l ${l}" |
1473 |
- eerror " 8. chown ldap:ldap /var/lib/openldap-data/*" |
1474 |
- eerror " 9. /etc/init.d/slapd start" |
1475 |
- eerror "10. check that your data is intact." |
1476 |
- eerror "11. set up the new replication system." |
1477 |
- eerror |
1478 |
- if [ "${FORCE_UPGRADE}" != "1" ]; then |
1479 |
- die "You need to upgrade your database first" |
1480 |
- else |
1481 |
- eerror "You have the magical FORCE_UPGRADE=1 in place." |
1482 |
- eerror "Don't say you weren't warned about data loss." |
1483 |
- fi |
1484 |
-} |
1485 |
- |
1486 |
-pkg_setup() { |
1487 |
- if ! use sasl && use cxx ; then |
1488 |
- die "To build the ldapc++ library you must emerge openldap with sasl support" |
1489 |
- fi |
1490 |
- # Bug #322787 |
1491 |
- if use minimal && ! has_version "net-nds/openldap" ; then |
1492 |
- einfo "No datadir scan needed, openldap not installed" |
1493 |
- elif use minimal && has_version 'net-nds/openldap[minimal]' ; then |
1494 |
- einfo "Skipping scan for previous datadirs as requested by minimal useflag" |
1495 |
- else |
1496 |
- openldap_find_versiontags |
1497 |
- fi |
1498 |
- |
1499 |
- # The user/group are only used for running daemons which are |
1500 |
- # disabled in minimal builds, so elide the accounts too. |
1501 |
- if ! use minimal ; then |
1502 |
- enewgroup ldap 439 |
1503 |
- enewuser ldap 439 -1 /usr/$(get_libdir)/openldap ldap |
1504 |
- fi |
1505 |
-} |
1506 |
- |
1507 |
-src_prepare() { |
1508 |
- # ensure correct SLAPI path by default |
1509 |
- sed -i -e 's,\(#define LDAPI_SOCK\).*,\1 "'"${EPREFIX}"'/var/run/openldap/slapd.sock",' \ |
1510 |
- "${S}"/include/ldap_defaults.h |
1511 |
- |
1512 |
- epatch "${FILESDIR}"/${PN}-2.4.17-gcc44.patch |
1513 |
- |
1514 |
- epatch \ |
1515 |
- "${FILESDIR}"/${PN}-2.2.14-perlthreadsfix.patch \ |
1516 |
- "${FILESDIR}"/${PN}-2.4.15-ppolicy.patch |
1517 |
- |
1518 |
- # bug #116045 - still present in 2.4.28 |
1519 |
- epatch "${FILESDIR}"/${PN}-2.4.35-contrib-smbk5pwd.patch |
1520 |
- # bug #408077 - samba4 |
1521 |
- epatch "${FILESDIR}"/${PN}-2.4.35-contrib-samba4.patch |
1522 |
- |
1523 |
- # bug #189817 |
1524 |
- epatch "${FILESDIR}"/${PN}-2.4.11-libldap_r.patch |
1525 |
- |
1526 |
- # bug #233633 |
1527 |
- epatch "${FILESDIR}"/${PN}-2.4.45-fix-lmpasswd-gnutls-symbols.patch |
1528 |
- |
1529 |
- # bug #281495 |
1530 |
- epatch "${FILESDIR}"/${PN}-2.4.28-gnutls-gcrypt.patch |
1531 |
- |
1532 |
- # bug #294350 |
1533 |
- epatch "${FILESDIR}"/${PN}-2.4.6-evolution-ntlm.patch |
1534 |
- |
1535 |
- # unbreak /bin/sh -> dash |
1536 |
- epatch "${FILESDIR}"/${PN}-2.4.28-fix-dash.patch |
1537 |
- |
1538 |
- # bug #420959 |
1539 |
- epatch "${FILESDIR}"/${PN}-2.4.31-gcc47.patch |
1540 |
- |
1541 |
- # bug #622464 |
1542 |
- epatch "${FILESDIR}"/${PN}-2.4.45-libressl.patch |
1543 |
- |
1544 |
- # winnt (using parity) |
1545 |
- epatch "${FILESDIR}"/${PN}-2.4.45-winnt.patch |
1546 |
- |
1547 |
- # unbundle lmdb |
1548 |
- epatch "${FILESDIR}"/${PN}-2.4.42-mdb-unbundle.patch |
1549 |
- rm -rf "${S}"/libraries/liblmdb |
1550 |
- |
1551 |
- epatch_user |
1552 |
- |
1553 |
- cd "${S}"/build || die |
1554 |
- einfo "Making sure upstream build strip does not do stripping too early" |
1555 |
- sed -i.orig \ |
1556 |
- -e '/^STRIP/s,-s,,g' \ |
1557 |
- top.mk || die "Failed to block stripping" |
1558 |
- |
1559 |
- # wrong assumption that /bin/sh is /bin/bash |
1560 |
- sed -i \ |
1561 |
- -e 's|/bin/sh|/bin/bash|g' \ |
1562 |
- "${S}"/tests/scripts/* || die "sed failed" |
1563 |
- |
1564 |
- sed -i \ |
1565 |
- -e 's/^\twindres/\t$(RC)/' \ |
1566 |
- "${S}"/libraries/liblutil/Makefile.in || die |
1567 |
- |
1568 |
- cd "${S}" || die |
1569 |
- |
1570 |
- AT_NOEAUTOMAKE=yes eautoreconf |
1571 |
-} |
1572 |
- |
1573 |
-build_contrib_module() { |
1574 |
- # <dir> <sources> <outputname> |
1575 |
- cd "${S}/contrib/slapd-modules/$1" || die |
1576 |
- einfo "Compiling contrib-module: $3" |
1577 |
- # Make sure it's uppercase |
1578 |
- local define_name="$(echo "SLAPD_OVER_${1}" | LC_ALL=C tr '[:lower:]' '[:upper:]')" |
1579 |
- "${lt}" --mode=compile --tag=CC \ |
1580 |
- "${CC}" \ |
1581 |
- -D${define_name}=SLAPD_MOD_DYNAMIC \ |
1582 |
- -I"${BUILD_DIR}"/include \ |
1583 |
- -I../../../include -I../../../servers/slapd ${CFLAGS} \ |
1584 |
- -o ${2%.c}.lo -c $2 || die "compiling $3 failed" |
1585 |
- einfo "Linking contrib-module: $3" |
1586 |
- "${lt}" --mode=link --tag=CC \ |
1587 |
- "${CC}" -module \ |
1588 |
- ${CFLAGS} \ |
1589 |
- ${LDFLAGS} \ |
1590 |
- -rpath "${EPREFIX}"/usr/$(get_libdir)/openldap/openldap \ |
1591 |
- -o $3.la ${2%.c}.lo || die "linking $3 failed" |
1592 |
-} |
1593 |
- |
1594 |
-src_configure() { |
1595 |
- # Bug 408001 |
1596 |
- use elibc_FreeBSD && append-cppflags -DMDB_DSYNC=O_SYNC -DMDB_FDATASYNC=fsync |
1597 |
- |
1598 |
- # connectionless ldap per bug #342439 |
1599 |
- append-cppflags -DLDAP_CONNECTIONLESS |
1600 |
- |
1601 |
- multilib-minimal_src_configure |
1602 |
-} |
1603 |
- |
1604 |
-multilib_src_configure() { |
1605 |
- local myconf=() |
1606 |
- |
1607 |
- use debug && myconf+=( $(use_enable debug) ) |
1608 |
- |
1609 |
- # ICU exists only in the configure, nowhere in the codebase, bug #510858 |
1610 |
- export ac_cv_header_unicode_utypes_h=no ol_cv_lib_icu=no |
1611 |
- |
1612 |
- if ! use minimal && multilib_is_native_abi; then |
1613 |
- local CPPFLAGS=${CPPFLAGS} |
1614 |
- |
1615 |
- # re-enable serverside overlay chains per bug #296567 |
1616 |
- # see ldap docs chaper 12.3.1 for details |
1617 |
- myconf+=( --enable-ldap ) |
1618 |
- |
1619 |
- # backends |
1620 |
- myconf+=( --enable-slapd ) |
1621 |
- if use berkdb ; then |
1622 |
- einfo "Using Berkeley DB for local backend" |
1623 |
- myconf+=( --enable-bdb --enable-hdb ) |
1624 |
- DBINCLUDE=$(db_includedir $BDB_SLOTS) |
1625 |
- einfo "Using $DBINCLUDE for sys-libs/db version" |
1626 |
- # We need to include the slotted db.h dir for FreeBSD |
1627 |
- append-cppflags -I${DBINCLUDE} |
1628 |
- else |
1629 |
- myconf+=( --disable-bdb --disable-hdb ) |
1630 |
- fi |
1631 |
- for backend in dnssrv ldap mdb meta monitor null passwd relay shell sock; do |
1632 |
- myconf+=( --enable-${backend}=mod ) |
1633 |
- done |
1634 |
- |
1635 |
- myconf+=( $(use_enable perl perl mod) ) |
1636 |
- |
1637 |
- myconf+=( $(use_enable odbc sql mod) ) |
1638 |
- if use odbc ; then |
1639 |
- local odbc_lib="unixodbc" |
1640 |
- if use iodbc ; then |
1641 |
- odbc_lib="iodbc" |
1642 |
- append-cppflags -I"${EPREFIX}"/usr/include/iodbc |
1643 |
- fi |
1644 |
- myconf+=( --with-odbc=${odbc_lib} ) |
1645 |
- fi |
1646 |
- |
1647 |
- # slapd options |
1648 |
- myconf+=( |
1649 |
- $(use_enable crypt) |
1650 |
- $(use_enable slp) |
1651 |
- $(use_enable samba lmpasswd) |
1652 |
- $(use_enable syslog) |
1653 |
- ) |
1654 |
- if use experimental ; then |
1655 |
- myconf+=( |
1656 |
- --enable-dynacl |
1657 |
- --enable-aci=mod |
1658 |
- ) |
1659 |
- fi |
1660 |
- for option in aci cleartext modules rewrite rlookups slapi; do |
1661 |
- myconf+=( --enable-${option} ) |
1662 |
- done |
1663 |
- |
1664 |
- # slapd overlay options |
1665 |
- # Compile-in the syncprov, the others as module |
1666 |
- myconf+=( --enable-syncprov=yes ) |
1667 |
- use overlays && myconf+=( --enable-overlays=mod ) |
1668 |
- |
1669 |
- else |
1670 |
- myconf+=( |
1671 |
- --disable-backends |
1672 |
- --disable-slapd |
1673 |
- --disable-bdb |
1674 |
- --disable-hdb |
1675 |
- --disable-mdb |
1676 |
- --disable-overlays |
1677 |
- --disable-syslog |
1678 |
- ) |
1679 |
- fi |
1680 |
- |
1681 |
- # basic functionality stuff |
1682 |
- myconf+=( |
1683 |
- $(use_enable ipv6) |
1684 |
- $(multilib_native_use_with sasl cyrus-sasl) |
1685 |
- $(multilib_native_use_enable sasl spasswd) |
1686 |
- $(use_enable tcpd wrappers) |
1687 |
- # kernel_Winnt: Cygwin provides AF_LOCAL, Winnt&Mingw do not |
1688 |
- --enable-local=$(usex kernel_Winnt auto yes) |
1689 |
- ) |
1690 |
- |
1691 |
- # Some cross-compiling tests don't pan out well. |
1692 |
- tc-is-cross-compiler && myconf+=( |
1693 |
- --with-yielding-select=yes |
1694 |
- ) |
1695 |
- |
1696 |
- local ssl_lib="no" |
1697 |
- if use ssl || ( ! use minimal && use samba ) ; then |
1698 |
- ssl_lib="openssl" |
1699 |
- use gnutls && ssl_lib="gnutls" |
1700 |
- fi |
1701 |
- |
1702 |
- myconf+=( --with-tls=${ssl_lib} ) |
1703 |
- |
1704 |
- for basicflag in dynamic proctitle shared; do |
1705 |
- myconf+=( --enable-${basicflag} ) |
1706 |
- done |
1707 |
- |
1708 |
- tc-export AR CC CXX RC |
1709 |
- ECONF_SOURCE=${S} \ |
1710 |
- STRIP=/bin/true \ |
1711 |
- econf \ |
1712 |
- --libexecdir="${EPREFIX}"/usr/$(get_libdir)/openldap \ |
1713 |
- $(use_enable static-libs static) \ |
1714 |
- "${myconf[@]}" |
1715 |
- emake depend |
1716 |
-} |
1717 |
- |
1718 |
-src_configure_cxx() { |
1719 |
- # This needs the libraries built by the first build run. |
1720 |
- # So we have to run it AFTER the main build, not just after the main |
1721 |
- # configure. |
1722 |
- local myconf_ldapcpp=( |
1723 |
- --with-ldap-includes="${S}"/include |
1724 |
- ) |
1725 |
- |
1726 |
- mkdir -p "${BUILD_DIR}"/contrib/ldapc++ || die |
1727 |
- cd "${BUILD_DIR}/contrib/ldapc++" || die |
1728 |
- |
1729 |
- local LDFLAGS=${LDFLAGS} CPPFLAGS=${CPPFLAGS} |
1730 |
- append-ldflags -L"${BUILD_DIR}"/libraries/liblber/.libs \ |
1731 |
- -L"${BUILD_DIR}"/libraries/libldap/.libs |
1732 |
- append-cppflags -I"${BUILD_DIR}"/include |
1733 |
- ECONF_SOURCE=${S}/contrib/ldapc++ \ |
1734 |
- econf "${myconf_ldapcpp[@]}" \ |
1735 |
- CC="${CC}" \ |
1736 |
- CXX="${CXX}" |
1737 |
-} |
1738 |
- |
1739 |
-multilib_src_compile() { |
1740 |
- tc-export AR CC CXX RC |
1741 |
- emake CC="${CC}" AR="${AR}" SHELL="${BASH}" |
1742 |
- local lt="${BUILD_DIR}/libtool" |
1743 |
- export echo="echo" |
1744 |
- |
1745 |
- if ! use minimal && multilib_is_native_abi ; then |
1746 |
- if use cxx ; then |
1747 |
- einfo "Building contrib library: ldapc++" |
1748 |
- src_configure_cxx |
1749 |
- cd "${BUILD_DIR}/contrib/ldapc++" || die |
1750 |
- emake \ |
1751 |
- CC="${CC}" CXX="${CXX}" |
1752 |
- fi |
1753 |
- |
1754 |
- if use smbkrb5passwd ; then |
1755 |
- einfo "Building contrib-module: smbk5pwd" |
1756 |
- cd "${S}/contrib/slapd-modules/smbk5pwd" || die |
1757 |
- |
1758 |
- MY_DEFS="-DDO_SHADOW" |
1759 |
- if use samba ; then |
1760 |
- MY_DEFS="${MY_DEFS} -DDO_SAMBA" |
1761 |
- MY_KRB5_INC="" |
1762 |
- fi |
1763 |
- if use kerberos ; then |
1764 |
- MY_DEFS="${MY_DEFS} -DDO_KRB5" |
1765 |
- MY_KRB5_INC="$(krb5-config --cflags)" |
1766 |
- fi |
1767 |
- |
1768 |
- emake \ |
1769 |
- DEFS="${MY_DEFS}" \ |
1770 |
- KRB5_INC="${MY_KRB5_INC}" \ |
1771 |
- LDAP_BUILD="${BUILD_DIR}" \ |
1772 |
- CC="${CC}" libexecdir="${EPREFIX}/usr/$(get_libdir)/openldap" |
1773 |
- fi |
1774 |
- |
1775 |
- if use overlays ; then |
1776 |
- einfo "Building contrib-module: samba4" |
1777 |
- cd "${S}/contrib/slapd-modules/samba4" || die |
1778 |
- |
1779 |
- emake \ |
1780 |
- LDAP_BUILD="${BUILD_DIR}" \ |
1781 |
- CC="${CC}" libexecdir="/usr/$(get_libdir)/openldap" |
1782 |
- fi |
1783 |
- |
1784 |
- if use kerberos ; then |
1785 |
- if use kinit ; then |
1786 |
- build_contrib_module "kinit" "kinit.c" "kinit" |
1787 |
- fi |
1788 |
- cd "${S}/contrib/slapd-modules/passwd" || die |
1789 |
- einfo "Compiling contrib-module: pw-kerberos" |
1790 |
- "${lt}" --mode=compile --tag=CC \ |
1791 |
- "${CC}" \ |
1792 |
- -I"${BUILD_DIR}"/include \ |
1793 |
- -I../../../include \ |
1794 |
- ${CFLAGS} \ |
1795 |
- $(krb5-config --cflags) \ |
1796 |
- -DHAVE_KRB5 \ |
1797 |
- -o kerberos.lo \ |
1798 |
- -c kerberos.c || die "compiling pw-kerberos failed" |
1799 |
- einfo "Linking contrib-module: pw-kerberos" |
1800 |
- "${lt}" --mode=link --tag=CC \ |
1801 |
- "${CC}" -module \ |
1802 |
- ${CFLAGS} \ |
1803 |
- ${LDFLAGS} \ |
1804 |
- -rpath "${EPREFIX}"/usr/$(get_libdir)/openldap/openldap \ |
1805 |
- -o pw-kerberos.la \ |
1806 |
- kerberos.lo || die "linking pw-kerberos failed" |
1807 |
- fi |
1808 |
- |
1809 |
- if use pbkdf2; then |
1810 |
- cd "${S}/contrib/slapd-modules/passwd/pbkdf2" || die |
1811 |
- einfo "Compiling contrib-module: pw-pbkdf2" |
1812 |
- "${lt}" --mode=compile --tag=CC \ |
1813 |
- "${CC}" \ |
1814 |
- -I"${BUILD_DIR}"/include \ |
1815 |
- -I../../../../include \ |
1816 |
- ${CFLAGS} \ |
1817 |
- -o pbkdf2.lo \ |
1818 |
- -c pw-pbkdf2.c || die "compiling pw-pbkdf2 failed" |
1819 |
- einfo "Linking contrib-module: pw-pbkdf2" |
1820 |
- "${lt}" --mode=link --tag=CC \ |
1821 |
- "${CC}" -module \ |
1822 |
- ${CFLAGS} \ |
1823 |
- ${LDFLAGS} \ |
1824 |
- -rpath "${EPREFIX}"/usr/$(get_libdir)/openldap/openldap \ |
1825 |
- -o pw-pbkdf2.la \ |
1826 |
- pbkdf2.lo || die "linking pw-pbkdf2 failed" |
1827 |
- fi |
1828 |
- |
1829 |
- if use sha2 ; then |
1830 |
- cd "${S}/contrib/slapd-modules/passwd/sha2" || die |
1831 |
- einfo "Compiling contrib-module: pw-sha2" |
1832 |
- "${lt}" --mode=compile --tag=CC \ |
1833 |
- "${CC}" \ |
1834 |
- -I"${BUILD_DIR}"/include \ |
1835 |
- -I../../../../include \ |
1836 |
- ${CFLAGS} \ |
1837 |
- -o sha2.lo \ |
1838 |
- -c sha2.c || die "compiling pw-sha2 failed" |
1839 |
- "${lt}" --mode=compile --tag=CC \ |
1840 |
- "${CC}" \ |
1841 |
- -I"${BUILD_DIR}"/include \ |
1842 |
- -I../../../../include \ |
1843 |
- ${CFLAGS} \ |
1844 |
- -o slapd-sha2.lo \ |
1845 |
- -c slapd-sha2.c || die "compiling pw-sha2 failed" |
1846 |
- einfo "Linking contrib-module: pw-sha2" |
1847 |
- "${lt}" --mode=link --tag=CC \ |
1848 |
- "${CC}" -module \ |
1849 |
- ${CFLAGS} \ |
1850 |
- ${LDFLAGS} \ |
1851 |
- -rpath "${EPREFIX}"/usr/$(get_libdir)/openldap/openldap \ |
1852 |
- -o pw-sha2.la \ |
1853 |
- sha2.lo slapd-sha2.lo || die "linking pw-sha2 failed" |
1854 |
- fi |
1855 |
- |
1856 |
- # We could build pw-radius if GNURadius would install radlib.h |
1857 |
- cd "${S}/contrib/slapd-modules/passwd" || die |
1858 |
- einfo "Compiling contrib-module: pw-netscape" |
1859 |
- "${lt}" --mode=compile --tag=CC \ |
1860 |
- "${CC}" \ |
1861 |
- -I"${BUILD_DIR}"/include \ |
1862 |
- -I../../../include \ |
1863 |
- ${CFLAGS} \ |
1864 |
- -o netscape.lo \ |
1865 |
- -c netscape.c || die "compiling pw-netscape failed" |
1866 |
- einfo "Linking contrib-module: pw-netscape" |
1867 |
- "${lt}" --mode=link --tag=CC \ |
1868 |
- "${CC}" -module \ |
1869 |
- ${CFLAGS} \ |
1870 |
- ${LDFLAGS} \ |
1871 |
- -rpath "${EPREFIX}"/usr/$(get_libdir)/openldap/openldap \ |
1872 |
- -o pw-netscape.la \ |
1873 |
- netscape.lo || die "linking pw-netscape failed" |
1874 |
- |
1875 |
- #build_contrib_module "acl" "posixgroup.c" "posixGroup" # example code only |
1876 |
- #build_contrib_module "acl" "gssacl.c" "gss" # example code only, also needs kerberos |
1877 |
- build_contrib_module "addpartial" "addpartial-overlay.c" "addpartial-overlay" |
1878 |
- build_contrib_module "allop" "allop.c" "overlay-allop" |
1879 |
- build_contrib_module "allowed" "allowed.c" "allowed" |
1880 |
- build_contrib_module "autogroup" "autogroup.c" "autogroup" |
1881 |
- build_contrib_module "cloak" "cloak.c" "cloak" |
1882 |
- # build_contrib_module "comp_match" "comp_match.c" "comp_match" # really complex, adds new external deps, questionable demand |
1883 |
- build_contrib_module "denyop" "denyop.c" "denyop-overlay" |
1884 |
- build_contrib_module "dsaschema" "dsaschema.c" "dsaschema-plugin" |
1885 |
- build_contrib_module "dupent" "dupent.c" "dupent" |
1886 |
- build_contrib_module "lastbind" "lastbind.c" "lastbind" |
1887 |
- # lastmod may not play well with other overlays |
1888 |
- build_contrib_module "lastmod" "lastmod.c" "lastmod" |
1889 |
- build_contrib_module "noopsrch" "noopsrch.c" "noopsrch" |
1890 |
- build_contrib_module "nops" "nops.c" "nops-overlay" |
1891 |
- #build_contrib_module "nssov" "nssov.c" "nssov-overlay" RESO:LATER |
1892 |
- build_contrib_module "trace" "trace.c" "trace" |
1893 |
- # build slapi-plugins |
1894 |
- cd "${S}/contrib/slapi-plugins/addrdnvalues" || die |
1895 |
- einfo "Building contrib-module: addrdnvalues plugin" |
1896 |
- "${CC}" -shared \ |
1897 |
- -I"${BUILD_DIR}"/include \ |
1898 |
- -I../../../include \ |
1899 |
- ${CFLAGS} \ |
1900 |
- -fPIC \ |
1901 |
- ${LDFLAGS} \ |
1902 |
- -o libaddrdnvalues-plugin.so \ |
1903 |
- addrdnvalues.c || die "Building libaddrdnvalues-plugin.so failed" |
1904 |
- |
1905 |
- fi |
1906 |
-} |
1907 |
- |
1908 |
-multilib_src_test() { |
1909 |
- if multilib_is_native_abi; then |
1910 |
- cd tests || die |
1911 |
- emake tests || die "make tests failed" |
1912 |
- fi |
1913 |
-} |
1914 |
- |
1915 |
-multilib_src_install() { |
1916 |
- local lt="${BUILD_DIR}/libtool" |
1917 |
- emake DESTDIR="${D}" SHELL="${BASH}" install |
1918 |
- |
1919 |
- if ! use minimal && multilib_is_native_abi; then |
1920 |
- # openldap modules go here |
1921 |
- # TODO: write some code to populate slapd.conf with moduleload statements |
1922 |
- keepdir /usr/$(get_libdir)/openldap/openldap/ |
1923 |
- |
1924 |
- # initial data storage dir |
1925 |
- keepdir /var/lib/openldap-data |
1926 |
- use prefix || fowners ldap:ldap /var/lib/openldap-data |
1927 |
- fperms 0700 /var/lib/openldap-data |
1928 |
- |
1929 |
- echo "OLDPF='${PF}'" > "${ED}${OPENLDAP_DEFAULTDIR_VERSIONTAG}/${OPENLDAP_VERSIONTAG}" |
1930 |
- echo "# do NOT delete this. it is used" >> "${ED}${OPENLDAP_DEFAULTDIR_VERSIONTAG}/${OPENLDAP_VERSIONTAG}" |
1931 |
- echo "# to track versions for upgrading." >> "${ED}${OPENLDAP_DEFAULTDIR_VERSIONTAG}/${OPENLDAP_VERSIONTAG}" |
1932 |
- |
1933 |
- # use our config |
1934 |
- rm "${ED}"etc/openldap/slapd.conf |
1935 |
- insinto /etc/openldap |
1936 |
- newins "${FILESDIR}"/${PN}-2.4.40-slapd-conf slapd.conf |
1937 |
- configfile="${ED}"etc/openldap/slapd.conf |
1938 |
- |
1939 |
- # populate with built backends |
1940 |
- ebegin "populate config with built backends" |
1941 |
- for x in "${ED}"usr/$(get_libdir)/openldap/openldap/back_*.so; do |
1942 |
- einfo "Adding $(basename ${x})" |
1943 |
- sed -e "/###INSERTDYNAMICMODULESHERE###$/a# moduleload\t$(basename ${x})" -i "${configfile}" |
1944 |
- done |
1945 |
- sed -e "s:###INSERTDYNAMICMODULESHERE###$:# modulepath\t${EPREFIX}/usr/$(get_libdir)/openldap/openldap:" -i "${configfile}" |
1946 |
- use prefix || fowners root:ldap /etc/openldap/slapd.conf |
1947 |
- fperms 0640 /etc/openldap/slapd.conf |
1948 |
- cp "${configfile}" "${configfile}".default |
1949 |
- eend |
1950 |
- |
1951 |
- # install our own init scripts and systemd unit files |
1952 |
- einfo "Install init scripts" |
1953 |
- sed -e "s,/usr/lib/,/usr/$(get_libdir)/," "${FILESDIR}"/slapd-initd-2.4.40-r2 > "${T}"/slapd || die |
1954 |
- doinitd "${T}"/slapd |
1955 |
- newconfd "${FILESDIR}"/slapd-confd-2.4.28-r1 slapd |
1956 |
- |
1957 |
- einfo "Install systemd service" |
1958 |
- sed -e "s,/usr/lib/,/usr/$(get_libdir)/," "${FILESDIR}"/slapd.service > "${T}"/slapd.service || die |
1959 |
- systemd_dounit "${T}"/slapd.service |
1960 |
- systemd_install_serviced "${FILESDIR}"/slapd.service.conf |
1961 |
- systemd_newtmpfilesd "${FILESDIR}"/slapd.tmpfilesd slapd.conf |
1962 |
- |
1963 |
- # If built without SLP, we don't need to be before avahi |
1964 |
- use slp \ |
1965 |
- || sed -i \ |
1966 |
- -e '/before/{s/avahi-daemon//g}' \ |
1967 |
- "${ED}"etc/init.d/slapd |
1968 |
- |
1969 |
- if use cxx ; then |
1970 |
- einfo "Install the ldapc++ library" |
1971 |
- cd "${BUILD_DIR}/contrib/ldapc++" || die |
1972 |
- emake DESTDIR="${D}" libexecdir="${EPREFIX}/usr/$(get_libdir)/openldap" install |
1973 |
- cd "${S}"/contrib/ldapc++ || die |
1974 |
- newdoc README ldapc++-README |
1975 |
- fi |
1976 |
- |
1977 |
- if use smbkrb5passwd ; then |
1978 |
- einfo "Install the smbk5pwd module" |
1979 |
- cd "${S}/contrib/slapd-modules/smbk5pwd" || die |
1980 |
- emake DESTDIR="${D}" \ |
1981 |
- LDAP_BUILD="${BUILD_DIR}" \ |
1982 |
- libexecdir="${EPREFIX}/usr/$(get_libdir)/openldap" install |
1983 |
- newdoc README smbk5pwd-README |
1984 |
- fi |
1985 |
- |
1986 |
- if use overlays ; then |
1987 |
- einfo "Install the samba4 module" |
1988 |
- cd "${S}/contrib/slapd-modules/samba4" || die |
1989 |
- emake DESTDIR="${D}" \ |
1990 |
- LDAP_BUILD="${BUILD_DIR}" \ |
1991 |
- libexecdir="/usr/$(get_libdir)/openldap" install |
1992 |
- newdoc README samba4-README |
1993 |
- fi |
1994 |
- |
1995 |
- einfo "Installing contrib modules" |
1996 |
- cd "${S}/contrib/slapd-modules" || die |
1997 |
- for l in */*.la */*/*.la; do |
1998 |
- [[ -e ${l} ]] || continue |
1999 |
- "${lt}" --mode=install cp ${l} \ |
2000 |
- "${ED}"usr/$(get_libdir)/openldap/openldap || \ |
2001 |
- die "installing ${l} failed" |
2002 |
- done |
2003 |
- |
2004 |
- dodoc "${FILESDIR}"/DB_CONFIG.fast.example |
2005 |
- docinto contrib |
2006 |
- doman */*.5 |
2007 |
- #newdoc acl/README* |
2008 |
- newdoc addpartial/README addpartial-README |
2009 |
- newdoc allop/README allop-README |
2010 |
- newdoc allowed/README allowed-README |
2011 |
- newdoc autogroup/README autogroup-README |
2012 |
- newdoc dsaschema/README dsaschema-README |
2013 |
- newdoc passwd/README passwd-README |
2014 |
- cd "${S}/contrib/slapi-plugins" || die |
2015 |
- insinto /usr/$(get_libdir)/openldap/openldap |
2016 |
- doins */*.so |
2017 |
- docinto contrib |
2018 |
- newdoc addrdnvalues/README addrdnvalues-README |
2019 |
- |
2020 |
- insinto /etc/openldap/schema |
2021 |
- newins "${DISTDIR}"/${BIS_P} ${BIS_PN} |
2022 |
- |
2023 |
- docinto back-sock ; dodoc "${S}"/servers/slapd/back-sock/searchexample* |
2024 |
- docinto back-shell ; dodoc "${S}"/servers/slapd/back-shell/searchexample* |
2025 |
- docinto back-perl ; dodoc "${S}"/servers/slapd/back-perl/SampleLDAP.pm |
2026 |
- |
2027 |
- dosbin "${S}"/contrib/slapd-tools/statslog |
2028 |
- newdoc "${S}"/contrib/slapd-tools/README README.statslog |
2029 |
- fi |
2030 |
- |
2031 |
- use static-libs || prune_libtool_files --all |
2032 |
-} |
2033 |
- |
2034 |
-multilib_src_install_all() { |
2035 |
- dodoc ANNOUNCEMENT CHANGES COPYRIGHT README |
2036 |
- docinto rfc ; dodoc doc/rfc/*.txt |
2037 |
-} |
2038 |
- |
2039 |
-pkg_preinst() { |
2040 |
- # keep old libs if any |
2041 |
- preserve_old_lib /usr/$(get_libdir)/{liblber,libldap_r,liblber}-2.3$(get_libname 0) |
2042 |
- # bug 440470, only display the getting started help there was no openldap before, |
2043 |
- # or we are going to a non-minimal build |
2044 |
- ! has_version net-nds/openldap || has_version 'net-nds/openldap[minimal]' |
2045 |
- OPENLDAP_PRINT_MESSAGES=$((! $?)) |
2046 |
-} |
2047 |
- |
2048 |
-pkg_postinst() { |
2049 |
- if ! use minimal ; then |
2050 |
- # You cannot build SSL certificates during src_install that will make |
2051 |
- # binary packages containing your SSL key, which is both a security risk |
2052 |
- # and a misconfiguration if multiple machines use the same key and cert. |
2053 |
- if use ssl; then |
2054 |
- install_cert /etc/openldap/ssl/ldap |
2055 |
- use prefix || chown ldap:ldap "${EROOT}"etc/openldap/ssl/ldap.* |
2056 |
- ewarn "Self-signed SSL certificates are treated harshly by OpenLDAP 2.[12]" |
2057 |
- ewarn "Self-signed SSL certificates are treated harshly by OpenLDAP 2.[12]" |
2058 |
- ewarn "add 'TLS_REQCERT allow' if you want to use them." |
2059 |
- fi |
2060 |
- |
2061 |
- if use prefix; then |
2062 |
- # Warn about prefix issues with slapd |
2063 |
- eerror "slapd might NOT be usable on Prefix systems as it requires root privileges" |
2064 |
- eerror "to start up, and requires that certain files directories be owned by" |
2065 |
- eerror "ldap:ldap. As Prefix does not support changing ownership of files and" |
2066 |
- eerror "directories, you will have to manually fix this yourself." |
2067 |
- fi |
2068 |
- |
2069 |
- # These lines force the permissions of various content to be correct |
2070 |
- use prefix || chown ldap:ldap "${EROOT}"var/run/openldap |
2071 |
- chmod 0755 "${EROOT}"var/run/openldap |
2072 |
- use prefix || chown root:ldap "${EROOT}"etc/openldap/slapd.conf{,.default} |
2073 |
- chmod 0640 "${EROOT}"etc/openldap/slapd.conf{,.default} |
2074 |
- use prefix || chown ldap:ldap "${EROOT}"var/lib/openldap-data |
2075 |
- fi |
2076 |
- |
2077 |
- if has_version 'net-nds/openldap[-minimal]' && ((${OPENLDAP_PRINT_MESSAGES})); then |
2078 |
- elog "Getting started using OpenLDAP? There is some documentation available:" |
2079 |
- elog "Gentoo Guide to OpenLDAP Authentication" |
2080 |
- elog "(https://wiki.gentoo.org/wiki/Centralized_authentication_using_OpenLDAP)" |
2081 |
- elog "---" |
2082 |
- elog "An example file for tuning BDB backends with openldap is" |
2083 |
- elog "DB_CONFIG.fast.example in /usr/share/doc/${PF}/" |
2084 |
- fi |
2085 |
- |
2086 |
- preserve_old_lib_notify /usr/$(get_libdir)/{liblber,libldap,libldap_r}-2.3$(get_libname 0) |
2087 |
-} |