diff options
author | Dennis Lamm <expeditioneer@gentoo.org> | 2022-02-06 00:24:54 +0100 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2022-03-19 11:07:51 -0700 |
commit | d12a02243969b7c715e9b639345ec8aacd925a28 (patch) | |
tree | f64cff9a3933a3176205fc8a1b03b07a57f4cc5d /net-nds/openldap/files | |
parent | sys-cluster/k3s: patch for go-1.18 (diff) | |
download | gentoo-d12a02243969b7c715e9b639345ec8aacd925a28.tar.gz gentoo-d12a02243969b7c715e9b639345ec8aacd925a28.tar.bz2 gentoo-d12a02243969b7c715e9b639345ec8aacd925a28.zip |
net-nds/openldap 2.6.1 version bump
Closes: https://bugs.gentoo.org/799092
Bug: https://bugs.gentoo.org/624178
Bug: https://bugs.gentoo.org/815844
Bug: https://bugs.gentoo.org/609486
Signed-off-by: Dennis Lamm <expeditioneer@gentoo.org>
(cherry picked from commit c2e92fe1e144e8563f753a76d9d0cba923bb8878)
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'net-nds/openldap/files')
-rw-r--r-- | net-nds/openldap/files/openldap-2.6.1-cloak.patch | 25 | ||||
-rw-r--r-- | net-nds/openldap/files/openldap-2.6.1-fix-missing-mapping.patch | 21 | ||||
-rw-r--r-- | net-nds/openldap/files/openldap-2.6.1-flags.patch | 416 | ||||
-rw-r--r-- | net-nds/openldap/files/openldap-2.6.1-system-mdb.patch | 148 | ||||
-rw-r--r-- | net-nds/openldap/files/slapd-2.6.1.service | 12 | ||||
-rw-r--r-- | net-nds/openldap/files/slapd-confd-2.6.1 | 26 |
6 files changed, 648 insertions, 0 deletions
diff --git a/net-nds/openldap/files/openldap-2.6.1-cloak.patch b/net-nds/openldap/files/openldap-2.6.1-cloak.patch new file mode 100644 index 000000000000..8fab052d4db1 --- /dev/null +++ b/net-nds/openldap/files/openldap-2.6.1-cloak.patch @@ -0,0 +1,25 @@ +diff --git a/contrib/slapd-modules/cloak/cloak.c b/contrib/slapd-modules/cloak/cloak.c +index ced7a8024..dffce3614 100644 +--- a/contrib/slapd-modules/cloak/cloak.c ++++ b/contrib/slapd-modules/cloak/cloak.c +@@ -29,6 +29,7 @@ + #include "ac/socket.h" + + #include "lutil.h" ++#include "attr.h" + #include "slap.h" + #include "slap-config.h" + +diff --git a/servers/slapd/attr.h b/servers/slapd/attr.h +index e69de29bb..73949f60c 100644 +--- a/servers/slapd/attr.h ++++ b/servers/slapd/attr.h +@@ -0,0 +1,8 @@ ++#ifndef OPENLDAP_SERVERS_SLAPD_ATTR_H_ ++#define OPENLDAP_SERVERS_SLAPD_ATTR_H_ ++ ++#endif //OPENLDAP_SERVERS_SLAPD_ATTR_H_ ++ ++#include "slap.h" ++ ++void attr_clean( Attribute *a ); diff --git a/net-nds/openldap/files/openldap-2.6.1-fix-missing-mapping.patch b/net-nds/openldap/files/openldap-2.6.1-fix-missing-mapping.patch new file mode 100644 index 000000000000..be7fbf3e528d --- /dev/null +++ b/net-nds/openldap/files/openldap-2.6.1-fix-missing-mapping.patch @@ -0,0 +1,21 @@ +From 59e013602d7b1aa0d7da79d65367c9ec391b96f8 Mon Sep 17 00:00:00 2001 +From: Simon Pichugin <spichugi@redhat.com> +Date: Wed, 3 Nov 2021 19:03:40 -0700 +Subject: [PATCH] Fix missing mapping + +--- + libraries/liblber/lber.map | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libraries/liblber/lber.map b/libraries/liblber/lber.map +index 9a4094b0f..083cd1f32 100644 +--- a/libraries/liblber/lber.map ++++ b/libraries/liblber/lber.map +@@ -121,6 +121,7 @@ OPENLDAP_2.200 + ber_sockbuf_io_fd; + ber_sockbuf_io_readahead; + ber_sockbuf_io_tcp; ++ ber_sockbuf_io_udp; + ber_sockbuf_remove_io; + ber_sos_dump; + ber_start; diff --git a/net-nds/openldap/files/openldap-2.6.1-flags.patch b/net-nds/openldap/files/openldap-2.6.1-flags.patch new file mode 100644 index 000000000000..019bd9f6fd33 --- /dev/null +++ b/net-nds/openldap/files/openldap-2.6.1-flags.patch @@ -0,0 +1,416 @@ +diff --git a/contrib/slapd-modules/acl/Makefile b/contrib/slapd-modules/acl/Makefile +index 2195e2d72..3efaaad72 100644 +--- a/contrib/slapd-modules/acl/Makefile ++++ b/contrib/slapd-modules/acl/Makefile +@@ -8,7 +8,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + + LIBTOOL = $(LDAP_BUILD)/libtool + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/addpartial/Makefile b/contrib/slapd-modules/addpartial/Makefile +index ecb7cd0a3..e278dc080 100644 +--- a/contrib/slapd-modules/addpartial/Makefile ++++ b/contrib/slapd-modules/addpartial/Makefile +@@ -8,7 +8,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + + LIBTOOL = $(LDAP_BUILD)/libtool + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/adremap/Makefile b/contrib/slapd-modules/adremap/Makefile +index b008eabd6..23d3658c3 100644 +--- a/contrib/slapd-modules/adremap/Makefile ++++ b/contrib/slapd-modules/adremap/Makefile +@@ -19,7 +19,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + LIBTOOL = $(LDAP_BUILD)/libtool + INSTALL = /usr/bin/install + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = -DSLAPD_OVER_ADREMAP=SLAPD_MOD_DYNAMIC + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/allop/Makefile b/contrib/slapd-modules/allop/Makefile +index 053f3774a..11998ce87 100644 +--- a/contrib/slapd-modules/allop/Makefile ++++ b/contrib/slapd-modules/allop/Makefile +@@ -9,7 +9,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + LIBTOOL = $(LDAP_BUILD)/libtool + INSTALL = /usr/bin/install + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/allowed/Makefile b/contrib/slapd-modules/allowed/Makefile +index 32cb43241..674d6cafd 100644 +--- a/contrib/slapd-modules/allowed/Makefile ++++ b/contrib/slapd-modules/allowed/Makefile +@@ -20,7 +20,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + + LIBTOOL = $(LDAP_BUILD)/libtool + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = -DSLAPD_OVER_ALLOWED=SLAPD_MOD_DYNAMIC + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/authzid/Makefile b/contrib/slapd-modules/authzid/Makefile +index ef9c4bc4f..49a756c35 100644 +--- a/contrib/slapd-modules/authzid/Makefile ++++ b/contrib/slapd-modules/authzid/Makefile +@@ -20,7 +20,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + + LIBTOOL = $(LDAP_BUILD)/libtool + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/autogroup/Makefile b/contrib/slapd-modules/autogroup/Makefile +index 7dd6613cf..f19acae6c 100644 +--- a/contrib/slapd-modules/autogroup/Makefile ++++ b/contrib/slapd-modules/autogroup/Makefile +@@ -8,7 +8,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + + LIBTOOL = $(LDAP_BUILD)/libtool + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/cloak/Makefile b/contrib/slapd-modules/cloak/Makefile +index c54e6b134..9360ef2dc 100644 +--- a/contrib/slapd-modules/cloak/Makefile ++++ b/contrib/slapd-modules/cloak/Makefile +@@ -9,7 +9,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + LIBTOOL = $(LDAP_BUILD)/libtool + INSTALL = /usr/bin/install + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = -DSLAPD_OVER_CLOAK=SLAPD_MOD_DYNAMIC + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/comp_match/Makefile b/contrib/slapd-modules/comp_match/Makefile +index 9b78c5c12..e1cb8fe3c 100644 +--- a/contrib/slapd-modules/comp_match/Makefile ++++ b/contrib/slapd-modules/comp_match/Makefile +@@ -31,7 +31,7 @@ SSL_LIB = -lcrypto -L$(SSL_DIR)/lib + + LIBTOOL = $(LDAP_BUILD)/libtool + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = -DLDAP_COMPONENT + INCS = $(LDAP_INC) $(SNACC_INC) $(SSL_INC) + LIBS = $(LDAP_LIB) $(SNACC_LIB) $(SSL_LIB) +diff --git a/contrib/slapd-modules/datamorph/Makefile b/contrib/slapd-modules/datamorph/Makefile +index 82bce493c..19231c71d 100644 +--- a/contrib/slapd-modules/datamorph/Makefile ++++ b/contrib/slapd-modules/datamorph/Makefile +@@ -22,7 +22,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + LIBTOOL = $(LDAP_BUILD)/libtool + INSTALL = /usr/bin/install + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = -DSLAPD_OVER_DATAMORPH=SLAPD_MOD_DYNAMIC + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/denyop/Makefile b/contrib/slapd-modules/denyop/Makefile +index 2cea18b06..d11dd8d4a 100644 +--- a/contrib/slapd-modules/denyop/Makefile ++++ b/contrib/slapd-modules/denyop/Makefile +@@ -8,7 +8,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + + LIBTOOL = $(LDAP_BUILD)/libtool + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = -DSLAPD_OVER_DENYOP=SLAPD_MOD_DYNAMIC + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/dsaschema/Makefile b/contrib/slapd-modules/dsaschema/Makefile +index 3a88fc01f..97e0642f3 100644 +--- a/contrib/slapd-modules/dsaschema/Makefile ++++ b/contrib/slapd-modules/dsaschema/Makefile +@@ -8,7 +8,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + + LIBTOOL = $(LDAP_BUILD)/libtool + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/dupent/Makefile b/contrib/slapd-modules/dupent/Makefile +index 6b3543862..1cc09a8b4 100644 +--- a/contrib/slapd-modules/dupent/Makefile ++++ b/contrib/slapd-modules/dupent/Makefile +@@ -20,7 +20,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + + LIBTOOL = $(LDAP_BUILD)/libtool + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = -DSLAPD_OVER_DUPENT=SLAPD_MOD_DYNAMIC + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/kinit/Makefile b/contrib/slapd-modules/kinit/Makefile +index 7b25ced76..9f339e810 100644 +--- a/contrib/slapd-modules/kinit/Makefile ++++ b/contrib/slapd-modules/kinit/Makefile +@@ -8,7 +8,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + + LIBTOOL = $(LDAP_BUILD)/libtool + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) -lkrb5 +diff --git a/contrib/slapd-modules/lastbind/Makefile b/contrib/slapd-modules/lastbind/Makefile +index c273cd3a0..da9fa172f 100644 +--- a/contrib/slapd-modules/lastbind/Makefile ++++ b/contrib/slapd-modules/lastbind/Makefile +@@ -19,7 +19,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + LIBTOOL = $(LDAP_BUILD)/libtool + INSTALL = /usr/bin/install + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = -DSLAPD_OVER_LASTBIND=SLAPD_MOD_DYNAMIC + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/lastmod/Makefile b/contrib/slapd-modules/lastmod/Makefile +index 9b06c28fb..be583722b 100644 +--- a/contrib/slapd-modules/lastmod/Makefile ++++ b/contrib/slapd-modules/lastmod/Makefile +@@ -9,7 +9,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + LIBTOOL = $(LDAP_BUILD)/libtool + INSTALL = /usr/bin/install + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = -DSLAPD_OVER_LASTMOD=SLAPD_MOD_DYNAMIC + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/noopsrch/Makefile b/contrib/slapd-modules/noopsrch/Makefile +index 2934a3214..22a3db04b 100644 +--- a/contrib/slapd-modules/noopsrch/Makefile ++++ b/contrib/slapd-modules/noopsrch/Makefile +@@ -20,7 +20,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + + LIBTOOL = $(LDAP_BUILD)/libtool + CC = gcc +-OPT = -g -O2 -Wall ++OPT = -Wall -Wall + DEFS = -DSLAPD_OVER_NOOPSRCH=SLAPD_MOD_DYNAMIC + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/nops/Makefile b/contrib/slapd-modules/nops/Makefile +index 94a5bcd23..86dcdfd76 100644 +--- a/contrib/slapd-modules/nops/Makefile ++++ b/contrib/slapd-modules/nops/Makefile +@@ -9,7 +9,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + LIBTOOL = $(LDAP_BUILD)/libtool + INSTALL = /usr/bin/install + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = -DSLAPD_OVER_NOPS=SLAPD_MOD_DYNAMIC + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/nssov/Makefile b/contrib/slapd-modules/nssov/Makefile +index 13987c250..c2c26d473 100644 +--- a/contrib/slapd-modules/nssov/Makefile ++++ b/contrib/slapd-modules/nssov/Makefile +@@ -27,7 +27,7 @@ NLDAPD_INC=-Inss-pam-ldapd + + LIBTOOL = $(LDAP_BUILD)/libtool + INSTALL = /usr/bin/install +-OPT = -g -O2 ++OPT = -Wall + CC = gcc + DEFS = + INCS = $(LDAP_INC) $(NLDAPD_INC) +diff --git a/contrib/slapd-modules/passwd/Makefile b/contrib/slapd-modules/passwd/Makefile +index 634649603..4b6be2617 100644 +--- a/contrib/slapd-modules/passwd/Makefile ++++ b/contrib/slapd-modules/passwd/Makefile +@@ -9,7 +9,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + LIBTOOL = $(LDAP_BUILD)/libtool + INSTALL = /usr/bin/install + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/passwd/pbkdf2/Makefile b/contrib/slapd-modules/passwd/pbkdf2/Makefile +index 6279f50c1..20769028e 100644 +--- a/contrib/slapd-modules/passwd/pbkdf2/Makefile ++++ b/contrib/slapd-modules/passwd/pbkdf2/Makefile +@@ -9,7 +9,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + LIBTOOL = $(LDAP_BUILD)/libtool + INSTALL = /usr/bin/install + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + #DEFS = -DSLAPD_PBKDF2_DEBUG + + SSL_INC = +diff --git a/contrib/slapd-modules/passwd/sha2/Makefile b/contrib/slapd-modules/passwd/sha2/Makefile +index 2d2075688..f8a77d24d 100644 +--- a/contrib/slapd-modules/passwd/sha2/Makefile ++++ b/contrib/slapd-modules/passwd/sha2/Makefile +@@ -9,7 +9,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + LIBTOOL = $(LDAP_BUILD)/libtool + INSTALL = /usr/bin/install + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = + #DEFS = -DSLAPD_SHA2_DEBUG + INCS = $(LDAP_INC) +diff --git a/contrib/slapd-modules/passwd/totp/Makefile b/contrib/slapd-modules/passwd/totp/Makefile +index f7dff4bd7..463a45248 100644 +--- a/contrib/slapd-modules/passwd/totp/Makefile ++++ b/contrib/slapd-modules/passwd/totp/Makefile +@@ -9,7 +9,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + LIBTOOL = $(LDAP_BUILD)/libtool + INSTALL = /usr/bin/install + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/ppm/Makefile b/contrib/slapd-modules/ppm/Makefile +index 7b6efaddd..f26faca2b 100644 +--- a/contrib/slapd-modules/ppm/Makefile ++++ b/contrib/slapd-modules/ppm/Makefile +@@ -18,7 +18,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/liblber/liblber.la $(LDAP_BUILD)/libraries/li + LIBTOOL = $(LDAP_BUILD)/libtool + INSTALL = /usr/bin/install + CC = gcc +-OPT = -g -O2 -fpic ++OPT = -Wall -fpic + + # To skip linking against CRACKLIB make CRACK=no + CRACK=yes +diff --git a/contrib/slapd-modules/proxyOld/Makefile b/contrib/slapd-modules/proxyOld/Makefile +index d92967c39..f2e7524a9 100644 +--- a/contrib/slapd-modules/proxyOld/Makefile ++++ b/contrib/slapd-modules/proxyOld/Makefile +@@ -20,7 +20,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + + LIBTOOL = $(LDAP_BUILD)/libtool + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/rbac/Makefile b/contrib/slapd-modules/rbac/Makefile +index 1180bd6a1..59b614ade 100755 +--- a/contrib/slapd-modules/rbac/Makefile ++++ b/contrib/slapd-modules/rbac/Makefile +@@ -9,7 +9,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + LIBTOOL = $(LDAP_BUILD)/libtool + INSTALL = /usr/bin/install + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = -DSLAPD_OVER_RBAC=SLAPD_MOD_DYNAMIC + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/samba4/Makefile b/contrib/slapd-modules/samba4/Makefile +index f53d130d2..a4b6600ca 100644 +--- a/contrib/slapd-modules/samba4/Makefile ++++ b/contrib/slapd-modules/samba4/Makefile +@@ -20,7 +20,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + + LIBTOOL = $(LDAP_BUILD)/libtool + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = -DSLAPD_OVER_RDNVAL=SLAPD_MOD_DYNAMIC \ + -DSLAPD_OVER_PGUID=SLAPD_MOD_DYNAMIC \ + -DSLAPD_OVER_VERNUM=SLAPD_MOD_DYNAMIC +diff --git a/contrib/slapd-modules/smbk5pwd/Makefile b/contrib/slapd-modules/smbk5pwd/Makefile +index a1c2c8eef..c2b1c16bb 100644 +--- a/contrib/slapd-modules/smbk5pwd/Makefile ++++ b/contrib/slapd-modules/smbk5pwd/Makefile +@@ -27,7 +27,7 @@ HEIMDAL_LIB = -L/usr/heimdal/lib -lkrb5 -lkadm5srv + LIBTOOL = $(LDAP_BUILD)/libtool + INSTALL = /usr/bin/install + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + # Omit DO_KRB5, DO_SAMBA or DO_SHADOW if you don't want to support it. + DEFS = -DDO_KRB5 -DDO_SAMBA -DDO_SHADOW + INCS = $(LDAP_INC) $(HEIMDAL_INC) $(SSL_INC) +diff --git a/contrib/slapd-modules/trace/Makefile b/contrib/slapd-modules/trace/Makefile +index 1bf8a5541..9026c2c93 100644 +--- a/contrib/slapd-modules/trace/Makefile ++++ b/contrib/slapd-modules/trace/Makefile +@@ -8,7 +8,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + + LIBTOOL = $(LDAP_BUILD)/libtool + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = -DSLAPD_OVER_TRACE=SLAPD_MOD_DYNAMIC + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/usn/Makefile b/contrib/slapd-modules/usn/Makefile +index d7af04b10..eae938a3e 100644 +--- a/contrib/slapd-modules/usn/Makefile ++++ b/contrib/slapd-modules/usn/Makefile +@@ -8,7 +8,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + + LIBTOOL = $(LDAP_BUILD)/libtool + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = -DSLAPD_OVER_USN=SLAPD_MOD_DYNAMIC + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/variant/Makefile b/contrib/slapd-modules/variant/Makefile +index 07effed6c..a83373b48 100644 +--- a/contrib/slapd-modules/variant/Makefile ++++ b/contrib/slapd-modules/variant/Makefile +@@ -22,7 +22,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + LIBTOOL = $(LDAP_BUILD)/libtool + INSTALL = /usr/bin/install + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = -DSLAPD_OVER_VARIANT=SLAPD_MOD_DYNAMIC + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) +diff --git a/contrib/slapd-modules/vc/Makefile b/contrib/slapd-modules/vc/Makefile +index 9fe67ab27..526037e50 100644 +--- a/contrib/slapd-modules/vc/Makefile ++++ b/contrib/slapd-modules/vc/Makefile +@@ -20,7 +20,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \ + + LIBTOOL = $(LDAP_BUILD)/libtool + CC = gcc +-OPT = -g -O2 ++OPT = -Wall + DEFS = + INCS = $(LDAP_INC) + LIBS = $(LDAP_LIB) diff --git a/net-nds/openldap/files/openldap-2.6.1-system-mdb.patch b/net-nds/openldap/files/openldap-2.6.1-system-mdb.patch new file mode 100644 index 000000000000..55a2253a8fa0 --- /dev/null +++ b/net-nds/openldap/files/openldap-2.6.1-system-mdb.patch @@ -0,0 +1,148 @@ +diff --git a/build/openldap.m4 b/build/openldap.m4 +index 91e2608b8..493f85ae8 100644 +--- a/build/openldap.m4 ++++ b/build/openldap.m4 +@@ -243,6 +243,40 @@ OL_RESOLVER_TRY(ol_cv_resolver_none) + OL_RESOLVER_TRY(ol_cv_resolver_resolv,[-lresolv]) + OL_RESOLVER_TRY(ol_cv_resolver_bind,[-lbind]) + ]) ++ ++dnl -------------------------------------------------------------------- ++dnl Check for version compatility with back-mdb ++AC_DEFUN([OL_MDB_COMPAT], ++[AC_CACHE_CHECK([if LMDB version supported by MDB backends], [ol_cv_mdb_compat],[ ++ AC_EGREP_CPP(__mdb_version_compat,[ ++#include <lmdb.h> ++ ++/* require 0.9.18 or later */ ++#if MDB_VERSION_FULL >= 0x000000090012 ++ __mdb_version_compat ++#endif ++ ], [ol_cv_mdb_compat=yes], [ol_cv_mdb_compat=no])]) ++]) ++ ++dnl ++dnl -------------------------------------------------------------------- ++dnl Find any MDB ++AC_DEFUN([OL_MDB], ++[ol_cv_mdb=no ++AC_CHECK_HEADERS(lmdb.h) ++if test $ac_cv_header_lmdb_h = yes; then ++ OL_MDB_COMPAT ++ ++ if test $ol_cv_mdb_compat != yes ; then ++ AC_MSG_ERROR([LMDB version incompatible with MDB backends]) ++ fi ++ ++ ol_cv_lib_mdb=-llmdb ++ ol_cv_mdb=yes ++fi ++]) ++ ++ + dnl + dnl ==================================================================== + dnl Check POSIX Thread version +diff --git a/build/top.mk b/build/top.mk +index 67873d9f3..8d8787ecb 100644 +--- a/build/top.mk ++++ b/build/top.mk +@@ -164,6 +164,7 @@ CLIENT_LIBS = @CLIENT_LIBS@ + LUTIL_LIBS = @LUTIL_LIBS@ + LTHREAD_LIBS = @LTHREAD_LIBS@ + ++MDB_LIBS = @MDB_LIBS@ + SLAPD_NDB_LIBS = @SLAPD_NDB_LIBS@ + WT_LIBS = @WT_LIBS@ + +diff --git a/configure.ac b/configure.ac +index 9012d0b28..52dd72eb6 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -547,6 +547,7 @@ AC_MSG_RESULT(done) + dnl ---------------------------------------------------------------- + dnl Initialize vars + LDAP_LIBS= ++MDB_LIBS= + SLAPD_NDB_LIBS= + SLAPD_NDB_INCS= + LTHREAD_LIBS= +@@ -646,6 +647,32 @@ dnl Checks for programs + + AC_DEFINE(HAVE_MKVERSION, 1, [define this if you have mkversion]) + ++dnl ---------------------------------------------------------------- ++ol_link_mdb=no ++ ++if test $ol_enable_mdb != no; then ++ OL_MDB ++ ++ if test $ol_cv_mdb = no ; then ++ AC_MSG_ERROR(MDB: LMDB not available) ++ fi ++ ++ AC_DEFINE(HAVE_MDB,1, ++ [define this if LMDB is available]) ++ ++ dnl $ol_cv_lib_mdb should be yes or -llmdb ++ dnl (it could be no, but that would be an error ++ if test $ol_cv_lib_mdb != yes ; then ++ MDB_LIBS="$MDB_LIBS $ol_cv_lib_mdb" ++ fi ++ ++ SLAPD_LIBS="$SLAPD_LIBS \$(MDB_LIBS)" ++ ++ ol_link_mdb=yes ++fi ++ ++dnl ---------------------------------------------------------------- ++ + dnl ---------------------------------------------------------------- + dnl + dnl Determine which C translator to use +@@ -3150,6 +3177,7 @@ dnl pwmods + AC_SUBST(LDAP_LIBS) + AC_SUBST(CLIENT_LIBS) + AC_SUBST(SLAPD_LIBS) ++AC_SUBST(MDB_LIBS) + AC_SUBST(BALANCER_LIBS) + AC_SUBST(SLAPD_NDB_LIBS) + AC_SUBST(SLAPD_NDB_INCS) +diff --git a/servers/slapd/back-mdb/Makefile.in b/servers/slapd/back-mdb/Makefile.in +index ad3804898..f9319e227 100644 +--- a/servers/slapd/back-mdb/Makefile.in ++++ b/servers/slapd/back-mdb/Makefile.in +@@ -25,11 +25,10 @@ OBJS = init.lo tools.lo config.lo \ + extended.lo operational.lo \ + attr.lo index.lo key.lo filterindex.lo \ + dn2entry.lo dn2id.lo id2entry.lo idl.lo \ +- nextid.lo monitor.lo mdb.lo midl.lo ++ nextid.lo monitor.lo + + LDAP_INCDIR= ../../../include + LDAP_LIBDIR= ../../../libraries +-MDB_SUBDIR = $(srcdir)/$(LDAP_LIBDIR)/liblmdb + + BUILD_OPT = "--enable-mdb" + BUILD_MOD = @BUILD_MDB@ +@@ -44,7 +43,7 @@ UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS) + + LIBBASE = back_mdb + +-XINCPATH = -I.. -I$(srcdir)/.. -I$(MDB_SUBDIR) ++XINCPATH = -I.. -I$(srcdir)/.. + XDEFS = $(MODULES_CPPFLAGS) + + all-local-lib: ../.backend +@@ -52,11 +51,5 @@ all-local-lib: ../.backend + ../.backend: lib$(LIBBASE).a + @touch $@ + +-mdb.lo: $(MDB_SUBDIR)/mdb.c +- $(LTCOMPILE_MOD) $(MDB_SUBDIR)/mdb.c +- +-midl.lo: $(MDB_SUBDIR)/midl.c +- $(LTCOMPILE_MOD) $(MDB_SUBDIR)/midl.c +- + veryclean-local-lib: FORCE + $(RM) $(XXHEADERS) $(XXSRCS) .links diff --git a/net-nds/openldap/files/slapd-2.6.1.service b/net-nds/openldap/files/slapd-2.6.1.service new file mode 100644 index 000000000000..5f08be3b37f9 --- /dev/null +++ b/net-nds/openldap/files/slapd-2.6.1.service @@ -0,0 +1,12 @@ +[Unit] +Description=OpenLDAP Server Daemon +After=network.target + +[Service] +Type=notify +PIDFile=/run/openldap/slapd.pid +ExecStartPre=/usr/sbin/slaptest -Q -u $SLAPD_OPTIONS +ExecStart=/usr/lib/openldap/slapd -u ldap -h ${SLAPD_URLS} $SLAPD_OPTIONS + +[Install] +WantedBy=multi-user.target diff --git a/net-nds/openldap/files/slapd-confd-2.6.1 b/net-nds/openldap/files/slapd-confd-2.6.1 new file mode 100644 index 000000000000..9e7babbaaac1 --- /dev/null +++ b/net-nds/openldap/files/slapd-confd-2.6.1 @@ -0,0 +1,26 @@ +# conf.d file for openldap +# +# To enable both the standard unciphered server and the ssl encrypted +# one uncomment this line or set any other server starting options +# you may desire. + +# If you have multiple slapd instances per #376699, this will provide a default config +INSTANCE="openldap${SVCNAME#slapd}" + +# If you use the classical configuration file: +OPTS_CONF="-f /etc/${INSTANCE}/slapd.conf" +# Uncomment this instead to use the new slapd.d configuration directory for openldap 2.3 +#OPTS_CONF="-F /etc/${INSTANCE}/slapd.d" +# (the OPTS_CONF variable is also passed to slaptest during startup) + +OPTS="${OPTS_CONF} -h 'ldaps:// ldap:// ldapi://%2frun%2fopenldap%2fslapd.sock'" +# Optional connectionless LDAP: +#OPTS="${OPTS_CONF} -h 'ldaps:// ldap:// ldapi://%2frun%2fopenldap%2fslapd.sock cldap://'" + +# If you change the above listen statement to bind on a specific IP for +# listening, you should ensure that interface is up here (change eth0 as +# needed). +#rc_need="net.eth0" + +# Specify the kerberos keytab file +#KRB5_KTNAME=/etc/openldap/krb5-ldap.keytab |