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]
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
30 include ..
/..
/..
/make-rules
/shared-macros.mk
32 COMPONENT_NAME
= openldap
33 COMPONENT_VERSION
= 2.6.9
34 COMPONENT_SUMMARY
= OpenLDAP is an open source implementation of the Lightweight Directory Access Protocol
35 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
36 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).tgz
37 COMPONENT_PROJECT_URL
= https
://www.openldap.org
/
38 COMPONENT_ARCHIVE_HASH
= sha256
:2cb7dc73e9c8340dff0d99357fbaa578abf30cc6619f0521972c555681e6b2ff
39 COMPONENT_ARCHIVE_URL
= https
://openldap.org
/software
/download
/OpenLDAP
/openldap-release
/$(COMPONENT_ARCHIVE
)
40 COMPONENT_FMRI
= library
/openldap
41 COMPONENT_CLASSIFICATION
=System
/Libraries
42 COMPONENT_LICENSE
= The OpenLDAP Public License
43 COMPONENT_LICENSE_FILE
= LICENSE
45 TEST_TARGET
= $(TEST_64
)
46 include $(WS_MAKE_RULES
)/common.mk
48 COMPONENT_PRE_CONFIGURE_ACTION
= ( $(CLONEY
) $(SOURCE_DIR
) $(@D
) )
50 # we need to enable large file support and build PIC for our shared libraries
51 CFLAGS
+= $(CPP_LARGEFILES
) $(CC_PIC
)
53 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
54 CONFIGURE_OPTIONS
+= --libexecdir
=$(USRLIBDIR
$(BITS
))
55 CONFIGURE_OPTIONS
+= --localstatedir
=$(VARDIR
)/openldap
56 CONFIGURE_OPTIONS
+= --includedir=$(USRINCDIR
)/openldap
57 CONFIGURE_OPTIONS
+= --docdir
=$(USRSHAREDOCDIR
)
58 CONFIGURE_OPTIONS
+= --disable-static
59 CONFIGURE_OPTIONS
+= --enable-dynamic
60 CONFIGURE_OPTIONS
+= --enable-syslog
61 CONFIGURE_OPTIONS
+= --enable-ipv6
62 CONFIGURE_OPTIONS
+= --enable-shared
64 # SLAPD related options
65 # Note: we build 64-bit slapd only
66 CONFIGURE_OPTIONS
.32 += --disable-slapd
67 CONFIGURE_OPTIONS
.32 += --disable-cleartext
68 CONFIGURE_OPTIONS
.32 += --disable-mdb
69 CONFIGURE_OPTIONS
.32 += --disable-relay
70 CONFIGURE_OPTIONS
.32 += --disable-syncprov
71 CONFIGURE_OPTIONS
.64 += --enable-modules
72 CONFIGURE_OPTIONS
.64 += --enable-rlookups
73 CONFIGURE_OPTIONS
.64 += --enable-dynacl
74 CONFIGURE_OPTIONS
.64 += --enable-aci
75 CONFIGURE_OPTIONS
.64 += --enable-wrappers
76 #enable all backends but wt
77 CONFIGURE_OPTIONS
.64 += --enable-backends
=mod
78 CONFIGURE_OPTIONS
.64 += --enable-wt
=no
80 CONFIGURE_OPTIONS
.64 += --enable-overlays
=mod
81 CONFIGURE_OPTIONS
.64 += --enable-argon2
83 #CONFIGURE_OPTIONS += --enable-balancer
84 CONFIGURE_OPTIONS
+= --without-systemd
85 CONFIGURE_OPTIONS
+= --with-cyrus-sasl
86 CONFIGURE_OPTIONS
+= --with-threads
87 CONFIGURE_OPTIONS
+= --with-tls
=openssl
88 CONFIGURE_OPTIONS
+= --with-mp
=gmp
89 CONFIGURE_OPTIONS
+= --with-odbc
=unixodbc
90 CONFIGURE_OPTIONS
+= LDFLAGS
=-L
$(OPENSSL_LIBDIR.
$(BITS
))
91 CONFIGURE_OPTIONS
+= CPPFLAGS
="-I$(OPENSSL_INCDIR) -I/usr/include/odbc"
93 # Force known perl version
94 CONFIGURE_ENV
+= PERLBIN
=$(PERL
)
96 COMPONENT_TEST_ENV
+= LD_LIBRARY_PATH
="$(PROTOUSRLIBDIR):$(PROTOUSRLIBDIR64):"
97 COMPONENT_TEST_ENV
+= PATH
="$(PROTOUSRSBINDIR):$(PROTOUSRBINDIR):/usr/bin:$(PATH.gnu)"
99 # to remove plugin.la dependency
100 COMPONENT_POST_INSTALL_ACTION
.64 = $(GSED
) -i
-e
's:.la$$:.so:' $(PROTOETCDIR
)/$(COMPONENT_NAME
)/slapd.
*
102 COMPONENT_TEST_TRANSFORMS
+= \
104 ' -e "/Comparing/p" ' \
105 ' -e "/Filtering/p" ' \
106 ' -e "/Running/p" ' \
107 ' -e "/Testing/p" ' \
110 ' -e "/succeeded/p" '
112 # Auto-generated dependencies
113 PERL_REQUIRED_PACKAGES
+= runtime
/perl
114 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
115 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)/32
116 REQUIRED_PACKAGES
+= SUNWcs
117 REQUIRED_PACKAGES
+= library
/gmp
118 REQUIRED_PACKAGES
+= library
/libtool
/libltdl
119 REQUIRED_PACKAGES
+= library
/unixodbc
120 REQUIRED_PACKAGES
+= security
/argon2
121 REQUIRED_PACKAGES
+= shell/ksh93
122 REQUIRED_PACKAGES
+= system
/library
123 REQUIRED_PACKAGES
+= system
/library
/security
/libsasl