rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / network / openldap / Makefile
blobf68775da37773f82c97efcb9062a1cc054342a61
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2019, Michal Nowak
25 # Copyright (c) 2022, Friedrich Kink
29 BUILD_BITS= 64_and_32
30 include ../../../make-rules/shared-macros.mk
32 COMPONENT_NAME= openldap
33 COMPONENT_VERSION= 2.6.8
34 COMPONENT_REVISION= 1
35 COMPONENT_SUMMARY= OpenLDAP is an open source implementation of the Lightweight Directory Access Protocol
36 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
37 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
38 COMPONENT_PROJECT_URL= https://www.openldap.org/
39 COMPONENT_ARCHIVE_HASH= sha256:48969323e94e3be3b03c6a132942dcba7ef8d545f2ad35401709019f696c3c4e
40 COMPONENT_ARCHIVE_URL= https://openldap.org/software/download/OpenLDAP/openldap-release/$(COMPONENT_ARCHIVE)
41 COMPONENT_FMRI= library/openldap
42 COMPONENT_CLASSIFICATION=System/Libraries
43 COMPONENT_LICENSE= The OpenLDAP Public License
44 COMPONENT_LICENSE_FILE= LICENSE
46 TEST_TARGET = $(TEST_64)
47 include $(WS_MAKE_RULES)/common.mk
49 COMPONENT_PRE_CONFIGURE_ACTION = ( $(CLONEY) $(SOURCE_DIR) $(@D) )
51 # we need to enable large file support and build PIC for our shared libraries
52 CFLAGS += $(CPP_LARGEFILES) $(CC_PIC)
54 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
55 CONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR$(BITS))
56 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)/openldap
57 CONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/openldap
58 CONFIGURE_OPTIONS += --docdir=$(USRSHAREDOCDIR)
59 CONFIGURE_OPTIONS += --disable-static
60 CONFIGURE_OPTIONS += --enable-dynamic
61 CONFIGURE_OPTIONS += --enable-syslog
62 CONFIGURE_OPTIONS += --enable-ipv6
63 CONFIGURE_OPTIONS += --enable-shared
65 # SLAPD related options
66 # Note: we build 64-bit slapd only
67 CONFIGURE_OPTIONS.32 += --disable-slapd
68 CONFIGURE_OPTIONS.32 += --disable-cleartext
69 CONFIGURE_OPTIONS.32 += --disable-mdb
70 CONFIGURE_OPTIONS.32 += --disable-relay
71 CONFIGURE_OPTIONS.32 += --disable-syncprov
72 CONFIGURE_OPTIONS.64 += --enable-modules
73 CONFIGURE_OPTIONS.64 += --enable-rlookups
74 CONFIGURE_OPTIONS.64 += --enable-dynacl
75 CONFIGURE_OPTIONS.64 += --enable-aci
76 CONFIGURE_OPTIONS.64 += --enable-wrappers
77 #enable all backends but wt
78 CONFIGURE_OPTIONS.64 += --enable-backends=mod
79 CONFIGURE_OPTIONS.64 += --enable-wt=no
80 #enable all overlays
81 CONFIGURE_OPTIONS.64 += --enable-overlays=mod
82 CONFIGURE_OPTIONS.64 += --enable-argon2
84 #CONFIGURE_OPTIONS += --enable-balancer
85 CONFIGURE_OPTIONS += --without-systemd
86 CONFIGURE_OPTIONS += --with-cyrus-sasl
87 CONFIGURE_OPTIONS += --with-threads
88 CONFIGURE_OPTIONS += --with-tls=openssl
89 CONFIGURE_OPTIONS += --with-mp=gmp
90 CONFIGURE_OPTIONS += --with-odbc=unixodbc
91 CONFIGURE_OPTIONS += LDFLAGS=-L$(OPENSSL_LIBDIR.$(BITS))
92 CONFIGURE_OPTIONS += CPPFLAGS="-I$(OPENSSL_INCDIR) -I/usr/include/odbc"
94 # Force known perl version
95 CONFIGURE_ENV += PERLBIN=$(PERL)
97 COMPONENT_TEST_ENV += LD_LIBRARY_PATH="$(PROTOUSRLIBDIR):$(PROTOUSRLIBDIR64):"
98 COMPONENT_TEST_ENV += PATH="$(PROTOUSRSBINDIR):$(PROTOUSRBINDIR):/usr/bin:$(PATH.gnu)"
100 # to remove plugin.la dependency
101 COMPONENT_POST_INSTALL_ACTION.64 = $(GSED) -i -e 's:.la$$:.so:' $(PROTOETCDIR)/$(COMPONENT_NAME)/slapd.*
103 COMPONENT_TEST_TRANSFORMS += \
104 ' -n ' \
105 ' -e "/Comparing/p" ' \
106 ' -e "/Filtering/p" ' \
107 ' -e "/Running/p" ' \
108 ' -e "/Testing/p" ' \
109 ' -e "/Result/p" ' \
110 ' -e "/failed/p" ' \
111 ' -e "/succeeded/p" '
113 # Auto-generated dependencies
114 PERL_REQUIRED_PACKAGES += runtime/perl
115 REQUIRED_PACKAGES += $(OPENSSL_PKG)
116 REQUIRED_PACKAGES += $(OPENSSL_PKG)/32
117 REQUIRED_PACKAGES += SUNWcs
118 REQUIRED_PACKAGES += library/gmp
119 REQUIRED_PACKAGES += library/libtool/libltdl
120 REQUIRED_PACKAGES += library/unixodbc
121 REQUIRED_PACKAGES += security/argon2
122 REQUIRED_PACKAGES += shell/ksh93
123 REQUIRED_PACKAGES += system/library
124 REQUIRED_PACKAGES += system/library/security/libsasl