474N/A#
474N/A# CDDL HEADER START
474N/A#
474N/A# The contents of this file are subject to the terms of the
474N/A# Common Development and Distribution License (the "License").
474N/A# You may not use this file except in compliance with the License.
474N/A#
474N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
474N/A# or http://www.opensolaris.org/os/licensing.
474N/A# See the License for the specific language governing permissions
474N/A# and limitations under the License.
474N/A#
474N/A# When distributing Covered Code, include this CDDL HEADER in each
474N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
474N/A# If applicable, add the following below this CDDL HEADER, with the
474N/A# fields enclosed by brackets "[]" replaced with your own identifying
474N/A# information: Portions Copyright [yyyy] [name of copyright owner]
474N/A#
474N/A# CDDL HEADER END
474N/A#
474N/A
474N/A#
5452N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
474N/A#
5680N/ABUILD_BITS= 64_and_32
474N/Ainclude ../../make-rules/shared-macros.mk
474N/A
474N/ACOMPONENT_NAME= openldap
5909N/ACOMPONENT_VERSION= 2.4.44
618N/ACOMPONENT_PROJECT_URL= http://www.openldap.org/
474N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
844N/ACOMPONENT_ARCHIVE_HASH= \
5909N/A sha256:d7de6bf3c67009c95525dde3a0212cc110d0a70b92af2af8e3ee800e81b88400
474N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= service/openldap
474N/A
5909N/ATPNO= 27074
2899N/A
474N/ASDFVER= sdf-2.001
474N/ASDFBLIB= $(BUILD_DIR_32)/${SDFVER}/blib
474N/A
474N/ACOMPONENT_ARCHIVE_1= $(SDFVER).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH_1= \
844N/A sha256:6f9bcdc884a9f450208c740e45effdfeb7e65c689f57b05d3c15208193a8a6ea
474N/ACOMPONENT_ARCHIVE_URL_1= ftp://ftp.eenet.ee/pub/cpan/authors/id/I/IA/IANC/$(COMPONENT_ARCHIVE_1)
474N/A
474N/A
5087N/A# This depends on libsasl which cannot be installed on S11.
5087N/Aifeq ($(BUILD_TYPE), evaluation)
5087N/APUBLISH_STAMP=
5087N/Aendif
5087N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
474N/A
474N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
474N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
474N/A
474N/ACOMPONENT_PRE_BUILD_ACTION = \
474N/A (cd $(BUILD_DIR_32); \
474N/A gzip -dc ../../$(SDFVER).tar.gz | tar xopf -; \
474N/A cd $(SDFVER); $(PERL) Makefile.PL; \
474N/A $(GMAKE))
474N/A
474N/A# we need to enable large file support and build PIC for our shared libraries
474N/ACFLAGS += $(CPP_LARGEFILES) $(CC_PIC) $(studio_NORUNPATH)
474N/A
5909N/ALINT_FLAGS += -Iinclude
5909N/A
825N/ACONFIGURE_ENV += "ac_cv_lib_net_main=no"
5909N/ACONFIGURE_ENV += "ac_cv_lib_net_socket=no"
5909N/ACONFIGURE_ENV += "ac_cv_lib_inet_socket=no"
474N/A
5680N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
5680N/ACONFIGURE_OPTIONS += --libexecdir=$(USRLIB.$(BITS))
5680N/ACONFIGURE_OPTIONS += --localstatedir=$(VARDIR)/openldap
474N/ACONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/openldap
474N/ACONFIGURE_OPTIONS += --docdir=$(USRSHAREDOCDIR)
474N/ACONFIGURE_OPTIONS += --disable-static
474N/ACONFIGURE_OPTIONS += --enable-overlays
4652N/ACONFIGURE_OPTIONS += --enable-dynamic
6290N/ACONFIGURE_OPTIONS += --enable-modules
474N/ACONFIGURE_OPTIONS += --enable-crypt
474N/ACONFIGURE_OPTIONS += --enable-shared
5909N/ACONFIGURE_OPTIONS += --disable-bdb
5909N/ACONFIGURE_OPTIONS += --disable-hdb
5909N/ACONFIGURE_OPTIONS += --enable-mdb
474N/ACONFIGURE_OPTIONS += --enable-null
474N/ACONFIGURE_OPTIONS += --enable-passwd
474N/ACONFIGURE_OPTIONS += --enable-shell
4904N/ACONFIGURE_OPTIONS += --enable-ldap
5163N/ACONFIGURE_OPTIONS += --enable-meta
474N/ACONFIGURE_OPTIONS += --with-cyrus-sasl
474N/ACONFIGURE_OPTIONS += --with-threads
474N/ACONFIGURE_OPTIONS += --with-tls=openssl
474N/A
5680N/ACOMPONENT_TEST_ENV += LD_LIBRARY_PATH="$(PROTOUSRLIBDIR):$(PROTOUSRLIBDIR64):"
474N/ACOMPONENT_TEST_ARGS += -e
474N/A
5053N/A#
5053N/A# OpenLDAP must be built with cyrus-sasl out of the gate instead of the
5053N/A# installed copy.
5053N/A#
5053N/ACYRUS_SASL_ROOT = $(WS_COMPONENTS)/cyrus-sasl/build/prototype/$(MACH)
5680N/ALDFLAGS.32 +="-L$(CYRUS_SASL_ROOT)$(USRLIBDIR)"
5680N/ALDFLAGS.64 +="-L$(CYRUS_SASL_ROOT)$(USRLIBDIR64)"
5053N/ALDFLAGS +=$(LDFLAGS.$(BITS))
5680N/ACPPFLAGS +="-I$(CYRUS_SASL_ROOT)$(USRINCDIR)"
5053N/A# make sure that we don't add the cyrus-sasl proto area to the RUNPATH
5680N/ALD_UNSET.32="-R$(CYRUS_SASL_ROOT)$(USRLIBDIR)"
5680N/ALD_UNSET.64="-R$(CYRUS_SASL_ROOT)$(USRLIBDIR.$(BITS))"
5053N/ALD_UNSET += $(LD_UNSET.$(BITS))
5053N/ACOMPONENT_BUILD_ENV += LD_UNSET="$(LD_UNSET)"
6290N/ACOMPONENT_BUILD_ENV += LTCFLAGS="-m$(BITS)"
5053N/ACOMPONENT_INSTALL_ENV += LD_UNSET="$(LD_UNSET)"
5053N/A
7243N/A# Enable adiheap and adistack security extensions
7243N/AADIHEAP_MODE = $(ADIHEAP_ENABLE)
7243N/AADISTACK_MODE = $(ADISTACK_ENABLE)
7243N/A
5053N/A# special targets due to dependency on cyrus-sasl
5053N/A../cyrus-sasl/build/%/.installed:
5053N/A (cd ../cyrus-sasl && $(GMAKE) install)
5053N/A
5053N/A$(CONFIGURE_32): ../cyrus-sasl/build/$(MACH32)/.installed
5053N/A$(CONFIGURE_64): ../cyrus-sasl/build/$(MACH64)/.installed
5053N/A
5680N/ACOMPONENT_POST_BUILD_ACTION += \
474N/A (cd $(BUILD_DIR_32)/doc/guide/admin; \
474N/A $(PERL) -I$(SDFBLIB)/lib $(SDFBLIB)/script/sdf -2html guide.sdf; \
474N/A $(PERL) -I$(SDFBLIB)/lib $(SDFBLIB)/script/sdf -2html index.sdf)
474N/A
3817N/AREQUIRED_PACKAGES += library/security/openssl
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/core-os
3817N/AREQUIRED_PACKAGES += system/library/security/libsasl
5452N/AREQUIRED_PACKAGES += system/library/security/libsasl2
3817N/AREQUIRED_PACKAGES += system/network
4941N/AREQUIRED_PACKAGES += text/groff/groff-core